Ipmi

From UF HPC Wiki

Jump to: navigation, search

Contents

Standard Commands

Command Description
raw Send a RAW IPMI request and print response
i2c Send an I2C Master Write-Read command and print response
lan Configure LAN Channels
chassis Get chassis status and set power state
power Shortcut to chassis power commands
event Send pre-defined events to MC
mc Management Controller status and global enables
sdr Print Sensor Data Repository entries and readings
sensor Print detailed sensor information
fru Print built-in FRU and scan SDR for FRU locators
sel Print System Event Log (SEL)
pef Configure Platform Event Filtering (PEF)
sol Configure and connect IPMIv2.0 Serial-over-LAN
tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
isol Configure IPMIv1.5 Serial-over-LAN
user Configure Management Controller users
channel Configure Management Controller channels
session Print session information
firewall Configure firmware firewall (IPMIv2.0)
sunoem OEM Commands for Sun servers
picmg Run a PICMG/ATCA extended cmd
fwum Update IPMC using Kontron OEM Firmware Update Manager
shell Launch interactive IPMI shell
exec Run list of commands from file
set Set runtime variable for shell and exec

PDSH Commands

Set time on all nodes in IPMI

pdsh -g phase3 -R ssh 'curdate=`date +%m/%d/%Y\ %H:%M:%S`; ipmitool sel time set "$curdate"'

Clear all IPMI logs

pdsh -g phase3 -R ssh 'ipmitool sel clear'

Serial-Over-LAN

Start a Serial-Over-LAN session

ipmitool -o intelplus -I lanplus -H r10a-s7-ipmi -U ipmi sol activate
Password: <passwd>

For the Tebow Machines

ipmitool -I lanplus -H r10a-s7-ipmi -U ipmi sol activate
Password: <passwd>

Stop a Serial-Over-LAN session

From an existing sol session:

~.

If your existing sol session is in a terminal you've ssh'd into, you'll have to prepend a tilde for each ssh layer:

~~~.

From the SOL help:

	Supported escape sequences:
	~.  - terminate connection
	~^Z - suspend ipmitool
	~^X - suspend ipmitool, but don't restore tty on restart
	~B  - send break
	~?  - this message
	~~  - send the escape character by typing it twice
	(Note that escapes are only recognized immediately after newline.)

Using the Serial-Over-LAN session

The serial BIOS interface is a bit brain-damaged in that it does not recognise the "F11", and "F12" key escape codes that most terminal programs send, instead you can send "Esc-!", and "Esc-@" (yes very logical, as long as the '@' key is normally typed using 'Shift-2' - as on US keyboards, not miles away from the '2' key, as on many non-US keyboards). These escapes from HP, and Dell serial BIOS' may or may not be useful:

Defined As     F1     F2     F3     F4     F5     F6     F7     F8     F9     F10    F11    F12
Keyboard Entry <ESC>1 <ESC>2 <ESC>3 <ESC>4 <ESC>5 <ESC>6 <ESC>7 <ESC>8 <ESC>9 <ESC>0 <ESC>! <ESC>@

Defined As     Home   End    Insert Delete PageUp PageDn
Keyboard Entry <ESC>h <ESC>k <ESC>+ <ESC>- <ESC>? <ESC>/

Use the <ESC><Ctrl><M> key sequence for <Ctrl><M>

Use the <ESC><Ctrl><H> key sequence for <Ctrl><H>

Use the <ESC><Ctrl><I> key sequence for <Ctrl><I>

Use the <ESC><Ctrl><J> key sequence for <Ctrl><J>

Use the <ESC><X><X> key sequence for <Alt><x>, where x is any letter key, and X is the upper case of that key

Setup of LAN channel on Relion 2650s and 2612s (test04, test05, imgsrv2)

These commands are for the BMC included with the Inventec MLB 1218. IPMI LAN channel on these machines is '2'.

ipmitool lan set 2 ipaddr <ipaddr>
ipmitool lan set 2 netmask 255.255.248.0
ipmitool lan set 2 access on
ipmitool user set name 2 ipmi
ipmitool user set password 2 <password>
ipmitool channel setaccess 2 2 callin=on ipmi=on link=on privilege=4

Setup of LAN channel on Altus 650 (submit1, submit2)

These commands are for the BMC included with the Inventec ISR1300-2F-2. IPMI LAN channel on these machines is '6'.

ipmitool lan set 6 ipaddr <ipaddr>
ipmitool lan set 6 netmask 255.255.248.0
ipmitool lan set 6 access on
ipmitool user set name 2 ipmi
ipmitool user set password 2 <password>
ipmitool channel setaccess 6 2 callin=on ipmi=on link=on privilege=4

Using LAN channel with Relion 26xx

Commands are as for phase3 nodes, but without the 'intelplus' option:

[root@submit ~]# ipmitool -I lanplus -H r11a-s20-ipmi -U ipmi chassis status
Password: 
System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     : 
Chassis Intrusion    : inactive
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : false
Sleep Button Disable : not allowed
Diag Button Disable  : allowed
Reset Button Disable : allowed
Power Button Disable : allowed
Sleep Button Disabled: false
Diag Button Disabled : true
Reset Button Disabled: true
Power Button Disabled: true

Using LAN channel with Altus 650

These machines use the 'lan' interface (not 'lanplus'), and no OEM extensions:

[root@submit ~]# ipmitool -I lan -H submit1-ipmi -U ipmi chassis status
Password: 
System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     : ac-failed 
Chassis Intrusion    : inactive
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : false