Difference between revisions of "IPMI"

From DWIKI
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Intelligent Platform Management Interface=


==Docs==
Intelligent Platform Management Interface
*http://www.intel.com/design/servers/ipmi/
*http://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface
*http://openipmi.sf.net/
*[https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool Configuring IPMI under Linux using ipmitool]
*http://lonesysadmin.net/2005/09/23/configuring-and-securing-ipmi-on-dell-poweredge-x8xx-hardware/
*https://www.secure-computing.net/wiki/index.php/BMC_Nagios#Power_Supply_Check
*http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig
*http://www.nabble.com/IPMI-and-Dell-ERA-O-td19214114.html


==Considerations==
= Docs =
*bmc/ipmi seems to prefer to be on primary network interface, using a DIFFERENT ip from the actual network


==Useful commands==
*[http://www.intel.com/design/servers/ipmi/ http://www.intel.com/design/servers/ipmi/]
( also see http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig)
*[http://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface http://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface]
*[http://openipmi.sf.net/ http://openipmi.sf.net/]
*[https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool Configuring IPMI under Linux using ipmitool]
*[http://lonesysadmin.net/2005/09/23/configuring-and-securing-ipmi-on-dell-poweredge-x8xx-hardware/ http://lonesysadmin.net/2005/09/23/configuring-and-securing-ipmi-on-dell-poweredge-x8xx-hardware/]
*[https://www.secure-computing.net/wiki/index.php/BMC_Nagios#Power_Supply_Check https://www.secure-computing.net/wiki/index.php/BMC_Nagios#Power_Supply_Check]
*[http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig]
*[http://www.nabble.com/IPMI-and-Dell-ERA-O-td19214114.html http://www.nabble.com/IPMI-and-Dell-ERA-O-td19214114.html]
*[https://docs.oracle.com/cd/E19464-01/820-6850-11/IPMItool.html https://docs.oracle.com/cd/E19464-01/820-6850-11/IPMItool.html]
*[[Zabbix#IPMI Monitoring IPMI with Zabbix]]
== Considerations ==
 
*bmc/ipmi seems to prefer to be on primary network interface, using a DIFFERENT ip from the actual network
 
 
 
= ipmitool commands =
 
== Configuring IPMI ==
 
=== Set network to dhcp ===
 
ipmitool lan set 1 ipsrc dhcp
 
===Set network to static
ipmitool lan set 1 ipsrc static
 
 
== Managing users ==
 
=== List users ===
 
ipmitool user list 1
 
=== Change password ===
2 is usually ADMIN
ipmitool user set password 2
 
 
 
== Reading status ==
 
( also see [http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig])
 
=== Simple status check ===


===Simple status check===
  ipmitool -I lanplus -H <IPADDR> -U root -P changeme chassis status
  ipmitool -I lanplus -H <IPADDR> -U root -P changeme chassis status


===Get some hints about commands===
=== Get some hints about commands ===
 
  ipmitool -I open help
  ipmitool -I open help


&nbsp;


=== List all sensors ===


===List all sensors===
  ipmitool -I lanplus -H <IPADDR> -U root -P changeme sdr elist full
  ipmitool -I lanplus -H <IPADDR> -U root -P changeme sdr elist full
or
  ipmitool -I lanplus -H <IPADDR> -U root -P changeme sensor
=== Check ipmi network settings ===


===Check ipmi===
  ipmitool -I open lan print 1
  ipmitool -I open lan print 1


===Check lan/network configuration===
=== Check lan/network configuration ===
 
  ipmitool -I open lan print
  ipmitool -I open lan print


===Serial console over LAN===
=== Serial console over LAN ===
 
  ipmitool -U root -I lanplus -H 10.0.0.91 sol activate
  ipmitool -U root -I lanplus -H 10.0.0.91 sol activate


===Boot a remote box===
=== Boot a remote box ===
 
  ipmitool -U root -I lanplus -H 10.0.0.91 chassis power on
  ipmitool -U root -I lanplus -H 10.0.0.91 chassis power on


&nbsp;
=== Sensor information ===


===Sensor information===
  ipmitool -I open sensor
  ipmitool -I open sensor


===PSU status===
=== PSU status ===
 
  ipmitool -I open sdr type "Power Supply" Status
  ipmitool -I open sdr type "Power Supply" Status


&nbsp;
=== Shut down a remote box ===


===Shut down a remote box===
  ipmitool -U root -I lanplus -H 10.0.0.91 chassis power off
  ipmitool -U root -I lanplus -H 10.0.0.91 chassis power off
  ipmittool -U root -H 10.0.0.91 -E shell
  ipmittool -U root -H 10.0.0.91 -E shell


===On freeBsd===
=== On freeBsd ===
 
  kldload ipmi
  kldload ipmi


=FAQ=
&nbsp;
==ipmitool user list==
 
= FAQ =
 
== ipmitool user list ==
 
Get User Access command failed (channel 14, user 1): Invalid data field in request.
Get User Access command failed (channel 14, user 1): Invalid data field in request.


==Unable to send IPMI presence ping packet==
== Unable to send IPMI presence ping packet ==
 
yeah, could be anything again
yeah, could be anything again


==IPMI LAN send command failed==
== IPMI LAN send command failed ==


== Unable to send IPMI presence ping packet ==


==Unable to send IPMI presence ping packet==
== Change ip address ==


==Change ip address==
  ipmitool lan print 1
  ipmitool lan print 1
  ipmitool lan set 1 ipaddr x.x.x.x
  ipmitool lan set 1 ipaddr x.x.x.x
  ipmitool lan set 1 defgw ipaddr x.x.x.x
  ipmitool lan set 1 defgw ipaddr x.x.x.x
     
== IPMI command failed: Request data field length limit exceeded ==
If you're trying to set a password, try a more complex password.
== ipmitool -v Get Auth Capabilities error ==
could be firmware/version issue
==Error: Unable to establish IPMI v2 / RMCP+ session==
Try -I lan instead of -I lanplus
==Info: SOL payload already active on another session==
Try sol deactivate
== Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x80) ==
You're probably trying to connect as user, so try
ipmitool -L USER ....

Revision as of 11:53, 20 September 2022

Intelligent Platform Management Interface

Docs

Considerations

  • bmc/ipmi seems to prefer to be on primary network interface, using a DIFFERENT ip from the actual network

 

ipmitool commands

Configuring IPMI

Set network to dhcp

ipmitool lan set 1 ipsrc dhcp

===Set network to static

ipmitool lan set 1 ipsrc static 


Managing users

List users

ipmitool user list 1

Change password

2 is usually ADMIN

ipmitool user set password 2

 

Reading status

( also see http://sources.redhat.com/cluster/wiki/IPMI_FencingConfig)

Simple status check

ipmitool -I lanplus -H <IPADDR> -U root -P changeme chassis status

Get some hints about commands

ipmitool -I open help

 

List all sensors

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sdr elist full

or

 ipmitool -I lanplus -H <IPADDR> -U root -P changeme sensor


Check ipmi network settings

ipmitool -I open lan print 1

Check lan/network configuration

ipmitool -I open lan print

Serial console over LAN

ipmitool -U root -I lanplus -H 10.0.0.91 sol activate

Boot a remote box

ipmitool -U root -I lanplus -H 10.0.0.91 chassis power on

 

Sensor information

ipmitool -I open sensor

PSU status

ipmitool -I open sdr type "Power Supply" Status

 

Shut down a remote box

ipmitool -U root -I lanplus -H 10.0.0.91 chassis power off
ipmittool -U root -H 10.0.0.91 -E shell

On freeBsd

kldload ipmi

 

FAQ

ipmitool user list

Get User Access command failed (channel 14, user 1): Invalid data field in request.

Unable to send IPMI presence ping packet

yeah, could be anything again

IPMI LAN send command failed

Unable to send IPMI presence ping packet

Change ip address

ipmitool lan print 1
ipmitool lan set 1 ipaddr x.x.x.x
ipmitool lan set 1 defgw ipaddr x.x.x.x
      

IPMI command failed: Request data field length limit exceeded

If you're trying to set a password, try a more complex password.

ipmitool -v Get Auth Capabilities error

could be firmware/version issue

Error: Unable to establish IPMI v2 / RMCP+ session

Try -I lan instead of -I lanplus

Info: SOL payload already active on another session

Try sol deactivate

Set Session Privilege Level to ADMINISTRATOR failed: Unknown (0x80)

You're probably trying to connect as user, so try

ipmitool -L USER ....