IPMI: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<pre>http://wiki.alteeve.com/index.php/IPMI
==SuperMicro ipmitool==
 
<pre># service ipmi stop</pre>
# service ipmi stop
 
SuperMicro Configuration Tool Began to work
SuperMicro Configuration Tool Began to work
 
<pre># ./ipmicfg-linux.x86_64.static -m
# ./ipmicfg-linux.x86_64.static -m
IP=192.168.1.21 MAC=00:30:48:56:A8:14
IP=192.168.1.21 MAC=00:30:48:56:A8:14
# ./ipmicfg-linux.x86_64.static -k
# ./ipmicfg-linux.x86_64.static -k
Net Mask=255.255.255.0
Net Mask=255.255.255.0
# ./ipmicfg-linux.x86_64.static -dhcp
# ./ipmicfg-linux.x86_64.static -dhcp
DHCP is currently disabled.
DHCP is currently disabled.
# ./ipmicfg-linux.x86_64.static -g
# ./ipmicfg-linux.x86_64.static -g
IP=192.168.1.1
IP=192.168.1.1
# ./ipmicfg-linux.x86_64.static -ver
# ./ipmicfg-linux.x86_64.static -ver
Firmware Revision: 02.05
Firmware Revision: 02.05
# ./ipmicfg-linux.x86_64.static -vlan
# ./ipmicfg-linux.x86_64.static -vlan
VLAN feature is not supported by this firmware.
VLAN feature is not supported by this firmware.
</pre>


# service ipmi start
*https://twiki.cern.ch/twiki/bin/view/FIOgroup/IpmiRefSolSetup
 
*http://wiki.alteeve.com/index.php/IPMI
Lets use ipmi module and ipmitool instead... more options.
# ipmitool -d /dev/ipmi0 shell
# ipmitool -I open lan
# ipmitool -d /dev/ipmi0 lan set 1 access on
 
https://twiki.cern.ch/twiki/bin/view/FIOgroup/IpmiRefSolSetup</pre>


On localhost after installing;
<pre># yum install OpenIPMI ipmitool</pre>


<pre># ipmitool -l open shell</pre>
==Common ipmitool commands==
<pre># ipmitool -l open shell
# ipmitool -l open mc reset cold
# ipmitool -I open lan print
# ipmitool -l open session info all</pre>


<pre># ipmitool -l open mc reset cold</pre>


<pre># ipmitool -I open lan print</pre>
==Set higher baudrate on BMC==
 
* IPMIv2 only uses CTS/RTS (RTS/CTS);
Set higher baudrate in BIOS, then BMC. * IPMIv2 only uses CTS/RTS (RTS/CTS);
<pre># ipmitool -l open sol info 1
<pre># ipmitool -l open sol info 1
# ipmitool -l open sol set help
# ipmitool -l open sol set help
Line 47: Line 34:
# ipmitool -l open sol set non-volatile-bit-rate 115.2 1</pre>
# ipmitool -l open sol set non-volatile-bit-rate 115.2 1</pre>


<pre># ipmitool -l open session info all</pre>


Start IPMI shell;
==Remote IPMI shell==
<pre># ipmitool -I lanplus -H 192.168.1.21 -U ADMIN shell</pre>
<pre># ipmitool -I lanplus -H 192.168.1.21 -U ADMIN shell
# ipmitool -I lanplus -H 192.168.1.21 -U ADMIN sol activate
# ipmitool -I lanplus -H 192.168.1.21 -U ADMIN chassis power reset</pre>




Use ipmitool to for serial over lan to host;
==Fedora ??12?? grub.conf==
<pre># ipmitool -I lanplus -H 192.168.1.21 -U ADMIN sol activate</pre>
 
Reset remote host
<pre># ipmitool -I lanplus -H 192.168.1.21 -U ADMIN chassis power reset</pre>
 
 
Configure GRUB to work with Serial Device;
<pre># grub.conf generated by anaconda
<pre># grub.conf generated by anaconda
#
#
Line 90: Line 71:
initrd /fwdisk.img floppy</pre>
initrd /fwdisk.img floppy</pre>


** Fedora 13 - Set console=ttyS1,19200n8 last for udev to automatically configure serial console on boot.
 
==Fedora 14 grub.conf==
*Set higher buadrate
<pre># cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_drewserv-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
serial --unit=1 --speed=115200
terminal --timeout=5 serial console
default=5
timeout=10
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.35.11-83.fc14.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.35.11-83.fc14.x86_64 ro root=/dev/mapper/vg_drewserv-lv_root rd_LVM_LV=vg_drewserv/lv_root rd_LVM_LV=vg_drewserv/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM console=tty0 console=ttyS1,115200
initrd /initramfs-2.6.35.11-83.fc14.x86_64.img</pre>
 
 
== Using the Serial BIOS ==
*http://buttersideup.com/docs/howto/IPMI_on_Debian.html
*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:
<pre>
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</pre>
 
 
== Fedora 13 ==
*Set console=ttyS1,19200n8 last for udev to automatically configure serial console on boot.

Revision as of 23:13, 12 April 2011

SuperMicro ipmitool

# service ipmi stop

SuperMicro Configuration Tool Began to work

# ./ipmicfg-linux.x86_64.static -m
IP=192.168.1.21 MAC=00:30:48:56:A8:14
# ./ipmicfg-linux.x86_64.static -k
Net Mask=255.255.255.0
# ./ipmicfg-linux.x86_64.static -dhcp
DHCP is currently disabled.
# ./ipmicfg-linux.x86_64.static -g
IP=192.168.1.1
# ./ipmicfg-linux.x86_64.static -ver
Firmware Revision: 02.05
# ./ipmicfg-linux.x86_64.static -vlan
VLAN feature is not supported by this firmware.


Common ipmitool commands

# ipmitool -l open shell
# ipmitool -l open mc reset cold
# ipmitool -I open lan print
# ipmitool -l open session info all


Set higher baudrate on BMC

  • IPMIv2 only uses CTS/RTS (RTS/CTS);
# ipmitool -l open sol info 1
# ipmitool -l open sol set help
# ipmitool -l open sol set volatile-bit-rate 115.2 1
# ipmitool -l open sol set non-volatile-bit-rate 115.2 1


Remote IPMI shell

# ipmitool -I lanplus -H 192.168.1.21 -U ADMIN shell
# ipmitool -I lanplus -H 192.168.1.21 -U ADMIN sol activate
# ipmitool -I lanplus -H 192.168.1.21 -U ADMIN chassis power reset


Fedora ??12?? grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda

# Redirect grub output to serial console, which is on COM Port 2
serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1   
terminal --timeout=10 serial console

default=0
timeout=10

# making IPMI friendly
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu

title CentOS (2.6.18-92.1.22.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS1,19200n8
	initrd /initrd-2.6.18-92.1.22.el5.img
title "My bios update"
	kernel /memdisk
	initrd /fwdisk.img floppy


Fedora 14 grub.conf

  • Set higher buadrate
# cat /etc/grub.conf 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_drewserv-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
serial --unit=1 --speed=115200
terminal --timeout=5 serial console
default=5
timeout=10
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.35.11-83.fc14.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.35.11-83.fc14.x86_64 ro root=/dev/mapper/vg_drewserv-lv_root rd_LVM_LV=vg_drewserv/lv_root rd_LVM_LV=vg_drewserv/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM console=tty0 console=ttyS1,115200
	initrd /initramfs-2.6.35.11-83.fc14.x86_64.img


Using the Serial BIOS

  • http://buttersideup.com/docs/howto/IPMI_on_Debian.html
  • 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


Fedora 13

  • Set console=ttyS1,19200n8 last for udev to automatically configure serial console on boot.