Contents
ipmitool how to
ipmitool help man ipmitool # To check firmware version ipmitool mc info # To reset the management controller ipmitool mc reset [ warm | cold ] # Show field-replaceable-unit details ipmitool fru print # Show sensor output ipmitool sdr list ipmitool sdr type list ipmitool sdr type Temperature ipmitool sdr type Fan ipmitool sdr type 'Power Supply' # Chassis commands ipmitool chassis status ipmitool chassis identify [<interval>] # turn on front panel identify light (default 15s) ipmitool [chassis] power soft # initiate a soft-shutdown via acpi ipmitool [chassis] power cycle # issue a hard power off, wait 1s, power on ipmitool [chassis] power off # issue a hard power off ipmitool [chassis] power on # issue a hard power on ipmitool [chassis] power reset # issue a hard reset # Modify boot device for next reboot ipmitool chassis bootdev pxe ipmitool chassis bootdev cdrom ipmitool chassis bootdev bios # Logging ipmitool sel info ipmitool sel list ipmitool sel elist # extended list (see manpage)
http://www.openfusion.net/linux/ipmi_on_centos
setting BMC ip address
From Operation System Cli
ipmitool lan print
ipmitool lan set 1 ipaddr 10.82.91.118
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 10.82.91.254
ipmitool lan set 1 access on
ipmitool lan print
From SSH IPMI
IBM/Lenovo IMM
ifconfig eth0 -i 10.82.91.118 -g 10.82.91.254 -s 255.255.255.0
reset iLO
ssh administrator@10.82.91.117 'reset /map1'
ssh administrator@10.82.91.117 'help'
reset iDRAC
reset IMM
reset HDM
root@pve-01:~# ipmitool lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD5 PASSWORD
Auth Type Enable : Callback : MD5 PASSWORD
: User : MD5 PASSWORD
: Operator : MD5 PASSWORD
: Admin : MD5 PASSWORD
: OEM :
IP Address Source : Static Address
IP Address : 10.82.91.117
Subnet Mask : 255.255.255.0
MAC Address : b4:7a:f1:aa:2d:d0
SNMP Community String :
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP : 10.82.91.1
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3
Cipher Suite Priv Max : XuuaXXXXXXXXXXX
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Bad Password Threshold : Not Available
root@pve-01:~# ipmitool lan set 1 ipaddr 10.82.91.118
Setting LAN IP Address to 10.82.91.118
root@pve-01:~# ipmitool lan print | grep 'IP Address'
IP Address Source : Static Address
IP Address : 10.82.91.118
root@pve-01:~# ipmitool lan set 1 netmask 255.255.0.0
Setting LAN Subnet Mask to 255.255.0.0
root@pve-01:~# ipmitool lan set 1 defgw ipaddr 10.82.91.254
Setting LAN Default Gateway IP to 10.82.91.254