In this KB we briefly introduce various tools that exist for remote and/or local management of OOBM. This is particularly useful when DRAC/iLO/BMC become unresponsive or credentials don’t work.
There are four tools that could be useful depending on the model of the server and out-of-band management:
ipmitool, ipmiutil, racadm and impish
These tools can be used locally or remotely.
1- ipmitool : This tool can be used both locally and remotely. If the oobm has IP and credentials work we can use this remotely. It can be installed on CentOS using “yum install ipmitool” Here are some examples for remote
The interface switch -I can get one of the values values “open, lan ,lanplus”. open is the default and for local access. lanplus is for IPMI version 2.0 and lan is for IPMI version 1.5
# ipmitool -I lanplus -H 208.x.x.x -U root -P xxxxx chassis status
# ipmitool -I lanplus -H 208.x.x.x -U root -P xxxxx fru
# ipmitool -I lanplus -H 208.x.x.x -U root -P xxxxx power status/cycle/reset/soft/off/on
# ipmitool -I lanplus -H 208.x.x.x -U root -P xxxxx mc reset cold/warm
# ipmitool -I lanplus -H 208.x.x.x -U root -P xxxxxx lan print 2
If the network is not configured or credentials don’t work we can try to change OOBM parameters from local OS, If OS is installed and can be accessed remotely. The parameter -I open is default so it is omitted.
# ipmitool power status (if this returned an error we need to load the following kernel module)
# modprobe ipmi_devintf
# modprobe ipmi_si
# ipmitool chassis status
# ipmitool mc reset cold
# ipmitool lan print 1
# ipmitool lan print 2
# ipmitool user set name 2 root
# ipmitool user set password 2
# ipmitool channel setaccess 1 2 link=on ipmi=on callin=on privilege=4
# ipmitool user enable 2
2- ipmiutil: This tool is available for both Windows and Linux. However for Linux we don’t use it and only use ipmitool.
Here are some examples:
C:\ipmiutil-2.9.5-win64>ipmiutil reset -k -N 10.10.x.x-U Administrator -P xxxxx
ipmiutil ver 2.95
ireset ver 2.95
Connecting to node 10.10.x.x
— BMC version 4.26, IPMI version 2.0
Power State = 05 (S5: soft off)
ireset: cold reset …
ireset: Cold_Reset ok
ipmiutil reset, completed successfully
C:\ipmiutil-2.9.5-win64>ipmiutil reset -k -N 199.x.x.x -U Administrator -P xxxxx
ipmiutil ver 2.95
ireset ver 2.95
Connecting to node 199.x.x.x
— BMC version 4.20, IPMI version 2.0
Power State = 00 (S0: working)
ireset: cold reset …
ireset: Cold_Reset ok
ipmiutil reset, completed successfully
C:\ipmiutil-2.9.5-win64>ipmiutil fru -N 199.x.x.x -U Administrator -P xxxxxx
ipmiutil ver 2.95
ifru: version 2.95
Connecting to node 199.x.x.x
— BMC version 4.20, IPMI version 2.0
— Scanning SDR Repository for 110 SDRs —
SDR[0000] IPMB 20 00 00 00 Hewlett-Packard
[Baseboard,20,00] Baseboard FRU Size : 256
[Baseboard,20,00] System GUID : 7b9d1181-fe8e-11d5-9f31-18a905757f11
SDR[4f70] FRU 20 00 00 00 System FRU0
SDR[4f90] FRU 20 01 07 01 System FRU1
[Board ,20,01] Board FRU Size : 256
[Board ,20,01] Product Manufacturer: HP
[Board ,20,01] Product Name : ProLiant DL160 G6
[Board ,20,01] Product Part Number :
[Board ,20,01] Product Version :
[Board ,20,01] Product Serial Num : MXQ94602RL
[Board ,20,01] Product Asset Tag :
[Board ,20,01] Product FRU File ID :
ipmiutil fru, completed successfully
3- racadm: This is also available for both Windows and Linux. It is also part of Dell’s OMSA. For example if we boot the server with live OMSA disk both ipmitool and racadm are available. This also can be used remotely or locally. racadm has both 32bit and 64bit versions. Make sure to use the 32bit version as 64bit doesn’t work with some DRACs (For example DRAC 4/P)
32bit: http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=FT3XR
64bit: http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=0H4MT
# racadm racresetcfg (resets to factory default, for example user becomes root with password calvin)
# racadm setniccfg -s
# racadm racreset
# racadm setniccfg -s <ipaddress subnetmask gateway>
# racadm -r <RAC IP address> -u <username> -p <password> <RAC command and options>
# racadm -r <RAC IP address> -i <RAC command and options> (asks user/password interactively)
In windows:
“C:\Program Files (x86)\Dell\SysMgt\rac5\racadm.exe” -r <IP> -u <username> -p <password> racreset
4- ipmish: we use this for remote access from windows:
ipmish -ip 192.168.x.x -u <username> -p <password> power status/cycle/on/off/reset
5-SSH to iLO
login as: Administrator
Administrator@10.x.x.x’s password:
User:Administrator logged-in to ILOMX284100BV.phub.net.cable.rogers.com(10.x.x.x)
iLO Advanced 1.50 at 17:30:27 Mar 12 2008
Server Name: MX284100BV00
Server Power: On
</>hpiLO-> show
status=0
status_tag=COMMAND COMPLETED
/
Targets
system1
map1
Properties
Verbs
cd version exit show set
</>hpiLO-> cd map1
status=0
status_tag=COMMAND COMPLETED
/map1
</map1>hpiLO-> reset
status=0
status_tag=COMMAND COMPLETED
Resetting iLO.
CLI session stopped
6-iLO trick
Download the file https://10.x.x.x/M2.JAR and open it using Java.
If it cannot be downloaded locally we can download it in RIS then copy it to local environment.