特殊:Badtitle/NS100:IPMI:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第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. | ||
=== 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: | |||
<ol><li>/usr/share/ipmitool/ipmi.init.basic | |||
</li><li>/usr/share/doc/ipmitool/README.gz</li></ol> | |||
To uncompress the .gz file and view it: | |||
<pre><nowiki> | <pre><nowiki> | ||
a | 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> | |||
'''System Events Log (SEL)''' | |||
<pre><nowiki> | |||
ipmitool -I open sel list | |||
</nowiki></pre> | |||
Example: | |||
<pre><nowiki> | |||
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</nowiki></pre> | |||
RAID problem example: | |||
<pre><nowiki> | |||
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</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> | </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> | <pre><nowiki> | ||
serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1 | serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1 | ||
terminal --timeout=10 serial console</nowiki></pre> | |||
terminal --timeout= | 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> | ||
===== SuperMicro update ===== | |||
Above instructions work nicely with some very minor changes with Ubuntu 9.04 on a new (April '09) !SuperMicro X8 (Xeon 5500) motherboard with built-in WinBond WPCM450 BMC controller: | |||
* AMI BIOS defaults to 115200 baud. | |||
* `/etc/securetty` has `ttyS1` defined already, and is now labelled 'Standard serial ports' | |||
== | The network setup for the BMC is done in `Advanced` -> `IPMI Configuration` -> `Set LAN Configuration` in the BIOS. It defaults to DHCP, so generally it will just work. Once it's set up you can point a web browser at it (HTTP or HTTPS) or an ssh terminal. The default login is `ADMIN` / `ADMIN`. | ||
http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux | == References == | ||
http://www.ecst.csuchico.edu/~dranch/LINUX/IPMI/ipmi-on-linux.html - Howto Supermicro | * 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]] |
2009年5月12日 (二) 17:33的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/IPMI }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/af | • {{#if: UbuntuHelp:IPMI|Afrikaans| [[::IPMI/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ar | • {{#if: UbuntuHelp:IPMI|العربية| [[::IPMI/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/az | • {{#if: UbuntuHelp:IPMI|azərbaycanca| [[::IPMI/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/bcc | • {{#if: UbuntuHelp:IPMI|جهلسری بلوچی| [[::IPMI/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/bg | • {{#if: UbuntuHelp:IPMI|български| [[::IPMI/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/br | • {{#if: UbuntuHelp:IPMI|brezhoneg| [[::IPMI/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ca | • {{#if: UbuntuHelp:IPMI|català| [[::IPMI/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/cs | • {{#if: UbuntuHelp:IPMI|čeština| [[::IPMI/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/de | • {{#if: UbuntuHelp:IPMI|Deutsch| [[::IPMI/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/el | • {{#if: UbuntuHelp:IPMI|Ελληνικά| [[::IPMI/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/es | • {{#if: UbuntuHelp:IPMI|español| [[::IPMI/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/fa | • {{#if: UbuntuHelp:IPMI|فارسی| [[::IPMI/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/fi | • {{#if: UbuntuHelp:IPMI|suomi| [[::IPMI/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/fr | • {{#if: UbuntuHelp:IPMI|français| [[::IPMI/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/gu | • {{#if: UbuntuHelp:IPMI|ગુજરાતી| [[::IPMI/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/he | • {{#if: UbuntuHelp:IPMI|עברית| [[::IPMI/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/hu | • {{#if: UbuntuHelp:IPMI|magyar| [[::IPMI/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/id | • {{#if: UbuntuHelp:IPMI|Bahasa Indonesia| [[::IPMI/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/it | • {{#if: UbuntuHelp:IPMI|italiano| [[::IPMI/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ja | • {{#if: UbuntuHelp:IPMI|日本語| [[::IPMI/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ko | • {{#if: UbuntuHelp:IPMI|한국어| [[::IPMI/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ksh | • {{#if: UbuntuHelp:IPMI|Ripoarisch| [[::IPMI/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/mr | • {{#if: UbuntuHelp:IPMI|मराठी| [[::IPMI/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ms | • {{#if: UbuntuHelp:IPMI|Bahasa Melayu| [[::IPMI/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/nl | • {{#if: UbuntuHelp:IPMI|Nederlands| [[::IPMI/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/no | • {{#if: UbuntuHelp:IPMI|norsk| [[::IPMI/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/oc | • {{#if: UbuntuHelp:IPMI|occitan| [[::IPMI/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/pl | • {{#if: UbuntuHelp:IPMI|polski| [[::IPMI/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/pt | • {{#if: UbuntuHelp:IPMI|português| [[::IPMI/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ro | • {{#if: UbuntuHelp:IPMI|română| [[::IPMI/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/ru | • {{#if: UbuntuHelp:IPMI|русский| [[::IPMI/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/si | • {{#if: UbuntuHelp:IPMI|සිංහල| [[::IPMI/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/sq | • {{#if: UbuntuHelp:IPMI|shqip| [[::IPMI/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/sr | • {{#if: UbuntuHelp:IPMI|српски / srpski| [[::IPMI/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/sv | • {{#if: UbuntuHelp:IPMI|svenska| [[::IPMI/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/th | • {{#if: UbuntuHelp:IPMI|ไทย| [[::IPMI/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/tr | • {{#if: UbuntuHelp:IPMI|Türkçe| [[::IPMI/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/vi | • {{#if: UbuntuHelp:IPMI|Tiếng Việt| [[::IPMI/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/yue | • {{#if: UbuntuHelp:IPMI|粵語| [[::IPMI/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/zh | • {{#if: UbuntuHelp:IPMI|中文| [[::IPMI/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/zh-hans | • {{#if: UbuntuHelp:IPMI|中文(简体)| [[::IPMI/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:IPMI | UbuntuHelp:IPMI | {{#if: | :}}IPMI}}/zh-hant | • {{#if: UbuntuHelp:IPMI|中文(繁體)| [[::IPMI/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:IPMI|:IPMI|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :IPMI/zh | | {{#ifexist: IPMI/zh | | {{#ifeq: {{#titleparts:IPMI|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:IPMI|1|-1|}} | zh | | }}
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:
- /usr/share/ipmitool/ipmi.init.basic
- /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:
- Enable "Console Redirection" in BIOS Setup. For example, COM2 / 19.2Kbps / 8N1
- 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
SuperMicro update
Above instructions work nicely with some very minor changes with Ubuntu 9.04 on a new (April '09) !SuperMicro X8 (Xeon 5500) motherboard with built-in WinBond WPCM450 BMC controller:
- AMI BIOS defaults to 115200 baud.
- `/etc/securetty` has `ttyS1` defined already, and is now labelled 'Standard serial ports'
The network setup for the BMC is done in `Advanced` -> `IPMI Configuration` -> `Set LAN Configuration` in the BIOS. It defaults to DHCP, so generally it will just work. Once it's set up you can point a web browser at it (HTTP or HTTPS) or an ssh terminal. The default login is `ADMIN` / `ADMIN`.