个人工具

“UbuntuHelp:IPMI”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:IPMI}}
 
{{Languages|UbuntuHelp:IPMI}}
 
This page is about setting up IPMI on ubuntu.
 
This page is about setting up IPMI on ubuntu.
# apt-get install ipmitool
+
=== Ubuntu Packages ===
# /usr/share/ipmitool/ipmi.init.basic
+
The information about Ubuntu packages applies to all manufacturers.
# less /usr/share/doc/ipmitool/README.gz
+
Two packages offer IPMI support in Ubuntu:
<pre><nowiki>
+
* '''openipmi''' - officially supported starting with ubuntu 8.04
a) BIOS POST:
+
* '''ipmitools''' - not officially supported
    (i) Enable "Console Redirection" in BIOS Setup. For example, COM2 /
+
Once installed, the following files may help you configure and personalize your '''ipmitools''' package install:
        19.2Kbps / 8N1
+
<ol><li>/usr/share/ipmitool/ipmi.init.basic
    (ii) Disable "Enable Console Redirection after POST" in BIOS setup.
+
</li><li>/usr/share/doc/ipmitool/README.gz</li></ol>
 +
 
 +
To uncompress the .gz file and view it:
 +
<pre><nowiki>sudo gunzip /usr/share/doc/ipmitool/README.gz
 +
sudo gedit /usr/share/doc/ipmitool/README</nowiki></pre>
 +
=== Specific manufacturer information ===
 +
==== Dell ====
 +
See above information about Ubuntu packages.
 +
As a general rule, always take notes on current settings and backup any files being modified.
 +
Read through the following bug report for important information:
 +
https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/110992
 +
Once installed the IPMI tools package provides several commands. Some examples:
 +
'''Local IPMI access verification'''
 +
<pre><nowiki> ipmitool -I open channel info
 
</nowiki></pre>
 
</nowiki></pre>
I recommend these settings in your /boot/grub/menu.lst
+
'''System Events Log (SEL)'''
 +
<pre><nowiki> ipmitool -I open sel list
 +
</nowiki></pre>
 +
Example:
 
<pre><nowiki>
 
<pre><nowiki>
serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1
+
8b | 07/15/2007 | 20:50:22 | Power Supply #0x42 | Power Supply AC lost
 
+
8c | 07/15/2007 | 20:50:22 | Power Supply #0x53 | Redundancy Lost
#This additional line was also suggested also, but I only found its behavior annoying.
+
8d | 07/15/2007 | 21:16:58 | Physical Security #0x52 | General Chassis intrusion
terminal --timeout=5 serial console
+
8e | 07/15/2007 | 21:17:03 | Power Supply #0x42 | Failure detected
 
+
8f | 07/15/2007 | 21:17:03 | Power Supply #0x42 | Power Supply AC lost
# defoptions=console=tty0 serial console=ttyS1,19200n8
+
90 | 07/15/2007 | 21:17:03 | Power Supply #0x53 | Redundancy Lost</nowiki></pre>
 
+
RAID problem example:
# altoptions=(recovery mode) single console=tty0 serial console=ttyS1,19200n8
+
<pre><nowiki>
 
+
b5 | 11/05/2007 | 03:09:27 | Slot/Connector #0x55 | Fault Status Asserted
# xenkopt=console=tty0 serial console=ttyS1,19200n8
+
b5 | 12/24/2007 | 03:32:52 | Slot/Connector #0x55 | Fault Status Asserted</nowiki></pre>
 +
'''Power off''' (simulates a "critical high temperature event")
 +
<pre><nowiki> ipmitool -vI lan -H 192.168.5.250 -U root -a chassis power soft
 +
</nowiki></pre>
 +
'''Hard reset'''
 +
<pre><nowiki> ipmitool -vI lan -H 192.168.5.250 -U root -a chassis power reset
 +
</nowiki></pre>
 +
'''Full Dell documentation'''
 +
* http://www.dell.com/downloads/global/power/ps4q04-20040204-Murphy.pdf
 +
==== SuperMicro P8SCi ====
 +
See above information about Ubuntu packages.
 +
As a general rule, always take notes on current settings and backup any files being modified.
 +
In your BIOS settings:
 +
<ol><li>Enable "Console Redirection" in BIOS Setup. For example, COM2 / 19.2Kbps / 8N1
 +
</li><li>Disable "Enable Console Redirection after POST" in BIOS setup.</li></ol>
  
 +
'''Editing your boot options in GRUB '''
 +
1) Add the following two lines to /boot/grub/menu.lst (carefully check that the double hyphen is not converted to a single one if using copy & paste):
 +
<pre><nowiki>serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1
 +
terminal --timeout=10 serial console</nowiki></pre>
 +
If using XEN, also find and modify the following line to read as:
 +
<pre><nowiki>## For Xen
 +
# xenkopt=console=tty0 serial console=ttyS1,19200n8</nowiki></pre>
 +
2) Change the following line (while KEEPING the hash at its beginning):
 +
<code><nowiki># defoptions=quiet splash</nowiki></code>
 +
to
 +
<code><nowiki># defoptions=nosplash console=tty0 serial console=ttyS1,19200n8</nowiki></code>
 +
3) Change the following line (while KEEPING the hash at its beginning) to:
 +
<code><nowiki># altoptions=(recovery mode) single console=tty0 serial console=ttyS1,19200n8</nowiki></code>
 +
4) Save the file, then run this command to commit your changes:
 +
<code><nowiki>sudo update-grub</nowiki></code>
 +
5) Then:
 +
<pre><nowiki>cd /etc/event.d
 +
sudo cp tty1 ttyS0
 +
sudo nano ttyS0 </nowiki></pre>
 +
This last command uses nano but you can use any editor.
 +
Edit the /etc/event.d file so at the end the line invoking getty reads as:
 +
<code><nowiki>exec /sbin/getty 19200 ttyS0</nowiki></code>
 +
6) Do the same for ttyS1:
 +
<pre><nowiki>sudo cp tty1 ttyS1
 +
sudo nano ttyS1</nowiki></pre>
 +
Edit that file so at the end the line invoking getty reads as:
 +
<code><nowiki>exec /sbin/getty 19200 ttyS1</nowiki></code>
 +
7) Now, edit /etc/securetty to add ttyS1 (near the beginning) after the following line:
 +
<pre><nowiki># for people with serial port consoles
 +
# for people with serial port consoles
 +
ttyS0
 +
ttyS1
 
</nowiki></pre>
 
</nowiki></pre>
Be sure to run sudo update-grub
+
== References ==
Next, go into your /etc/event.d/  directory.  Create a  ttyS0 file from one of the other tty files. Change this line:  exec /sbin/getty 19200 ttyS0
+
* http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux
Do the same thing for ttyS1
+
* http://www.ecst.csuchico.edu/~dranch/LINUX/IPMI/ipmi-on-linux.html - Howto Supermicro
Last, edit /etc/securetty and add ttyS1
+
== Links ==
+
http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux
+
http://www.ecst.csuchico.edu/~dranch/LINUX/IPMI/ipmi-on-linux.html - Howto Supermicro
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年4月23日 (三) 11:30的版本

This page is about setting up IPMI on ubuntu.

Ubuntu Packages

The information about Ubuntu packages applies to all manufacturers. Two packages offer IPMI support in Ubuntu:

  • openipmi - officially supported starting with ubuntu 8.04
  • ipmitools - not officially supported

Once installed, the following files may help you configure and personalize your ipmitools package install:

  1. /usr/share/ipmitool/ipmi.init.basic
  2. /usr/share/doc/ipmitool/README.gz

To uncompress the .gz file and view it:

sudo gunzip /usr/share/doc/ipmitool/README.gz
sudo gedit /usr/share/doc/ipmitool/README

Specific manufacturer information

Dell

See above information about Ubuntu packages. As a general rule, always take notes on current settings and backup any files being modified. Read through the following bug report for important information: https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/110992 Once installed the IPMI tools package provides several commands. Some examples: Local IPMI access verification

 ipmitool -I open channel info 

System Events Log (SEL)

 ipmitool -I open sel list

Example:

 8b | 07/15/2007 | 20:50:22 | Power Supply #0x42 | Power Supply AC lost
 8c | 07/15/2007 | 20:50:22 | Power Supply #0x53 | Redundancy Lost
 8d | 07/15/2007 | 21:16:58 | Physical Security #0x52 | General Chassis intrusion
 8e | 07/15/2007 | 21:17:03 | Power Supply #0x42 | Failure detected
 8f | 07/15/2007 | 21:17:03 | Power Supply #0x42 | Power Supply AC lost
 90 | 07/15/2007 | 21:17:03 | Power Supply #0x53 | Redundancy Lost

RAID problem example:

 b5 | 11/05/2007 | 03:09:27 | Slot/Connector #0x55 | Fault Status Asserted
 b5 | 12/24/2007 | 03:32:52 | Slot/Connector #0x55 | Fault Status Asserted

Power off (simulates a "critical high temperature event")

 ipmitool -vI lan -H 192.168.5.250 -U root -a chassis power soft

Hard reset

 ipmitool -vI lan -H 192.168.5.250 -U root -a chassis power reset

Full Dell documentation

SuperMicro P8SCi

See above information about Ubuntu packages. As a general rule, always take notes on current settings and backup any files being modified. In your BIOS settings:

  1. Enable "Console Redirection" in BIOS Setup. For example, COM2 / 19.2Kbps / 8N1
  2. Disable "Enable Console Redirection after POST" in BIOS setup.

Editing your boot options in GRUB 1) Add the following two lines to /boot/grub/menu.lst (carefully check that the double hyphen is not converted to a single one if using copy & paste):

serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

If using XEN, also find and modify the following line to read as:

## For Xen
# xenkopt=console=tty0 serial console=ttyS1,19200n8

2) Change the following line (while KEEPING the hash at its beginning): # defoptions=quiet splash to # defoptions=nosplash console=tty0 serial console=ttyS1,19200n8 3) Change the following line (while KEEPING the hash at its beginning) to: # altoptions=(recovery mode) single console=tty0 serial console=ttyS1,19200n8 4) Save the file, then run this command to commit your changes: sudo update-grub 5) Then:

cd /etc/event.d
sudo cp tty1 ttyS0
sudo nano ttyS0 

This last command uses nano but you can use any editor. Edit the /etc/event.d file so at the end the line invoking getty reads as: exec /sbin/getty 19200 ttyS0 6) Do the same for ttyS1:

sudo cp tty1 ttyS1
sudo nano ttyS1

Edit that file so at the end the line invoking getty reads as: exec /sbin/getty 19200 ttyS1 7) Now, edit /etc/securetty to add ttyS1 (near the beginning) after the following line:

# for people with serial port consoles
# for people with serial port consoles
ttyS0
ttyS1 

References