Getting Started
Connection Options
Every command requires credentials. Supply them as CLI flags or environment variables.
export BMC_HOST=10.10.10.10export BMC_USERNAME=adminexport BMC_PASSWORD=password
bmctools redfish boot get-orderbmctools -i 10.10.10.10 -u admin -p password redfish boot get-order| Option | Env Variable | Description |
|---|---|---|
-i, --ip, --host | BMC_HOST | BMC IP address or hostname |
-u, --username | BMC_USERNAME | BMC username |
-p, --password | BMC_PASSWORD | BMC password |
-m, --manufacturer | BMC_MANUFACTURER | Force vendor: asus dell supermicro gigabyte cisco |
-k, --insecure | BMC_INSECURE | Disable SSL verification (default: on) |
-o, --output | Output format: json json-pretty table text | |
-v, --verbose | Verbose output | |
-d, --debug | Show full stack traces | |
--no-color | NO_COLOR | Disable coloured output |
Boot Management
# View current boot orderbmctools redfish boot get-order
# List all available boot optionsbmctools redfish boot list-options -o table
# Find the PXE boot option for a specific NICbmctools redfish boot find-by-mac -m 04:32:01:D8:C0:B0 --type PXE
# Set a new boot order (must include ALL options)bmctools redfish boot set-order -o "Boot0003,Boot0001,Boot0000,Boot0002"
# One-time PXE bootbmctools redfish boot set-override -t Pxe --mode OnceSystem Management
bmctools redfish system info # show system infobmctools redfish system reset # graceful restartbmctools redfish system reset --type ForceRestartbmctools redfish system reset --type ForceOffbmctools redfish system reset-types # list supported reset typesFirmware
bmctools redfish firmware inventory -o tablebmctools redfish firmware update-bios -f /path/to/bios.binbmctools redfish firmware update-bmc -f /path/to/bmc.binIPMI
bmctools ipmi power statusbmctools ipmi power onbmctools ipmi power offbmctools ipmi power resetbmctools ipmi sel listbmctools ipmi sel list --age 24hDell-Specific
bmctools redfish dell get-nicsbmctools redfish dell pxe-boot -m 04:32:01:D8:C0:B0Python Library
from bmctools.redfish.redfish import Redfish
rf = Redfish('10.10.10.10', 'admin', 'password', verify_ssl=False)
print(rf.manufacturer) # auto-detected: "dell", "asus", "supermicro", etc.
boot_order = rf.get_boot_order()boot_options = rf.get_boot_options()option = rf.get_boot_option_by_mac('04:32:01:D8:C0:B0', type='PXE')
rf.set_boot_order(["Boot0003", "Boot0001", "Boot0000"])rf.reset_system() # gracefulrf.reset_system(reset_type='ForceOff')from bmctools.ipmi.ipmitool import IpmiTool
bmc = IpmiTool('10.10.10.10', 'admin', 'password')print(bmc.power_status())bmc.power_reset()
for entry in bmc.sel_list(): print(entry)from bmctools.racadm.racadm import Racadm
r = Racadm('10.10.10.10', 'admin', 'password')result = r.racadm_command('get BIOS.SysProfileSettings')print(result)Raw Redfish Exploration
bmctools redfish raw /redfish/v1 -o json-prettybmctools redfish raw /redfish/v1/Systemsbmctools redfish raw /redfish/v1/Managers/1bmctools redfish raw /redfish/v1/Chassis