env
ID1=gdhong PW1=... ID2=monitor PW2=...
# For HP, Fjtsy CH=2 # Other CH=1
overview
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 No command provided! Commands: raw Send a RAW IPMI request and print response i2c Send an I2C Master Write-Read command and print response spd Print SPD info from remote I2C device lan Configure LAN Channels chassis Get chassis status and set power state power Shortcut to chassis power commands event Send pre-defined events to MC mc Management Controller status and global enables sdr Print Sensor Data Repository entries and readings sensor Print detailed sensor information fru Print built-in FRU and scan SDR for FRU locators gendev Read/Write Device associated with Generic Device locators sdr sel Print System Event Log (SEL) pef Configure Platform Event Filtering (PEF) sol Configure and connect IPMIv2.0 Serial-over-LAN tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN isol Configure IPMIv1.5 Serial-over-LAN user Configure Management Controller users channel Configure Management Controller channels session Print session information dcmi Data Center Management Interface nm Node Manager Interface sunoem OEM Commands for Sun servers kontronoem OEM Commands for Kontron devices picmg Run a PICMG/ATCA extended cmd fwum Update IPMC using Kontron OEM Firmware Update Manager firewall Configure Firmware Firewall delloem OEM Commands for Dell systems shell Launch interactive IPMI shell exec Run list of commands from file set Set runtime variable for shell and exec hpm Update HPM components using PICMG HPM.1 file ekanalyzer run FRU-Ekeying analyzer using FRU files ime Update Intel Manageability Engine Firmware vita Run a VITA 46.11 extended cmd lan6 Configure IPv6 LAN Channels
chassis
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 chassis Chassis Commands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 chassis status System Power : on Power Overload : false Power Interlock : inactive Main Power Fault : false Power Control Fault : false Power Restore Policy : previous Last Power Event : Chassis Intrusion : inactive Front-Panel Lockout : inactive Drive Fault : false Cooling/Fan Fault : false Sleep Button Disable : not allowed Diag Button Disable : allowed Reset Button Disable : not allowed Power Button Disable : allowed Sleep Button Disabled: false Diag Button Disabled : true Reset Button Disabled: false Power Button Disabled: false # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 chassis power status Chassis Power is on
power
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 power chassis power Commands: status, on, off, cycle, reset, diag, soft # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 power status Chassis Power is on
event
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 event usage: event <num> Send generic test events 1 : Temperature - Upper Critical - Going High 2 : Voltage Threshold - Lower Critical - Going Low 3 : Memory - Correctable ECC usage: event file <filename> Read and generate events from file Use the 'sel save' command to generate from SEL usage: event <sensorid> <state> [event_dir] sensorid : Sensor ID string to use for event data state : Sensor state, use 'list' to see possible states for sensor event_dir : assert, deassert [default=assert]
sdr
ipmitool sdr list | elist [<all|full|compact|event|mcloc|fru|generic>] all All SDR records (Sensor and Locator) full Full Sensor Record compact Compact Sensor Record event Event-Only Sensor Record mcloc Management Controller Locator Record fru FRU Locator Record generic Generic SDR records
sdr elist
sdr elist full
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr elist full Fan1 RPM | 30h | ok | 7.1 | 3960 RPM Fan2 RPM | 31h | ok | 7.1 | 4080 RPM Fan3 RPM | 32h | ok | 7.1 | 3960 RPM Fan4 RPM | 33h | ok | 7.1 | 3960 RPM Fan5 RPM | 34h | ok | 7.1 | 3960 RPM Fan6 RPM | 35h | ok | 7.1 | 4080 RPM Inlet Temp | 04h | ok | 7.1 | 20 degrees C Exhaust Temp | 01h | ok | 7.1 | 26 degrees C Temp | 0Eh | ok | 3.1 | 25 degrees C Temp | 0Fh | ok | 3.2 | 22 degrees C Current 1 | 6Ah | ok | 10.1 | 0.60 Amps Current 2 | 6Bh | ok | 10.2 | 0 Amps Voltage 1 | 6Ch | ok | 10.1 | 220 Volts Voltage 2 | 6Dh | ok | 10.2 | 218 Volts Pwr Consumption | 77h | ok | 7.1 | 126 Watts
sdr elist fru
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr elist fru System Board | 00h | ns | 7.1 | Logical FRU @00h CPU1 | 00h | ns | 3.1 | Physical FRU @B0h CPU2 | 00h | ns | 3.2 | Physical FRU @B0h PS1 | 00h | ns | 10.1 | Logical FRU @01h PS2 | 00h | ns | 10.2 | Logical FRU @02h BP0 | 00h | ns | 26.1 | Logical FRU @0Ch BP1 | 00h | ns | 26.2 | Logical FRU @0Dh BP2 | 00h | ns | 26.3 | Logical FRU @0Eh BP3 | 00h | ns | 26.4 | Logical FRU @0Fh NDC | 00h | ns | 11.1 | Logical FRU @04h PERC1 | 00h | ns | 11.2 | Logical FRU @0Ah PERC2 | 00h | ns | 11.4 | Physical FRU @0Bh IDSDM | 00h | ns | 11.3 | Physical FRU @03h Front Panel | 00h | ns | 12.1 | Physical FRU @00h DIMM SLOT | 00h | ns | 32.1 | Physical FRU @B0h OEM fru | 00h | ns | 7.1 | Logical FRU @11h
sdr type
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr type Sensor Types: Temperature (0x01) Voltage (0x02) Current (0x03) Fan (0x04) Physical Security (0x05) Platform Security (0x06) Processor (0x07) Power Supply (0x08) Power Unit (0x09) Cooling Device (0x0a) Other (0x0b) Memory (0x0c) Drive Slot / Bay (0x0d) POST Memory Resize (0x0e) System Firmwares (0x0f) Event Logging Disabled (0x10) Watchdog1 (0x11) System Event (0x12) Critical Interrupt (0x13) Button (0x14) Module / Board (0x15) Microcontroller (0x16) Add-in Card (0x17) Chassis (0x18) Chip Set (0x19) Other FRU (0x1a) Cable / Interconnect (0x1b) Terminator (0x1c) System Boot Initiated (0x1d) Boot Error (0x1e) OS Boot (0x1f) OS Critical Stop (0x20) Slot / Connector (0x21) System ACPI Power State (0x22) Watchdog2 (0x23) Platform Alert (0x24) Entity Presence (0x25) Monitor ASIC (0x26) LAN (0x27) Management Subsys Health (0x28) Battery (0x29) Session Audit (0x2a) Version Change (0x2b) FRU State (0x2c)
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr type 0x01 Inlet Temp | 04h | ok | 7.1 | 20 degrees C Exhaust Temp | 01h | ok | 7.1 | 26 degrees C Temp | 0Eh | ok | 3.1 | 25 degrees C Temp | 0Fh | ok | 3.2 | 22 degrees C # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr type 0x04 Fan1 RPM | 30h | ok | 7.1 | 3960 RPM Fan2 RPM | 31h | ok | 7.1 | 4080 RPM Fan3 RPM | 32h | ok | 7.1 | 3960 RPM Fan4 RPM | 33h | ok | 7.1 | 3960 RPM Fan5 RPM | 34h | ok | 7.1 | 3960 RPM Fan6 RPM | 35h | ok | 7.1 | 4080 RPM Fan Redundancy | 75h | ok | 7.1 | Fully Redundant # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr type 0x08 PS Redundancy | 74h | ok | 7.1 | Fully Redundant Status | 62h | ok | 10.1 | Presence detected Status | 63h | ok | 10.2 | Presence detected # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sdr type 0x03 Current 1 | 6Ah | ok | 10.1 | 0.60 Amps Current 2 | 6Bh | ok | 10.2 | 0 Amps Pwr Consumption | 77h | ok | 7.1 | 126 Watts
sensor
fru
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 fru print 0 Board Mfg Date : Mon May 26 00:32:00 2014 Board Mfg : DELL Board Product : PowerEdge R720 Board Serial : CN7016345P003Q Board Part Number : 0X3D66A06 Product Manufacturer : DELL Product Name : D Product Version : 01 Product Serial : BC1W222
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 fru FRU Device Description : Builtin FRU Device (ID 0) Board Mfg Date : Mon May 26 00:32:00 2014 Board Mfg : DELL Board Product : PowerEdge R720 Board Serial : CN7016345P003Q Board Part Number : 0X3D66A06 Product Manufacturer : DELL Product Name : D Product Version : 01 Product Serial : BC1W222 FRU Device Description : PS1 (ID 1) Board Mfg Date : Fri May 30 14:25:00 2014 Board Mfg : DELL Board Product : PWR SPLY,750WP,RDNT,DELTA Board Serial : CN1797245R50VO Board Part Number : 05NF18A01 FRU Device Description : PS2 (ID 2) Board Mfg Date : Fri May 30 14:22:00 2014 Board Mfg : DELL Board Product : PWR SPLY,750WP,RDNT,DELTA Board Serial : CN1797245R50VB Board Part Number : 05NF18A01 ... FRU Device Description : PERC1 (ID 10) Board Mfg Date : Mon Jan 1 09:00:00 1996 Board Mfg : DELL Board Product : Dell Storage Cntlr. H710 -Mini Board Serial : CN7543545506MK Board Part Number : 05CT6DA03 ...
sel
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sel SEL Information Version : 1.5 (v1.5, v2 compliant) Entries : 48 Free Space : 15616 bytes Percent Used : 4% Last Add Time : 11/11/2022 04:06:24 Last Del Time : 06/11/2014 18:57:18 Overflow : false Supported Cmds : 'Reserve'
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 sel list 1 | 06/11/2014 | 18:57:18 | Event Logging Disabled #0x72 | Log area reset/cleared | Asserted 2 | 09/02/2014 | 13:59:37 | OS Boot | C: boot completed | Asserted 3 | 09/02/2014 | 13:59:37 | OEM record dc | 000137 | 0045cd055400 4 | 09/02/2014 | 16:20:51 | OS Critical Stop | OS graceful shutdown | Asserted 5 | 09/02/2014 | 16:20:51 | OEM record dd | 000137 | 000300028000 6 | 09/02/2014 | 16:22:54 | OS Boot | C: boot completed | Asserted 7 | 09/02/2014 | 16:22:54 | OEM record dc | 000137 | 00dbee055400 8 | 10/20/2014 | 14:24:55 | OS Critical Stop | OS graceful shutdown | Asserted ... 2f | 11/11/2022 | 04:06:14 | Drive Slot / Bay #0xa3 | Drive Present () | Deasserted 30 | 11/11/2022 | 04:06:24 | Drive Slot / Bay #0xa3 | Drive Present () | Asserted
user
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user
Not enough parameters given.
User Commands:
summary [<channel number>]
list [<channel number>]
set name <user id> <username>
set password <user id> [<password> <16|20>]
disable <user id>
enable <user id>
priv <user id> <privilege level> [<channel number>]
Privilege levels:
* 0x1 - Callback
* 0x2 - User
* 0x3 - Operator
* 0x4 - Administrator
* 0x5 - OEM Proprietary
* 0xF - No Access
test <user id> <16|20> [<password]>
user list
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user list $CH ID Name Callin Link Auth IPMI Msg Channel Priv Limit 1 true false false NO ACCESS 2 gdhong true true true ADMINISTRATOR 3 monitor true true true USER 4 true false false NO ACCESS 5 true false false NO ACCESS 6 true false false NO ACCESS 7 true false false NO ACCESS 8 true false false NO ACCESS 9 true false false NO ACCESS 10 true false false NO ACCESS 11 true false false NO ACCESS 12 true false false NO ACCESS 13 true false false NO ACCESS 14 true false false NO ACCESS 15 true false false NO ACCESS 16 true false false NO ACCESS
ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 channel setaccess $CH 2 callin=on ipmi=on link=on privilege=4 ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user set name 3 $ID2 ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user set password 3 $PW2 ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user enable 3 ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 user priv 3 2 ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 channel setaccess $CH 3 callin=on ipmi=on link=on privilege=2
lan
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 lan LAN Commands: print [<channel number>] set <channel number> <command> <parameter> alert print <channel number> <alert destination> alert set <channel number> <alert destination> <command> <parameter> stats get [<channel number>] stats clear [<channel number>]
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 lan print $CH
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD
Auth Type Enable : Callback : MD2 MD5
: User : MD2 MD5
: Operator : MD2 MD5
: Admin : MD2 MD5
: OEM :
IP Address Source : DHCP Address
IP Address : 192.168.0.13
Subnet Mask : 255.255.255.0
MAC Address : 5c:f9:dd:fd:13:38
SNMP Community String : public
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 2.0 seconds
Default Gateway IP : 192.168.0.1
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14
Cipher Suite Priv Max : Xaaaaaaaaaaaaaa
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Bad Password Threshold : Not Available
dcmi
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi
Data Center Management Interface commands
discover Used to discover supported DCMI capabilities
power Platform power limit command options
sensors Prints the available DCMI sensors
asset_tag Prints the platform's asset tag
set_asset_tag Sets the platform's asset tag
get_mc_id_string Get management controller ID string
set_mc_id_string Set management controller ID string
thermalpolicy Thermal policy get/set
get_temp_reading Get Temperature Readings
get_conf_param Get DCMI Config Parameters
set_conf_param Set DCMI Config Parameters
oob_discover Ping/Pong Message for DCMI Discovery
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi power
power <command>
reading Get power related readings from the system
get_limit Get the configured power limits
set_limit Set a power limit option
activate Activate the set power limit
deactivate Deactivate the set power limit
dcmi power
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi power reading
Instantaneous power reading: 130 Watts
Minimum during sampling period: 66 Watts
Maximum during sampling period: 274 Watts
Average power reading over sample period: 124 Watts
IPMI timestamp: Tue Jan 16 04:33:14 2024
Sampling period: 00060901 Seconds.
Power reading state is: activated
dcmi asset_tag
| vendor | set_asset_tag | |
|---|---|---|
| SMCi | set by ipmicfg on host | |
| Fjtsy | ipmitool dcmi set_asset_tag | |
| HP | ipmitool dcmi set_asset_tag | |
| DELL/new | ipmitool dcmi set_asset_tag | |
| DELL/old | x | |
| Uniwide | x |
dcmi asset_tag (working)
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi set_asset_tag '2016000734;HP/DL380g9' Set Asset Tag: 2016000734;HP/DL380g9 # ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi asset_tag Asset tag: 2016000734;HP/DL380g9
dcmi asset_tag (error)
# ipmitool -I lanplus -H $IP -U $ID1 -P $PW1 dcmi set_asset_tag '
DCMI request failed because: Invalid command (c1)
Error setting asset tag!
Set Asset Tag: #
REF
https://linux.die.net/man/1/ipmitool
https://docs.oracle.com/cd/E40704_01/html/E40350/z400000c1016683.html