IPMI-RAW(8)
π NAME π
okay so bestie, welcome to IPMI-RAW(8) β filed under System Commands β aka the ipmi-raw manual. This is the tool that lets you execute IPMI commands by hex values, and that's literally the whole pitch.
ipmi-rawβ execute IPMI commands by hex values β¨
π SYNOPSIS π
ipmi-raw [OPTION...] [<lun> <netfn> COMMAND-HEX-BYTES...]
π¦ DESCRIPTION π¦
ipmi-raw is used to execute IPMI commands by hex values. Hex values may be input on the command line, a file via the --file option, or via stdin if neither of the previous are specified. Pick your lane, bestie π
Listed below are general IPMI options, tool specific options, trouble shooting information, workaround information, examples, and known issues. For a general introduction to FreeIPMI please see freeipmi(7). π«Ά
β GENERAL OPTIONS β
These are the general options for configuring IPMI communication and executing general tool commands.
-D IPMIDRIVER,--driver-type=IPMIDRIVERβ Specify the driver type to use instead of doing an auto selection. The currently available out-of-band drivers areLANandLAN_2_0, which perform IPMI 1.5 and IPMI 2.0 respectively. The currently available in-band drivers areKCS,SSIF,OPENIPMI,SUNBMC, andINTELDCMI.--disable-auto-probeβ Do not probe in-band IPMI devices for default settings.--driver-address=DRIVER-ADDRESSβ Specify the in-band driver address to be used instead of the probed value.DRIVER-ADDRESSshould be prefixed with"0x"for a hex value and'0'for an octal value.--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. Argument is in bytes (i.e. 32bit register 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.-h IPMIHOST1,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.-u USERNAME,--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 required user privilege will depend on the raw commands executed.-p PASSWORD,--password=PASSWORDβ Specify the password to use when authenticating with the remote host. If not specified, a null password is assumed. Maximum password length is 16 for IPMI 1.5 and 20 for IPMI 2.0.-P,--password-promptβ Prompt for password to avoid possibility of listing it in process lists.-k K_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'.-K,--k-g-promptβ Prompt for k-g to avoid possibility of listing it in process lists.--session-timeout=MILLISECONDSβ Specify the session timeout in milliseconds. Defaults to 20000 milliseconds (20 seconds) if not specified.--retransmission-timeout=MILLISECONDSβ Specify the packet retransmission timeout in milliseconds. Defaults to 1000 milliseconds (1 second) if not specified. The retransmission timeout cannot be larger than the session timeout.-a AUTHENTICATION-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.-I CIPHER-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 ID 3 if 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
-l PRIVILEGE-LEVEL,--privilege-level=PRIVILEGE-LEVELβ Specify the privilege level to be used. The currently available privilege levels areUSER,OPERATOR, andADMIN. Defaults toADMINif not specified.--config-file=FILEβ Specify an alternate configuration file.-W WORKAROUNDS,--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.--debugβ Turn on debugging.-?,--helpβ Output a help list and exit.--usageβ Output a usage message and exit.-V,--versionβ Output the program version and exit.
π IPMI-RAW OPTIONS π
The following options are specific to ipmi-raw.
--file=CMD-FILEβ Specify a file to read command requests from.--no-sessionβ If performing out of band communication, do not establish an IPMI session and send raw packets without having established a session/authenticating. This option is predominantly for testing the few IPMI packets that can work outside of a session and should not be used by the majority of users.
β οΈ okay but for real, bestie: --no-session is a niche testing vibe, not a daily-driver move. The manual says it should not be used by the majority of users, and we respect the manual.
πΈ HOSTRANGED OPTIONS πΈ
The following options manipulate hostranged output. See HOSTRANGED SUPPORT below for additional information on hostranges.
-B,--buffer-outputβ Buffer hostranged output. For each node, buffer standard output until the node has completed its IPMI operation. When specifying this option, data may appear to output slower to the user since the entire IPMI operation must complete before any data can be output. See HOSTRANGED SUPPORT below for additional information.-C,--consolidate-outputβ Consolidate hostranged output. The complete standard output from every node specified will be consolidated so that nodes with identical output are not 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 has completed. If the user breaks out of the program early, all currently consolidated output will be dumped. See HOSTRANGED SUPPORT below for additional information.-F NUM,--fanout=NUMβ Specify multiple host fanout. A"sliding window"(or fanout) algorithm is used for parallel IPMI communication so that slower nodes or timed out nodes will not impede parallel communication. The maximum number of threads available at the same time is limited by the fanout. The default is64.-E,--eliminateβ Eliminate hosts determined as undetected byipmidetect. This attempts to remove the common issue of hostranged execution timing out due to several nodes being removed from service in a large cluster. Theipmidetectddaemon must be running on the node executing the command.--always-prefixβ Always prefix output, even if only one host is specified or communicating in-band. This option is primarily useful for scripting purposes. Option will be ignored if specified with the-Coption.
β¨ HOSTRANGED SUPPORT β¨
okay so this is the part where you get to be lazy in the best way π
you can feed in multiple hosts two different ways: either as an explicit comma separated list of hosts, or as a range of hostnames shaped like prefix[n-m,l-k,...], where n < m and l < k, etc. π«Ά
β οΈ do not mix this up with regular expression character classes (which also use[]). like,foo[19]does not meanfoo1orfoo9β it's a degenerate range and it literally just meansfoo19. π yes really.
the range syntax is genuinely just a convenience thing for clusters with a prefixNN naming convention, and tbh specifying ranges is not required β you can write foo1,foo9 as-is, or use the range foo[1,9]. either one, no cap. π¦
some examples of range usage:
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
friendly reminder bestie: some shells will interpret brackets ([ and ]) for pattern matching. depending on your shell, you may need to wrap ranged lists in quotes. π
when you specify multiple hosts, a thread gets executed for each host in parallel up to the configured fanout (which you can tweak with the -F option). that's how you talk to huge numbers of nodes way faster than doing it serially. main character scalability energy. π
by default, standard output from each node gets printed with the hostname prepended to each line. that's readable in lots of situations but honestly can get messy in others β like, output from multiple nodes may be mixed together π΅βπ«. the -B and -C options are your besties for changing that default.
and here's a cute one: when the host localhost is specified, in-band IPMI Communication will be used. that lets you add the localhost into the hostranged output. π
πΈ GENERAL TROUBLESHOOTING πΈ
most often, IPMI problems are due to configuration problems. like, it's almost always the config. π
IPMI over LAN problems involve a misconfiguration of the remote machine's BMC. double check that 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). for IPMI 2.0 connections, double check that 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. π οΈ
Inband IPMI problems are typically caused by improperly configured drivers or non-standard BMCs.
in addition to the troubleshooting tips below, please see WORKAROUNDS below to also see if there are any vendor specific bugs that have been discovered and worked around. π
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. π¬"k_g invalid"β theK_gkey entered (or a NULLK_gkey if none was entered) is not correct. it may also be possible theK_gkey 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."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. π"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. π"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. β³"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. π"internal IPMI error"β an IPMI error has occurred that FreeIPMI does not know how to handle. please e-mail <freeipmi-users@gnu.org> to report the issue. π
π οΈ WORKAROUNDS π οΈ
Okay bestie, so hereβs the situation: there are so many different vendors out there implementing their own IPMI solutions, and sometimes they 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. If youβre hitting this issue, you may see"device not supported"or"could not find inband device"errors. 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, by spinning, your system may be performing less useful work by not contexting out the tool for a more useful task.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. If youβre hitting this issue, you may see"username invalid","authentication type unavailable for attempted privilege level", or"k_g invalid"errors. 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.
If youβre hitting this issue, you may see "connection timeout", "session timeout", or "password verification timeout" errors. On IPMI 1.5 connections, the noauthcodecheck workaround may also be 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. If youβre hitting this issue, you may see"session timeout"errors. 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. If youβre hitting this issue, you may see"session timeout"errors. Issue observed onDell 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. If youβre hitting this issue, you may see"session timeout"errors. 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. If youβre hitting this issue, you may see"session timeout"errors. 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.
If youβre hitting this issue, you may see "connection timeout", "session timeout", or "password verification timeout" errors. 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. If youβre hitting this issue, you may see"username invalid","password invalid", or"k_g invalid"errors. 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. If youβre hitting this issue, you may see"password invalid"errors. Issue observed on Supermicro H8QME with SIMSO daughter card. Confirmed fixed on newerver 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. If youβre hitting this issue, you may see"password invalid"or"bmc error"errors. 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. If youβre hitting this issue, you may see"password invalid","k_g invalid","bad rmcpplus status code", or"privilege level cannot be obtained for this user"errors. 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. If youβre hitting this issue, you may see"k_g invalid"errors. Issue observed on Supermicro X8DTG, Supermicro X8DTU, and Intel S5500WBV/Penguin Relion 700, and Intel S2600JF/Appro 512X.- No IPMI 1.5 Support β some motherboards that support IPMI 2.0 have been found to not support IPMI 1.5. If youβre hitting this issue, you may see
"ipmi 2.0 unavailable"or"connection timeout"errors. 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 π
# ipmi-raw 0 6 01
Execute command 0x01 with LUN 0x0 and NETFN 0x06 on the local machine.
# ipmi-raw -h ahost -u myusername -p mypassword 0 6 01
Execute command 0x01 with LUN 0x0 and NETFN 0x06 on a remote machine using IPMI over LAN.
# ipmi-raw -h mycluster[0-127] -u myusername -p mypassword 0 6 01
Execute command 0x01 with LUN 0x0 and NETFN 0x06 across a cluster using IPMI over LAN.
# ipmi-raw
Read LUN, NETFN, command and request data from standard input.
# ipmi-raw --file=command-file
Read LUN, NETFN, command and request data from given file instead of standard input.
# ipmi-raw < command-file
Read LUN, NETFN, command and request data from file as standard input.
π 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.
π 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. 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.
π REPORTING BUGS π
Report bugs to freeipmi-users@gnu.org or freeipmi-devel@gnu.org.
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2005-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 π
freeipmi.conf(5), freeipmi(7), ipmi-config(8), ipmi-oem(8)
http://www.gnu.org/software/freeipmi/
okay thatβs the whole page bestie π the source/version is IPMI Raw version 1.6.20, itβs dated 2026-10-05, and yes, this icon is IPMI-RAW(8) β periodt β¨π
π¦ 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