BMC-DEVICE(8)
π bmc-device β the advanced-BMC-commands page (bmc-device(8), System Commands)
okay so bestie. you found bmc-device, section 8 of the System Commands manual. she's a FreeIPMI girlie, and she does advanced BMC stuff. buckle up π
β¨ NAME β¨
bmc-device β perform advanced BMC commands π«Ά
πΈ SYNOPSIS πΈ
bmc-device [OPTION...]
that's it. that's the whole synopsis. iconic.
π DESCRIPTION π
okay so bmc-device supports a whole variety of IPMI commands that do advanced BMC functions. she's a specialist, not a generalist π
fr fr, this tool is primarily used for:
- development debugging π
- BMC error recovery π
- pulling detailed technical information π
- and other advanced purposes β¨
heads up bestie: most IPMI users will not need this tool. like, at all. she's niche. also: some of the bmc-device commands are not supported on all motherboards π so if something vibes wrong, it might just be the board, not you.
listed below you'll find general IPMI options, tool specific options, troubleshooting info, workaround info, examples, and known issues. and if you want a general intro to FreeIPMI, go see freeipmi(7) β she's the gateway drug π¦
π GENERAL OPTIONS π
these are the general options for configuring IPMI communication and executing general tool commands. yes, there are a lot. no, we are not skipping any. periodt.
-DIPMIDRIVER,--driver-type=IPMIDRIVERβ specify the driver type to use instead of doing an auto selection. the currently available outofband drivers areLANandLAN_2_0, which perform IPMI 1.5 and IPMI 2.0 respectively. the currently available inband drivers areKCS,SSIF,OPENIPMI,SUNBMC, andINTELDCMI.--disable-auto-probeβ do not probe in-band IPMI devices for default settings. she minds her own business π--driver-address=DRIVER-ADDRESSβ specify the in-band driver address to be used instead of the probed value. DRIVER-ADDRESS should be prefixed with"0x"for a hex value and'0'for an octal value. hex girlies stay winning π--driver-device=DEVICEβ specify the in-band driver device path to be used instead of the probed path.--register-spacing=REGISTER-SPACINGβ specify the in-band driver register spacing instead of the probed value. the argument is in bytes (i.e.32bitregister spacing =4).--target-channel-number=CHANNEL-NUMBERβ specify the in-band driver target channel number to send IPMI requests to.--target-slave-address=SLAVE-ADDRESSβ specify the in-band driver target slave number to send IPMI requests to.-hIPMIHOST1,IPMIHOST2,..., ,--hostname=IPMIHOST1[:PORT],IPMIHOST2[:PORT],...β specify the remote host(s) to communicate with. multiple hostnames may be separated by comma, or may be specified in a range format; see HOSTRANGED SUPPORT below. an optional port can be specified with each host, which may be useful in port forwarding or similar situations. if specifying an IPv6 address and port, use the format[ADDRESS]:PORT. yes, with the brackets. she's fancy π-uUSERNAME,--username=USERNAMEβ specify the username to use when authenticating with the remote host. if not specified, a null (i.e. anonymous) username is assumed. the user must have atleastUSERprivileges in order for this tool to operate fully. (yes, at least. give her the permissions she deserves π)-pPASSWORD,--password=PASSWORDβ specify the password to use when authenticationg with the remote host. if not specified, a null password is assumed. maximum password length is16for IPMI 1.5 and20for IPMI 2.0. length matters, apparently π-P,--password-promptβ prompt for password to avoid possibility of listing it in process lists. lowkey the safer slay π₯-kK_G,--k-g=K_Gβ specify the K_g BMC key to use when authenticating with the remote host for IPMI 2.0. if not specified, a null key is assumed. to input the key in hexadecimal form, prefix the string with'0x'. e.g., the key'abc'can be entered with either the string'abc'or the string'0x616263'. both valid, both cute β¨-K,--k-g-promptβ prompt for k-g to avoid possibility of listing it in process lists. same energy, different key π--session-timeout=MILLISECONDSβ specify the session timeout in milliseconds. defaults to20000milliseconds (20 seconds) if not specified.--retransmission-timeout=MILLISECONDSβ specify the packet retransmission timeout in milliseconds. defaults to1000milliseconds (1 second) if not specified. the retransmission timeout cannot be larger than the session timeout β them's the rules π¨-aAUTHENTICATION-TYPE,--authentication-type=AUTHENTICATION-TYPEβ specify the IPMI 1.5 authentication type to use. the currently available authentication types areNONE,STRAIGHT_PASSWORD_KEY,MD2, andMD5. defaults toMD5if not specified.-ICIPHER-SUITE-ID,--cipher-suite-id=CIPHER-SUITE-IDβ specify the IPMI 2.0 cipher suite ID to use. the Cipher Suite ID identifies a set of authentication, integrity, and confidentiality algorithms to use for IPMI 2.0 communication. the authentication algorithm identifies the algorithm to use for session setup, the integrity algorithm identifies the algorithm to use for session packet signatures, and the confidentiality algorithm identifies the algorithm to use for payload encryption. defaults to cipher suite ID3if not specified. the following cipher suite ids are currently supported:0β Authentication Algorithm =None; Integrity Algorithm =None; Confidentiality Algorithm =None1β Authentication Algorithm =HMAC-SHA1; Integrity Algorithm =None; Confidentiality Algorithm =None2β Authentication Algorithm =HMAC-SHA1; Integrity Algorithm =HMAC-SHA1-96; Confidentiality Algorithm =None3β Authentication Algorithm =HMAC-SHA1; Integrity Algorithm =HMAC-SHA1-96; Confidentiality Algorithm =AES-CBC-1286β Authentication Algorithm =HMAC-MD5; Integrity Algorithm =None; Confidentiality Algorithm =None7β Authentication Algorithm =HMAC-MD5; Integrity Algorithm =HMAC-MD5-128; Confidentiality Algorithm =None8β Authentication Algorithm =HMAC-MD5; Integrity Algorithm =HMAC-MD5-128; Confidentiality Algorithm =AES-CBC-12811β Authentication Algorithm =HMAC-MD5; Integrity Algorithm =MD5-128; Confidentiality Algorithm =None12β Authentication Algorithm =HMAC-MD5; Integrity Algorithm =MD5-128; Confidentiality Algorithm =AES-CBC-12815β Authentication Algorithm =HMAC-SHA256; Integrity Algorithm =None; Confidentiality Algorithm =None16β Authentication Algorithm =HMAC-SHA256; Integrity Algorithm =HMAC_SHA256_128; Confidentiality Algorithm =None17β Authentication Algorithm =HMAC-SHA256; Integrity Algorithm =HMAC_SHA256_128; Confidentiality Algorithm =AES-CBC-128
yeah there are gaps in the numbers (no 4, 5, 9, 10, 13, 14). that's not me being flaky, that's just the list π¦
-lPRIVILEGE-LEVEL,--privilege-level=PRIVILEGE-LEVELβ specify the privilege level to be used. the currently available privilege levels areUSER,OPERATOR, andADMIN. defaults toADMINif not specified. main character energy only π--config-file=FILEβ specify an alternate configuration file.-WWORKAROUNDS,--workaround-flags=WORKAROUNDSβ specify workarounds to vendor compliance issues. multiple workarounds can be specified separated by commas. a special command line flag of"none"will indicate no workarounds (may be useful for overriding configured defaults). see WORKAROUNDS below for a list of available workarounds. vendor drama, handled π§--debugβ turn on debugging. the girlies love a good log π-?,--helpβ output a help list and exit.--usageβ output a usage message and exit.-V,--versionβ output the program version and exit.
(still more coming bestie, don't go anywhere π)
π BMC-DEVICE OPTIONS
Okay bestie, these are the ones that are, like, specifically for bmc-device β the main character options, if you will β¨
--cold-resetβ does a cold reset. Simple as that π§--warm-resetβ does a warm reset. Cozy little reset π₯--get-self-test-resultsβ spits out the BMC self test results so you can see how it's feeling π©Ί--get-acpi-power-stateβ gets the ACPI system and device power state, both at once, no cap β¨--set-acpi-power-stateβ sets the ACPI power state. Quick heads up: you have to specify this one if you wanna use the--set-acpi-system-power-stateand--set-acpi-device-power-stateoptions listed below. It's like the entry fee π--set-acpi-system-power-state=SYSTEM_POWER_STATEβ sets the ACPI system power state. The allowed values areS0_G0,S1,S2,S3,S4,S5_G2,S4_S5,G3,SLEEPING,G1_SLEEPING,OVERRIDE,LEGACY_ON,LEGACY_OFF,UNKNOWN. Use it together with the--set-acpi-power-stateoption π«Ά--set-acpi-device-power-state=DEVICE_POWER_STATEβ sets the ACPI device power state. Allowed values:D0,D1,D2,D3,UNKNOWN. Also used with the--set-acpi-power-stateoption π--get-lan-statisticsβ gets the IP, UDP, and RMCP statistics π--clear-lan-statisticsβ clears the IP, UDP, and RMCP statistics. Fresh slate energy π§Ό--rearm-sensor="<record_id> [<assertion_bitmask> <deassertion_bitmask>]"β re-arms a sensor. So, like, re-arming a sensor means you're telling the internal device to reset and re-evaluate a sensor reading and its events. Most sensors re-arm themselves automatically, but a rare few genuinely need you to do it manually π This option can also be useful for resetting a sensor reading or event that's stuck because of some internal hardware or firmware error. If you specifyassertion_bitmaskanddeassertion_bitmask, then only those specific events get re-armed. If you don't specify them, all possible events get re-armed. Also, this command requires the SDR to be loaded, fyi.--get-sdr-repository-timeβ gets the SDR repository time β°--set-sdr-repository-time=TIMEβ sets the SDR repository time. Input format is"MM/DD/YYYY - HH:MM:SS". Note that hours are input in 24 hour form, bestie. Alternatively you can just say"now"and it'll use the local system time π--get-sel-timeβ gets the SEL time β±οΈ--set-sel-time=TIMEβ sets the SEL time. Input format is"MM/DD/YYYY - HH:MM:SS", and again, hours go in 24 hour form. Or you can pass"now"to use the local system time β¨--get-sel-time-utc-offsetβ gets the SEL time UTC offset π--set-sel-time-utc-offset=MINUTESβ sets the SEL time UTC offset. Input is in minutes of difference from UTC time, ranging from-1440to1440minutes. Special case: you can pass the value"none"so that no UTC offset is specified at all π--platform-event="[generator_id] <event_message_format_version> <sensor_type> <sensor_number> <event_type> <event_direction> <event_data1> <event_data2> <event_data3>"β tells the BMC to process the event data you specified. Typically that data gets logged to the System Event Log (SEL), but depending on the implementation it might be processed by other subsystems like Platform Event Filtering (PEF). Forevent_directionyou can use the keywordsassertionordeassertion, or just use the numerical values instead.event_message_format_versionis0x03for IPMI 1.0 and0x04for IPMI 1.5. Thatgenerator_idup there is optional β but it's required if you're generating the event via a system interface (i.e. inband). And if you are generating the event via a system interface, the system management software generator id range is0x41to6Fhπ--set-sensor-reading-and-event-status="<sensor_number> <sensor_reading> <sensor_reading_operation> <assertion_bitmask> <assertion_bitmask_operation> <deassertion_bitmask> <deassertion_bitmask_operation> <event_data1> <event_data2> <event_data3> <event_data_operation>"β tells the BMC to set a sensor reading and/or event status. How each of the various fields gets written depends on the set of operation instructions you specify:- The
sensor_readingcan be written or left alone with the respective operationswriteandnochange. - For
assertion_bitmaskanddeassertion_bitmask: the0bits of the bitmask can clear the bits of the status, the1bits of the bitmask can set the bits of the status, the entire bitmask can be written as the status, or the status can't be changed at all β with the respective operationsclear0bits,set1bits,write, andnochange. - The
event_data1byte can be written fully, written without the event offset (bits3:0), or not changed at all, via thewrite,nooffsetwrite, ornochangeoperations.
- The
--get-mca-auxiliary-log-statusβ gets machine check architecture (MCA) auxiliary log status information π--get-ssif-interface-capabilitiesβ gets SSIF interface capabilities π§΅--get-kcs-interface-capabilitiesβ gets KCS interface capabilities π―--get-bt-interface-capabilitiesβ gets BT interface capabilities π¦--get-bmc-global-enablesβ gets BMC Global Enables π--set-system-firmware-version=STRINGβ sets the System Firmware Version π·οΈ--set-system-name=STRINGβ sets the System Name βοΈ--set-primary-operating-system-name=STRINGβ sets the Primary Operating System Name π»--set-operating-system-name=STRINGβ sets the Operating System Name π₯οΈ--set-present-os-version-number=STRINGβ sets the Present OS Version Number π’--set-bmc-url=STRINGβ sets the BMC URL π--set-base-os-hypervisor-url=STRINGβ sets the Base OS/Hypervisor URL πΈ--read-fru=FILENAMEβ reads the contents of a FRU device ID and stores it in the file you specified. Requires you to set a device ID via--device-idπ--write-fru=FILENAMEβ writes the contents of the file you specified into a FRU device id. Also requires setting a device ID via--device-id. And if--verboseis specified, progress percent will be output too π--device-id=IDNUMβ specifies a specific FRU device ID. This one's for use with--read-fruand--write-fruπ--verboseβ increases verbosity in output. More tea, more details π£οΈ
πΈ SDR CACHE OPTIONS
So this tool needs access to the sensor data repository (SDR) cache for general operation β like, it's not optional, bestie. By default, SDR data gets downloaded and cached on your local machine. These options are all about that cache life π
--flush-cacheβ flushes a cached version of the sensor data repository (SDR) cache. The SDR is typically cached so subsequent access is faster, but you may need to flush it and re-generate it if the SDR has been updated on a system π§Ή--quiet-cacheβ doesn't output any info about cache creation/deletion. Super useful in scripting, ngl π€«--sdr-cache-recreateβ if the SDR cache is out of date or invalid, it automatically recreates the sensor data repository (SDR) cache. Also very much a scripting-friendly option β¨--sdr-cache-file=FILEβ specifies a specific sensor data repository (SDR) cache file to store to or read from. Heads up: if you use this option when multiple hosts are specified, that same SDR cache file gets used for all of them ποΈ--sdr-cache-directory=DIRECTORYβ specifies an alternate directory for sensor data repository (SDR) caches to be stored in or read from. Defaults to the home directory if you don't specify one π
β° TIME OPTIONS
Okay so by IPMI definition, all IPMI times and timestamps are stored in localtime. But plot twist: in many situations the timestamps will not actually be stored in localtime π Whether or not a system truly stored the timestamps in localtime varies on a whole bunch of factors β the vendor, the BIOS, the operating system, all of it. The following options let you adjust how the stored timestamps get interpreted and how they get outputted. Choose your fighter π
--utc-to-localtimeβ assumes all times are reported in UTC time, then converts the time to localtime before outputting πβ‘οΈπ‘--localtime-to-utcβ converts all localtime timestamps to UTC before outputting π‘β‘οΈπ--utc-offset=SECONDSβ specifies a specific UTC offset in seconds to be added to timestamps. The value can range from-86400to86400seconds. Defaults to0β³
π HOSTRANGED OPTIONS
These options manipulate hostranged output. For extra info on hostranges, see HOSTRANGED SUPPORT below, iykyk π«Ά
-B,--buffer-outputβ buffers hostranged output. For each node, standard output gets buffered until that node has completed its IPMI operation. When you specify this option, data may appear to output slower to you, since the entire IPMI operation has to complete before any data can be output. See HOSTRANGED SUPPORT below for more π¦-C,--consolidate-outputβ consolidates hostranged output. The complete standard output from every node you specified gets consolidated so that nodes with identical output aren't output twice. A header will list those nodes with the consolidated output. When this option is specified, no output can be seen until the IPMI operations to all nodes have completed. And if you break out of the program early, all currently consolidated output will be dumped. See HOSTRANGED SUPPORT below for more π§-F NUM,--fanout=NUMβ specifies multiple host fanout. A "sliding window" (or fanout) algorithm is used for parallel IPMI communication so that slower nodes or timed-out nodes won't impede parallel communication. The maximum number of threads available at the same time is limited by the fanout. The default is64πͺ-E,--eliminateβ eliminates hosts determined as undetected byipmidetect. This attempts to remove the common issue of hostranged execution timing out because several nodes were removed from service in a large cluster. Theipmidetectddaemon must be running on the node executing the command, fyi π«--always-prefixβ always prefixes output, even if only one host is specified or you're communicating in-band. This option is primarily useful for scripting purposes. It'll be ignored if you specify it with the-Coption π
π HOSTRANGED SUPPORT π
okay so bestie, you can feed this thing so many hosts at once, and there are exactly two ways to do it π
- a straight-up comma separated list of hosts
- or a range of hostnames in the general form
prefix[n-m,l-k,...], wheren < mandl < k, etc.
β οΈ do not confuse that second one with regular expression character classes (which also get the[]treatment). for example,foo[19]does not representfoo1orfoo9β it represents a degenerate range:foo19. yes literally. that's just what it means π
this range syntax is only meant as a convenience on clusters with a prefixNN naming convention, and specifying ranges should not be considered necessary β the list foo1,foo9 could be specified as such, or by the range foo[1,9]. either way, slay π
some examples of range usage, because examples are my love language:
foo[01-05] instead of foo01,foo02,foo03,foo04,foo05
foo[7,9-10] instead of foo7,foo9,foo10
foo[0-3] instead of foo0,foo1,foo2,foo3
and a lil reminder to the reader (that's you, bestie π«Ά): some shells will interpret brackets ([ and ]) for pattern matching. depending on your shell, it may be necessary to enclose ranged lists within quotes. don't come for me when your shell eats your brackets, k?
when multiple hosts are specified by the user, a thread will be executed for each host in parallel up to the configured fanout (which can be adjusted via the -F option). this will allow communication to large numbers of nodes far more quickly than if done in serial. parallelism! we love to see it β‘
by default, standard output from each node specified will be output with the hostname prepended to each line. it's readable in many situations, but honestly it may be difficult to read in other situations β for example, output from multiple nodes may be mixed together. kinda chaotic, ngl π the -B and -C options can be used to change this default. iconic behavior, fix your own vibe π
also: in-band IPMI communication will be used when the host "localhost" is specified π this lets the user add the localhost into the hostranged output. cute, right? π
π©Ί GENERAL TROUBLESHOOTING π©Ί
bestie, most often, IPMI problems are due to configuration problems. like, 9 times out of 10 it's the config, not the vibes π
π IPMI over LAN
IPMI over LAN problems involve a misconfiguration of the remote machine's BMC. double check to make sure the following are configured properly in the remote machine's BMC: IP address, MAC address, subnet mask, username, user enablement, user privilege, password, LAN privilege, LAN enablement, and allowed authentication type(s). that's a whole list, but we go through it line by line, periodt β¨
for IPMI 2.0 connections, double check to make sure the cipher suite privilege(s) and K_g key are configured properly. the ipmi-config(8) tool can be used to check and/or change these configuration settings β literally your bestie for this exact situation π«Ά
π Inband IPMI
inband IPMI problems are typically caused by improperly configured drivers or non-standard BMCs. that's it, that's the vibe check πΈ
in addition to the troubleshooting tips below, please see WORKAROUNDS below to also if there are any vendor specific bugs that have been discovered and worked around. (that sentence gives "written at 3am energy" but we keep it, no cap π)
π Common error messages, decoded
listed below are many of the common issues for error messages. for additional support, please e-mail the <freeipmi-users@gnu.org> mailing list π
"username invalid"β the username entered (or a NULL username if none was entered) is not available on the remote machine. it may also be possible the remote BMC's username configuration is incorrect."password invalid"β the password entered (or a NULL password if none was entered) is not correct. it may also be possible the password for the user is not correctly configured on the remote BMC."password verification timeout"β password verification has timed out. a"password invalid"error (described above) or a generic"session timeout"(described below) occurred. during this point in the protocol it cannot be differentiated which occurred. rude, but okay β³"k_g invalid"β the K_g key entered (or a NULL K_g key if none was entered) is not correct. it may also be possible the K_g key is not correctly configured on the remote BMC."privilege level insufficient"β an IPMI command requires a higher user privilege than the one authenticated with. please try to authenticate with a higher privilege. this may require authenticating to a different user which has a higher maximum privilege. π"privilege level cannot be obtained for this user"β the privilege level you are attempting to authenticate with is higher than the maximum allowed for this user. please try again with a lower privilege. it may also be possible the maximum privilege level allowed for a user is not configured properly on the remote BMC."authentication type unavailable for attempted privilege level"β the authentication type you wish to authenticate with is not available for this privilege level. please try again with an alternate authentication type or alternate privilege level. it may also be possible the available authentication types you can authenticate with are not correctly configured on the remote BMC."cipher suite id unavailable"β the cipher suite id you wish to authenticate with is not available on the remote BMC. please try again with an alternate cipher suite id. it may also be possible the available cipher suite ids are not correctly configured on the remote BMC."ipmi 2.0 unavailable"β IPMI 2.0 was not discovered on the remote machine. please try to use IPMI 1.5 instead. downgrade era, but make it fashion π"connection timeout"β initial IPMI communication failed. a number of potential errors are possible, including an invalid hostname specified, an IPMI IP address cannot be resolved, IPMI is not enabled on the remote server, the network connection is bad, etc. please verify configuration and connectivity. genuinely the "have you tried turning it off and on again" of this list π"session timeout"β the IPMI session has timed out. please reconnect. if this error occurs often, you may wish to increase the retransmission timeout. some remote BMCs are considerably slower than others. they're doing their best okay π"device not found"β the specified device could not be found. please check configuration or inputs and try again."driver timeout"β communication with the driver or device has timed out. please try again."message timeout"β communication with the driver or device has timed out. please try again."BMC busy"β the BMC is currently busy. it may be processing information or have too many simultaneous sessions to manage. please wait and try again. main character energy, it needs a minute π§"could not find inband device"β an inband device could not be found. please check configuration or specify specific device or driver on the command line."driver timeout"β the inband driver has timed out communicating to the local BMC or service processor. the BMC or service processor may be busy or (worst case) possibly non-functioning. π
π«Ά yes, "driver timeout" is listed twice in this page β both versions are right here, one for the driver-or-device case and one for the inband-driver-to-local-BMC case. we did not merge them, we would never π€
Okay bestie, buckle up π β this is the part where we talk about all the vendors who did not follow the spec, and the little hacks we built so you can still get your data. π«Ά
Every vendor out there implementing their own IPMI solution means, inevitably, that different vendors may implement their IPMI protocols incorrectly π. The following describes a number of workarounds currently available to handle discovered compliance issues. When possible, workarounds have been implemented so they will be transparent to the user. However, some will require the user to specify a workaround be used via the -W option.
The hardware listed below may only indicate the hardware that a problem was discovered on. Newer versions of hardware may fix the problems indicated below. Similar machines from vendors may or may not exhibit the same problems. Different vendors may license their firmware from the same IPMI firmware developer, so it may be worthwhile to try workarounds listed below even if your motherboard is not listed. π
If you believe your hardware has an additional compliance issue that needs a workaround to be implemented, please contact the FreeIPMI maintainers on freeipmi-users@gnu.org or freeipmi-devel@gnu.org. π
assumeioβ this workaround flag will assume inband interfaces communicate with system I/O rather than being memory-mapped. It works around systems that report invalid base addresses. Those hitting this issue may seedevice not supportedorcould not find inband deviceerrors. Issue observed on HP ProLiant DL145 G1.spinpollβ this workaround flag will inform some inband drivers (most notably the KCS driver) to spin while polling rather than putting the process to sleep π΄. This may significantly improve the wall clock running time of tools because an operating system scheduler's granularity may be much larger than the time it takes to perform a single IPMI message transaction. However β heads up β by spinning, your system may be performing less useful work by not contexting out the tool for a more useful task. Trade-offs, bestie.authcapβ this workaround flag will skip early checks for username capabilities, authentication capabilities, and K_g support and allow IPMI authentication to succeed. It works around multiple issues in which the remote system does not properly report username capabilities, authentication capabilities, or K_g status. Those hitting this issue may seeusername invalid,authentication type unavailable for attempted privilege level, ork_g invaliderrors. Issue observed on Asus P5M2/P5MT-R/RS162-E4/RX4, Intel SR1520ML/X38ML, and Sun Fire 2200/4150/4450 with ELOM.nochecksumcheckβ this workaround flag will tell FreeIPMI to not check the checksums returned from IPMI command responses. It works around systems that return invalid checksums due to implementation errors, but the packet is otherwise valid. Users are cautioned on the use of this option, as it removes validation of packet integrity in a number of circumstances π¬. However, it is unlikely to be an issue in most situations. Those hitting this issue may seeconnection timeout,session timeout, orpassword verification timeouterrors. On IPMI 1.5 connections, thenoauthcodecheckworkaround may also needed too. Issue observed on Supermicro X9SCM-iiF, Supermicro X9DRi-F, and Supermicro X9DRFR.idzeroβ this workaround flag will allow empty session IDs to be accepted by the client. It works around IPMI sessions that report empty session IDs to the client. Those hitting this issue may seesession timeouterrors. Issue observed on Tyan S2882 with M3289 BMC.unexpectedauthβ this workaround flag will allow unexpected non-null authcodes to be checked as though they were expected. It works around an issue when packets contain non-null authentication data when they should be null due to disabled per-message authentication. Those hitting this issue may seesession timeouterrors. Issue observed on Dell PowerEdge 2850,SC1425. Confirmed fixed on newer firmware. βforcepermsgβ this workaround flag will force per-message authentication to be used no matter what is advertised by the remote system. It works around an issue when per-message authentication is advertised as disabled on the remote system, but it is actually required for the protocol. Those hitting this issue may seesession timeouterrors. Issue observed on IBM eServer 325.endianseqβ this workaround flag will flip the endian of the session sequence numbers to allow the session to continue properly. It works around IPMI 1.5 session sequence numbers that are the wrong endian. Those hitting this issue may seesession timeouterrors. Issue observed on some Sun ILOM 1.0/2.0 (depends on service processor endian).noauthcodecheckβ this workaround flag will tell FreeIPMI to not check the authentication codes returned from IPMI 1.5 command responses. It works around systems that return invalid authentication codes due to hashing or implementation errors. Users are cautioned on the use of this option, as it removes an authentication check verifying the validity of a packet π¬. However, in most organizations, this is unlikely to be a security issue. Those hitting this issue may seeconnection timeout,session timeout, orpassword verification timeouterrors. Issue observed on Xyratex FB-H8-SRAY, Intel Windmill, Quanta Winterfell, and Wiwynn Windmill.intel20β this workaround flag will work around several Intel IPMI 2.0 authentication issues. The issues covered include padding of usernames, and password truncation if the authentication algorithm is HMAC-MD5-128. Those hitting this issue may seeusername invalid,password invalid, ork_g invaliderrors. Issue observed on Intel SE7520AF2 with Intel Server Management Module (Professional Edition).supermicro20β this workaround flag will work around several Supermicro IPMI 2.0 authentication issues on motherboards w/ Peppercon IPMI firmware. The issues covered include handling invalid length authentication codes. Those hitting this issue may seepassword invaliderrors. Issue observed on Supermicro H8QME with SIMSO daughter card. Confirmed fixed on newer firmware. βsun20β this workaround flag will work around several Sun IPMI 2.0 authentication issues. The issues covered include invalid lengthed hash keys, improperly hashed keys, and invalid cipher suite records. Those hitting this issue may seepassword invalidorbmc errorerrors. Issue observed on Sun Fire 4100/4200/4500 with ILOM. This workaround automatically includes theopensessprivworkaround. πopensessprivβ this workaround flag will slightly alter FreeIPMI's IPMI 2.0 connection protocol to workaround an invalid hashing algorithm used by the remote system. The privilege level sent during the Open Session stage of an IPMI 2.0 connection is used for hashing keys instead of the privilege level sent during the RAKP1 connection stage. Those hitting this issue may seepassword invalid,k_g invalid,bad rmcpplus status code, orprivilege level cannot be obtained for this usererrors. Issue observed on Sun Fire 4100/4200/4500 with ILOM, Inventec 5441/Dell Xanadu II, Supermicro X8DTH, Supermicro X8DTG, Intel S5500WBV/Penguin Relion 700, Intel S2600JF/Appro 512X, Quanta QSSC-S4R/Appro GB812X-CN, Dell C5220, and the OpenIPMI software BMC. This workaround is automatically triggered with thesun20workaround.integritycheckvalueβ this workaround flag will work around an invalid integrity check value during an IPMI 2.0 session establishment when using Cipher Suite ID 0. The integrity check value should be 0 length, however the remote motherboard responds with a non-empty field. Those hitting this issue may seek_g invaliderrors. Issue observed on Supermicro X8DTG, Supermicro X8DTU, and Intel S5500WBV/Penguin Relion 700, and Intel S2600JF/Appro 512X.assumemaxsdrrecordcountβ this workaround will inform SDR reading to stop reading after a known maximum number of SDR records have been read. This will work around systems that have miss-implemented SDR reading functions. Those hitting this issue may seeSDR record count invaliderrors. Issue observed on unspecified Inspur motherboard.- No IPMI 1.5 Support β some motherboards that support IPMI 2.0 have been found to not support IPMI 1.5 π. Those hitting this issue may see
ipmi 2.0 unavailableorconnection timeouterrors. This issue can be worked around by using IPMI 2.0 instead of IPMI 1.5 by specifying--driver-type=LAN_2_0. Issue observed on a number of HP and Supermicro motherboards.
π EXAMPLES π
Okay, real talk, these are the moments you screenshot and send to the group chat:
# bmc-device --cold-reset
Perform a cold reset. βοΈ iconic, no notes.
# bmc-device -h ahost -u myusername -p mypassword --cold-reset
Perform a cold reset of a remote machine using IPMI over LAN. π
# bmc-device -h mycluster[0-127] -u myusername -p mypassword --cold-reset
Perform a cold reset across a cluster using IPMI over LAN. π that bracket range notation is doing the most and we love her for it.
π DIAGNOSTICS π
Upon successful execution, exit status is 0. On error, exit status is 1.
If multiple hosts are specified for communication, the exit status is 0 if and only if all targets successfully execute. Otherwise the exit status is 1. So yeah, one flaky host and the whole vibe is ruined, fr fr.
π KNOWN ISSUES π
On older operating systems, if you input your username, password, and other potentially security relevant information on the command line, this information may be discovered by other users when using tools like the ps(1) command or looking in the /proc file system. Not the move. It is generally more secure to input password information with options like the -P or -K options. Configuring security relevant information in the FreeIPMI configuration file would also be an appropriate way to hide this information. π
In order to prevent brute force attacks, some BMCs will temporarily "lock up" after a number of remote authentication errors. You may need to wait awhile in order to this temporary "lock up" to pass before you may authenticate again. So if you're sitting there like "why is it not working π" β bestie, you might just be in timeout. β³
π REPORTING BUGS π
Report bugs to freeipmi-users@gnu.org or freeipmi-devel@gnu.org. They're nice, I promise π«Ά
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2008-2015 FreeIPMI Core Team.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
π¦ SEE ALSO π¦
http://www.gnu.org/software/freeipmi/
And that's the whole page, bestie, you made it to the end ππ This was bmc-device version 1.6.20, dated 2026-10-05 β go forth and cold-reset responsibly, mwah π
β¨
π¦ where this page comes from
- arch rolling: freeipmi 1.6.20-1 Β· GPL-3.0-or-later
- centos-stream 10: freeipmi 1.6.20-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: freeipmi 1.6.20-1.el9 Β· GPLv3+
- centos-stream 9: freeipmi 1.6.20-1.el9 Β· GPLv3+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms