Saturday, August 17, 2013

IPMItool

check this website:



Blink:
ipmitool -H 192.168.0.130 chassis identify
Set the ip address:
ipmitool -U root -P root -H 192.168.0.120 lan set 1 ipsrc static
ipmitool -U root -P root -H 192.168.0.120 lan set 1 ipaddr 192.168.0.102
ipmitool -U root -P root -H 192.168.0.120 lan set 1 netmask 255.255.255.0
Print net config:
ipmitool -U root -P root -H 192.168.0.120 lan print
Reboot the server:
ipmitool -H server-ipmi -U root -P root chassis power reset

ipmitool on localhost without an ip

modprobe ipmi_si
modprobe ipmi_devintf
Enable the root user with a password:
ipmitool user set password 2 admin

Force the Server into Bios

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root  chassis bootparam set bootflag force_bios
Set Boot Device to force_bios
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset
Chassis Power Control: Reset

Force the Server to Boot to Disk

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis bootparam set bootflag force_disk
Set Boot Device to force_disk
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset
Chassis Power Control: Reset

Force the Server to Boot PXE

[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis bootparam set bootflag force_pxe
Set Boot Device to force_pxe
[root@server ~]$ ipmitool -H 192.168.0.120 -U root -P root chassis power reset 
Chassis Power Control: Reset

Refernces