Return to OS X Server and Xsan Tips & Tricks

Xserve/Mac Pro Lights Out Management (LOM) and the IPMITool command line

Xserve/Mac Pro LOM and the IPMITool command line:

An essential part to being able to reboot locked up Xserves and Mac Pros remotely, monitor their hardware remotely, etc.

Step 1. You need to use the Server Monitor Application on your Xserve/Mac Pro to setup the LOM IP address and login/password.

Open the Server Monitor Application from Applications/Server/ (or wherever you have the OS X Server Applications installed)

If you’ve never been in there before and setup your server, hit add server at the top and enter your server’s ip/dns name and an admin login information.

This must be done on the server you plan to setup.

Once that is added it will give you a nice idea on the health of your hardware. Want more details, read the documentation (as we are here for LOM only right now).

Okay so now it’s time to setup the LOM IP address, username, and password.

From the Server menu select Configure Local Machine

Once that opens up we have the ability to assign an IP address to either of the network interfaces. This IP address will be different then the one used while the server is on.

I normally pick a different IP range to stick all the LOM managed IP addresses in for ease of use. For example the server I am working with for this tutorial has an active IP address of, for the LOM IP address I am using So choose your LOM IP address and username/password to access it.

Once done you can hit Apply and it will write the config to the LOM controller on the ethernet card. I normally will

reboot the server if at all possible to make sure it took the configuration. Once this has been configured there

is a few different ways of managing LOM:

Apple Remote Desktop Application:

You can add the LOM IP address with username and password to the machine in ARD, then from there you can reboot/shutdown/etc

with LOM. Just right click the computer in your ARD list and fill out the LOM information.

Hit done, and then from the Manage menu in ARD you can now select the different options for controlling the machine. It works pretty well but I normally just

use the command line when needing to reboot/shutdown/power on a machine.

Server Monitor Application:

Same App you used to setup LOM has a nice little Restart and Shutdown buttons right in the App. The App can be ran from

another server or your computer. Just setup the server with the correct information and there you go.

IPMITool command line interface:

By far the most used by myself is the command line interface to LOM. Simply put this is just a straight command line

communication to the LOM controller on the ethernet card. Open up your terminal (I had to do this from one of my servers as I’m running Lion now and my local machine didn’t have ipmitool installed, can install from sourceforge: IPMITool ).

One of the first things you may want to do is read the MAN pages for ipmitool, so at your terminal prompt type:

man ipmitool

You will see the manual pages that look like this: IPMITool Man Pages

To start let’s get the chassis status for the server, at your terminal prompt (Replacing IP Address, Username, and Password with correct info):

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) chassis status

Example: ipmitool -H -U admin -P password chassis status

If everything is correct, the machine is powered on (or off) then you should get a return of something like this:

System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     :
Chassis Intrusion    : inactive
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : true
Front Panel Light    : off

If the machine was powered off and we wanted to turn it on we would do a:

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) power on

Crashed, stuck, or just want to hard shut it down, do a:

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) power off

There is quite a bit more you can do with the command line but I have found those are the three most used commands.

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) sel list – System Event Log List

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) sel clear – Clear System Event Log

ipmitool -H (IP ADDRESS) -U (USERNAME) -P (PASSWORD) sdr – Live Readings



More to come I promise!


Leave a Reply