to get the current IPaddress:
~ # /ipmitool lan print 1| egrep "IP Address|Subnet|Gateway IP|VLAN"ESXi#/ipmitool lan print 1 IP Address Source : Static Address IP Address : 112.18.12.167 Subnet Mask : 255.255.254.0 Default Gateway IP : 112.18.12.1 Backup Gateway IP : 0.0.0.0 802.1q VLAN ID : Disabled 802.1q VLAN Priority : 0 ~ # /ipmitool lan set 1 ipsrc static
~ # /ipmitool lan set 1 netmask 255.255.248.0
Setting LAN Subnet Mask to 255.255.248.0
~ # /ipmitool lan set 1 ipaddr 101.23.40.47
~ # /ipmitool lan set 1 defgw ipaddr 101.23.40.1 Locator LED : /ipmitool chassis identify force Set the locator LED off /ipmitool chassis identify 0 Set the locator LED upto 255 seconds /ipmitool chassis identify 255 SEL events: /ipmitool sel list /ipmitool -v sel list ( more verbose) sensor readings /ipmitool sensor list Reset the BMC: /ipmitool mc reset cold
/ipmitool raw 0x06 0x02
To find the serial number of the system: /ipmitool fru list
To reset the server
/ipmitool chassis power off/off/cycle/reset /ipmitool chassis power diag -to send NMI to ESXi(server) - to create purple screen of death or bsod in MS IPMI policy when the power is restored:
~ # /ipmitool chassis policy
chassis policy <state>
list : return supported policies
always-on : turn on when power is restored
previous : return to previous state when power is restored
always-off : stay off after power is restored
IPMI network connectivity:
IPMI Power supply commands /ipmitool -v sdr type "Power Supply" ~ # /ipmitool raw 0x06 0x52 0x07 0x70 0x01 0x0c - top power supply good 01 ~ # /ipmitool raw 0x06 0x52 0x07 0x72 0x01 0x0c -bottom power supply bad. 00 |
Thursday, May 2, 2013
IPMItool
Subscribe to:
Post Comments (Atom)
Very useful, thanks!
ReplyDeleteOur ESXi 5.1 systems don't seem to have ipmitool :-/
ReplyDeleteNutanix systems we use ipmitool which uses /dev/ipmi directly.
DeleteSame commands will work from another host(linux) with ipmitool installed. You need to use ipmitool -H -I options.
thank you for the blog visit us forSAN Solutions in Dubai
ReplyDelete