IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Terminologia

ipmitool

Instal·lació:

$ sudo apt-get install ipmitool
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes extras:
  libopenipmi0 openipmi
Se instalarán los siguientes paquetes NUEVOS:
  ipmitool libopenipmi0 openipmi
0 actualizados, 3 se instalarán, 0 para eliminar y 35 no actualizados.
Necesito descargar 1112 kB de archivos.
Se utilizarán 3304 kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? s
Des:1 http://es.archive.ubuntu.com/ubuntu/ precise/universe ipmitool amd64 1.8.11-5ubuntu1 [408 kB]
Des:2 http://es.archive.ubuntu.com/ubuntu/ precise/main libopenipmi0 amd64 2.0.18-0ubuntu3 [559 kB]
Des:3 http://es.archive.ubuntu.com/ubuntu/ precise/main openipmi amd64 2.0.18-0ubuntu3 [146 kB]
Descargados 1112 kB en 1seg. (919 kB/s)
Seleccionando paquete ipmitool previamente no seleccionado
(Leyendo la base de datos ... 515530 ficheros o directorios instalados actualmente.)
Desempaquetando ipmitool (de .../ipmitool_1.8.11-5ubuntu1_amd64.deb) ...
Seleccionando paquete libopenipmi0 previamente no seleccionado
Desempaquetando libopenipmi0 (de .../libopenipmi0_2.0.18-0ubuntu3_amd64.deb) ...
Seleccionando paquete openipmi previamente no seleccionado
Desempaquetando openipmi (de .../openipmi_2.0.18-0ubuntu3_amd64.deb) ...
Procesando disparadores para man-db ...
Procesando disparadores para ureadahead ...
ureadahead will be reprofiled on next reboot
Configurando ipmitool (1.8.11-5ubuntu1) ...
ipmievd: using pidfile /var/run/ipmievd.pid0
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
Unable to open interface
invoke-rc.d: initscript ipmievd, action "start" failed.
Unable to start ipmievd during installation.  Trying to disable.
Configurando libopenipmi0 (2.0.18-0ubuntu3) ...
Configurando openipmi (2.0.18-0ubuntu3) ...
Procesando disparadores para libc-bin ...
ldconfig deferred processing now taking place

Com podeu veure s'instal·la el paquet openipmi

TODO:

$ sudo modprobe ipmi_devintf
$ sudo ipmitool mc info

Fitxers instal·lats

$ dpkg -L ipmitool 
/.
/usr
/usr/bin
/usr/bin/ipmitool
/usr/sbin
/usr/sbin/ipmievd
/usr/share
/usr/share/doc
/usr/share/doc/ipmitool
/usr/share/doc/ipmitool/changelog.Debian.gz
/usr/share/doc/ipmitool/AUTHORS
/usr/share/doc/ipmitool/copyright
/usr/share/doc/ipmitool/README.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/ipmitool.1.gz
/usr/share/man/man8
/usr/share/man/man8/ipmievd.8.gz
/usr/share/ipmitool
/usr/share/ipmitool/oem_ibm_sel_map
/etc
/etc/init.d
/etc/init.d/ipmievd

I del paquet openipmi:

$ dpkg -L openipmi
/.
/usr
/usr/bin
/usr/bin/ipmi_ui
/usr/bin/ipmilan
/usr/bin/openipmicmd
/usr/bin/openipmish
/usr/bin/rmcp_ping
/usr/bin/solterm
/usr/sbin
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/openipmish.1.gz
/usr/share/man/man1/rmcp_ping.1.gz
/usr/share/man/man1/solterm.1.gz
/usr/share/man/man1/ipmi_ui.1.gz
/usr/share/man/man1/openipmicmd.1.gz
/usr/share/man/man7
/usr/share/man/man7/ipmi_cmdlang.7.gz
/usr/share/man/man7/openipmi_conparms.7.gz
/usr/share/man/man8
/usr/share/man/man8/ipmilan.8.gz
/usr/share/doc
/usr/share/doc/openipmi
/usr/share/doc/openipmi/FAQ.gz
/usr/share/doc/openipmi/README.gz
/usr/share/doc/openipmi/README.Force
/usr/share/doc/openipmi/README.MotorolaMXP
/usr/share/doc/openipmi/TODO
/usr/share/doc/openipmi/copyright
/usr/share/doc/openipmi/changelog.Debian.gz
/etc
/etc/default
/etc/default/openipmi
/etc/init.d
/etc/init.d/openipmi
/usr/bin/ipmicmd
/usr/bin/ipmish
/usr/share/man/man1/ipmish.1.gz
/usr/share/man/man1/ipmicmd.1.gz

Sintaxi i comandes posibles

La sintaxi és:

$ ipmitool -I lan -H ADREÇA_IP -U root <COMMAND>

Les comandes possibles són:

Commands:
	raw           Send a RAW IPMI request and print response
	i2c           Send an I2C Master Write-Read command and print response
	spd           Print SPD info from remote I2C device
	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
	gendev        Read/Write Device associated with Generic Device locators sdr
	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
	sunoem        OEM Commands for Sun servers
	kontronoem    OEM Commands for Kontron devices
	picmg         Run a PICMG/ATCA extended cmd
	fwum          Update IPMC using Kontron OEM Firmware Update Manager
	firewall      Configure Firmware Firewall
	delloem       OEM Commands for Dell systems
	shell         Launch interactive IPMI shell
	exec          Run list of commands from file
	set           Set runtime variable for shell and exec
	hpm           Update HPM components using PICMG HPM.1 file
	ekanalyzer    run FRU-Ekeying analyzer using FRU files

Exemples

System Event log

$ ipmitool -I lan -H PUT_YOUR_IP_HERE -U root sel info
Password: 
SEL Information
Version          : 1.5 (v1.5, v2 compliant)
Entries          : 28
Free Space       : 7744 bytes 
Percent Used     : 5%
Last Add Time    : 01/09/2013 21:23:07
Last Del Time    : 04/11/2012 17:01:30
Overflow         : false
Supported Cmds   : 'Reserve'

Mostrar la llista d'esdeveniments:

$ ipmitool -I lan -H 10.90.126.140 -U root sel list
Password: 
  1 | 04/11/2012 | 17:01:30 | Event Logging Disabled #0x72 | Log area reset/cleared | Asserted
  2 | Pre-Init Time-stamp   | Physical Security #0x73 | General Chassis intrusion | Asserted
  3 | Pre-Init Time-stamp   | Physical Security #0x73 | General Chassis intrusion | Deasserted
  4 | Pre-Init Time-stamp   | Physical Security #0x73 | General Chassis intrusion | Asserted
  5 | Pre-Init Time-stamp   | Physical Security #0x73 | General Chassis intrusion | Deasserted
  6 | 12/24/2012 | 17:14:04 | Physical Security #0x73 | General Chassis intrusion | Asserted
  7 | 12/24/2012 | 17:15:05 | Physical Security #0x73 | General Chassis intrusion | Asserted
  8 | 12/24/2012 | 18:22:11 | Physical Security #0x73 | General Chassis intrusion | Asserted
  9 | 12/24/2012 | 18:42:22 | Physical Security #0x73 | General Chassis intrusion | Deasserted
  a | 12/24/2012 | 18:42:27 | Physical Security #0x73 | General Chassis intrusion | Asserted
  b | 12/24/2012 | 18:50:44 | Physical Security #0x73 | General Chassis intrusion | Asserted
  c | 12/24/2012 | 19:03:12 | Physical Security #0x73 | General Chassis intrusion | Asserted
  d | 12/24/2012 | 19:47:01 | Physical Security #0x73 | General Chassis intrusion | Asserted
  e | 12/26/2012 | 17:45:14 | Physical Security #0x73 | General Chassis intrusion | Asserted
  f | 12/26/2012 | 18:08:10 | Physical Security #0x73 | General Chassis intrusion | Deasserted
 10 | 12/30/2012 | 09:53:12 | Physical Security #0x73 | General Chassis intrusion | Asserted
 11 | 12/30/2012 | 09:53:17 | Physical Security #0x73 | General Chassis intrusion | Deasserted
 12 | 01/07/2013 | 16:46:59 | Physical Security #0x73 | General Chassis intrusion | Asserted
 13 | 01/08/2013 | 11:14:41 | Physical Security #0x73 | General Chassis intrusion | Asserted
 14 | 01/08/2013 | 11:14:46 | Physical Security #0x73 | General Chassis intrusion | Deasserted
 15 | 01/08/2013 | 11:29:09 | Physical Security #0x73 | General Chassis intrusion | Asserted
 16 | 01/08/2013 | 13:13:41 | Physical Security #0x73 | General Chassis intrusion | Asserted
 17 | 01/08/2013 | 13:13:46 | Physical Security #0x73 | General Chassis intrusion | Deasserted
 18 | 01/09/2013 | 17:35:48 | Physical Security #0x73 | General Chassis intrusion | Asserted
 19 | 01/09/2013 | 20:09:52 | Physical Security #0x73 | General Chassis intrusion | Asserted
 1a | 01/09/2013 | 20:16:43 | Physical Security #0x73 | General Chassis intrusion | Asserted
 1b | 01/09/2013 | 20:42:24 | Physical Security #0x73 | General Chassis intrusion | Asserted
 1c | 01/09/2013 | 21:23:07 | Physical Security #0x73 | General Chassis intrusion | Asserted

Es pot fer un reset del log:

$ ipmitool -I lan -H PUT_YOUR_IP_HERE -U root sel clear

Sensors

$ ipmitool -I lan -H 10.90.126.140 -U root sdr list
Password: 
Temp             | -73 degrees C     | ok
Ambient Temp     | 26 degrees C      | ok
Planar Temp      | 25 degrees C      | ok
CMOS Battery     | 0x00              | ok
ROMB Battery     | Not Readable      | ns
VCORE            | 0x01              | ok
0.75 CPU VTT PG  | 0x01              | ok
1.8V PG          | 0x01              | ok
3.3V PG          | 0x01              | ok
PSU PG           | 0x01              | ok
5V Riser1 PG     | 0x01              | ok
MEM CPU FAIL     | 0x01              | ok
VTT CPU FAIL     | 0x01              | ok
1.8 PLL CPU PG   | 0x01              | ok
1.2 LOM FAIL     | 0x01              | ok
1.05V PG         | 0x01              | ok
1.2 AUX FAIL     | 0x01              | ok
Heatsink Pres    | 0x01              | ok
iDRAC6 Ent PRES  | 0x02              | ok
USB Cable Pres   | 0x01              | ok
Riser1 Pres      | 0x01              | ok
FAN 1 RPM        | 12720 RPM         | ok
FAN 2 RPM        | 12840 RPM         | ok
FAN 3 RPM        | 10560 RPM         | ok
PFault Fail Safe | Not Readable      | ns
Presence         | 0x01              | ok
Status           | 0x80              | ok
Status           | 0x01              | ok
OS Watchdog      | 0x00              | ok
SEL              | Not Readable      | ns
Intrusion        | 0x01              | ok
CPU Temp Interf  | Not Readable      | ns
ECC Corr Err     | Not Readable      | ns
ECC Uncorr Err   | Not Readable      | ns
I/O Channel Chk  | Not Readable      | ns
PCI Parity Err   | Not Readable      | ns
PCI System Err   | Not Readable      | ns
SBE Log Disabled | Not Readable      | ns
Logging Disabled | Not Readable      | ns
Unknown          | Not Readable      | ns
CPU Protocol Err | Not Readable      | ns
CPU Bus PERR     | Not Readable      | ns
CPU Init Err     | Not Readable      | ns
CPU Machine Chk  | Not Readable      | ns  
....

Reset

$ ipmitool -vI lan -H ADREÇA_IP -U root chassis power soft
Password: 
Chassis Power Control: Soft

IMPORTANT: Esta última comanda m'ha deixat la màquina apagada al executar-la quan estava el grub, es a dir al arrancar la màquina al mostar el menu de Grub

A mi no m'ha funcionat amb el sistema operatiu en marxa. Intenta un reset:

Advanced Configuration and Power Interface (ACPI) by emulating a fatal over-temperature condition.

En canvi el reset "a lo bestia" si funciona:

$ ipmitool -vI lan -H ADREÇA_IP -U root chassis power reset

openipmi

Hardware/Maquinari

ASUS

Vegeu també ASUS. Les plaques mare ASUS ASMB5-iKVM suporten IPMI.


Troubleshooting. Resol·lució de problemes

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

Cal carregar el mòdul:

$ sudo modprobe ipmi_msghandler; modprobe ipmi_devintf;

Vegeu també

Enllaços externs