IPMI: Difference between revisions

From DWIKI
mNo edit summary
Line 15: Line 15:
*bmc/ipmi seems to prefer to be on primary network interface, using a DIFFERENT ip from the actual network
*bmc/ipmi seems to prefer to be on primary network interface, using a DIFFERENT ip from the actual network


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


===Simple status check===
= Useful commands =
 
== Configuring IPMI ==
 
=== Set network to dhcp ===
 
ipmitool lan set 1 ipsrc dhcp
 
 
 
== Managing users ==
 
=== List users ===
 
ipmitool user list
 
=== Change password ===
 
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 ===
 
  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


===Check ipmi===
=== 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



Revision as of 14:24, 30 November 2021

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


Useful commands

Configuring IPMI

Set network to dhcp

ipmitool lan set 1 ipsrc dhcp

 

Managing users

List users

ipmitool user list

Change password

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

Check ipmi

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