Date created: Wednesday, April 24, 2013 5:08:12 PM. Last modified: Thursday, June 20, 2024 9:20:22 AM
IPMI/BMC Config via ipmitool
Example from Dell PowerEdge 1950:
sudo ipmitool lan print Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory sudo modprobe ipmi_devintf sudo modprobe ipmi_si lsmod | grep ipmi ipmi_devintf 10248 4 ipmi_si 43788 2 ipmi_msghandler 38872 2 ipmi_devintf,ipmi_si
sudo ipmitool lan print 1
sudo ipmitool channel getaccess 1 4
sudo ipmitool lan set 1 access on
sudo ipmitool lan set 1 ipsrc static
sudo ipmitool lan set 1 ipaddr 192.168.0.35
sudo ipmitool lan set 1 netmask 255.255.255.224
sudo ipmitool lan set 1 defgw ipaddr 192.168.0.33
sudo ipmitool lan set 1 defgw macaddr 00:11:22:33:44:55
sudo ipmitool lan set 1 vlan id 10
sudo ipmitool lan set 1 arp respond on
# Only enable cipher suite 3 & 4 for admin and disable the rest (more secure?)
sudo ipmitool lan set 2 cipher_privs XXaaXXXXXXXXXXX
# Use for older ipmitool which does not clear "Set in Progress" to "Set Complete"
sudo ipmitool raw 0x0c 1 1 0 0
sudo ipmitool lan set 1 auth ADMIN MD5,PASSWORD
sudo ipmitool user set name 2 admin
sudo ipmitool user set password 2 sdfsdfsdf
sudo ipmitool user enable 2
sudo ipmitool channel setaccess 1 2 privilege=4
sudo ipmitool channel setaccess 1 2 link=on
sudo ipmitool channel setaccess 1 2 ipmi=on
sudo ipmitool channel setaccess 1 2 callin=on
sudo ipmitool user list 1
sudo ipmitool lan print 1
sudo ipmitool channel getaccess 1 2
sudo ipmitool channel info 1
sudo ipmitool channel info 2
# Some BMC units won't accept the settings until the IPMI card is rebooted
sudo ipmitool mc reset warm|cold
Example from HP DL120:
sudo yum install ipmitool.x86_64
sudo modprobe ipmi_msghandler
sudo modprobe ipmi_devintf
sudo modprobe ipmi_ssif
# Check initial config
sudo ipmitool lan print 2
sudo ipmitool channel getaccess 2 1
sudo ipmitool channel getaccess 2 2
# Setup admin channel
sudo ipmitool lan set 2 access on
sudo ipmitool lan set 2 ipsrc static
sudo ipmitool lan set 2 ipaddr 10.116.25.242
sudo ipmitool lan set 2 netmask 255.255.255.248
sudo ipmitool lan set 2 defgw ipaddr 10.116.25.241
sudo ipmitool lan set 2 vlan id 519
sudo ipmitool lan set 2 arp respond on
# Only enable cipher suite 3 & 4 for admin and disable the rest:
sudo ipmitool lan set 2 cipher_privs XXaaXXXXXXXXXXX
# Use for older ipmitool which does not clear "Set in Progress" to "Set Complete":
#sudo ipmitool raw 0x0c 1 1 0 0
# Channel 1 can't be used
sudo ipmitool lan set 2 auth ADMIN MD5,PASSWORD
sudo ipmitool user set name 2 admin
sudo ipmitool user set password 2 aaaaaaaaa
sudo ipmitool user enable 2
sudo ipmitool channel setaccess 2 2 privilege=4
sudo ipmitool channel setaccess 2 2 link=on
sudo ipmitool channel setaccess 2 2 ipmi=on
sudo ipmitool channel setaccess 2 2 callin=on
sudo ipmitool user list 2
# Check config changes:
sudo ipmitool lan print 2
sudo ipmitool channel getaccess 2 1
sudo ipmitool channel getaccess 2 2
Check the current power state:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -a chassis status
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa power status
Set the device to PXE boot:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa chassis bootparam set bootflag force_pxe
Chek the boot method:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa chassis bootparam get 5
Boot:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa power on
Force hard disk boot:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa chassis bootparam set bootflag force_disk
Connect to Serial-Over-Lan:
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa sol info
ipmitool -I lanplus -H 10.0.0.1 -U ADMIN -P aaaa sol activate
Disconnect from Sol with keystrokes "~."
Previous page: DNS
Next page: Kernel Compile