Quick ipmitool commands for IPMI functions

I find myself going back to the same text file with ipmitool command that I use most often.  I figured I should add them here in case anyone else needs a quick list of the most useful commands (at least to me).  These are all commands that I use remotely to check on/power cycle servers.  Also, I only really use these on Dell Poweredge servers.  So if your servers have some goofy IPMI implementation, then they might not work the same.  I will probably do a post soon on setting up the IPMI controller with ipmitool.

The different options used are:

  • -I lan = tells ipmitool to use the network to send commands instead of interfacing with the local IPMI controller on the server you’re running it from
  • -H <IP> = The IP of the IPMI controller you want to access. NOTE: This is not the server’s main IP.  The IPMI controller should have it’s own unique IP.
  • -U root = The username you want to connect to the IPMI controller with.  Leave this as root unless you set up custom users.
  • You can also use “-P <PASSWORD>” with the password on the command line, but be advised that it will store the password in your history file and may be visible to other users (through “ps” or similar).

For sensor/temp data in compact format:
ipmitool -I lan -H 10.0.0.1 -U root sdr

For sensor/temp data in wide table format:
ipmitool -I lan -H 10.0.0.1 -U root sensor

More verbose output:
ipmitool -I lan -H 10.0.0.1 -U root sensor -v

System event log:
ipmitool -I lan -H 10.0.0.1 -U root sel list

Same event log data, but more human readable:
ipmitool -I lan -H 10.0.0.1 -U root sel elist

Clear event log:
ipmitool -I lan -H 10.0.0.1 -U root sel clear

Power off chassis (does not do clean shutdown):
ipmitool -I lan -H 10.0.0.1 -U root chassis power off

Power on chassis:
ipmitool -I lan -H 10.0.0.1 -U root chassis power on

Power cycle (power off of 1 second):
ipmitool -I lan -H 10.0.0.1 -U root chassis power cycle

Hard reset:
ipmitool -I lan -H 10.0.0.1 -U root chassis power reset

 

If you have any suggestions for frequently used commands, let me know and I’ll add them.

The full list of commands can be found in the man page here: http://ipmitool.sourceforge.net/manpage.html

 

Share

2 Comments

  1. Larhonda says:

    No matter what commercial property you are investing the money on, whether it.
    This sort of financing is also referred to as asset-based lending,
    meaning that it is a secured business loan. Your buyer’s list will help you build a successful empire and keep the profits
    rolling in at the same time.

  2. I have read some excellent stuff here. Definitely worth bookmarking for revisiting.

    I surprise how much effort you set to create this type of
    wonderful informative web site.

Leave a Reply