C H A P T E R  7

Using IPMItool to View System Information

This chapter contains information about using the Intelligent Platform Management Interface (IPMI) to view monitoring and maintenance information for your server.



caution icon Caution - Although you can use IPMItool to view sensor and LED information, do not use any interface other than the ILOM CLI or Web GUI to alterthe state or configuration of any sensor or LED. Doing so could void your warranty.



About IPMI

IPMI is an open-standard hardware management interface specification that defines a specific way for embedded management subsystems to communicate. IPMI information is exchanged though baseboard management controllers (BMCs), which are located on IPMI-compliant hardware components. Using low-level hardware intelligence instead of the operating system has two main benefits: first, this configuration allows for out-of-band server management, and second, the operating system is not burdened with transporting system status data.

Your ILOM Service Processor (SP) is a BMC that is IPMI v2.0 compliant. You can access IPMI functionality through the command line with the IPMItool utility either in-band or out-of-band. Additionally, you can generate an IPMI-specific trap from the web interface, or manage the server's IPMI functions from any external management solution that is IPMI v1.5 or v2.0 compliant. For more information about the IPMI v2.0 specification, go to http://www.intel.com/design/servers/ipmi/spec.htm#spec2.


About IPMItool

IPMItool is included on the X6275 blade’s Tools and Drivers CD image. IPMItool is a simple command-line interface that is useful for managing IPMI-enabled devices. You can use this utility to perform IPMI functions with a kernel device driver or over a LAN interface. IPMItool enables you to manage system hardware components, monitor system health, and monitor and manage the system environment, independent of the operating system.

Locate IMPItool and its related documentation on your Tools and Drivers CD image, or download this tool from the following URL: http://ipmitool.sourceforge.net/


IPMItool Man Page

After you install the IPMItool package, you can access detailed information about command usage and syntax from the man page that is installed. From a command line, type this command:

man ipmitool


Connecting to the Server With IPMItool

To connect over a remote interface you must supply a user name and password. The default user with admin-level access is root with password changeme. This means you must use the -U and -P parameters to pass both user name and password on the command line, as shown in the following example:

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



Note - If you encounter command-syntax problems with your particular operating system, you can use the ipmitool -h command and parameter to determine which parameters can be passed with the ipmitool command on your operating system. Also refer to the IPMItool man page by typing man ipmitool.




Note - In the example commands shown in this appendix, the default user name, root, and default password, changeme are shown. Type the user name and password that has been set for the server.


Enabling the Anonymous User



Note - Enabling anonymous user using IPMItool, is not supported in ILOM 3.0.


To enable the Anonymous/NULL user you must alter the privilege level on that account. This lets you connect without supplying a -U user option on the command line. The default password for this user is anonymous.

ipmitool -I lanplus -H <IPADDR> -U root -P changeme channel setaccess 1 1 privilege=4
ipmitool -I lanplus -H <IPADDR> -P anonymous user list

Changing the Default Password

You can also change the default passwords for a particular user ID. First get a list of users and find the ID for the user you wish to change, and then supply it with a new password, as shown in the following command sequence:

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

ID Name Callin Link Auth IPMI Msg Channel Priv Limit

1 false false true NO ACCESS

2 root false false true ADMINISTRATOR

ipmitool -I lanplus -H <IPADDR> -U root -P changeme user set password 2 newpass

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

where IPADDR is IP address of the server.

For example:

xxx.xx.xx.xxx.


Using IPMItool to Read Sensors

For more information about supported IPMI 2.0 commands and the sensor naming for this server, also refer to the Sun Integrated Lights Out Manager User’s Guide and the Integrated Lights-Out Manager Supplement for Sun Blade X6275 Server Module.

Reading Sensor Status

There are a number of ways to read sensor status, from a broad overview that lists all sensors, to querying individual sensors and returning detailed information on them. See the following sections:

Reading All Sensors

To get a list of all sensors in these servers and their status, use the sdr list command with no arguments. This returns a large table with every sensor in the system and its status.

The four fields of the output lines, as read from left to right are:

1. IPMI sensor number.

2. IPMI sensor ID.

3. Sensor reading.

4. Sensor status, indicating which thresholds have been exceeded.

For example:


2
|/SYS/SLOTID
| 0x02
| ok
3
|HOSTPOWER
| 0x02
| ok
4
|CMM/PRSNT
| 0x02
| ok
5
|PEM/PRSNT
| 0x02
| ok

Reading Specific Sensors

Although the default output is a long list of sensors, it is possible to refine the output to see only specific sensors. The sdr list command can use an optional argument to limit the output to sensors of a specific type. TABLE 7-1 describes the available sensor arguments.


TABLE 7-1 IPMItool Sensor Arguments

Argument

Description

Sensors

all

All sensor records

All sensors

full

Full sensor records

Temperature, voltage, and fan sensors

compact

Compact sensor records

Digital Discrete: failure and presence sensors

event

Event-only records

Sensors used only for matching with SEL records

mcloc

MC (SP) locator records

SP sensors

generic

Generic locator records

Generic devices: LEDs

fru

FRU locator records

FRU devices


See the following sections:


procedure icon  To See Only the Temperature, Voltage, and Fan Sensors

1. Use the following command, with the full argument:

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

 


14
|MB/T_AMB_FRONT
| 2Ah
| ok
|  7.0
| 25 degrees C
15
|MB/T_AMB_REAR
| 2Bh
| ok
|  7.1
| 34 degrees C
16
|VPS
| 2Ch
| ok
| 41.0
| 115.80 Watts
20
|FM0/F0/TACH
| 6Ch
| ok
| 29.0
| 5400 RPM
21
|FM0/F1/TACH
| 6Dh
| ok
| 29.0
| 5400 RPM
22
|FM1/F0/TACH
| 6Eh
| ok
| 29.1
| 5300 RPM
23
|FM1/F1/TACH
| 6Fh
| ok
| 29.1
| 5400 RPM
24
|FM2/F0/TACH
| 70h
| ok
| 29.2
| 5200 RPM
25
|FM2/F1/TACH
| 71h
| ok
| 29.2
| 5400 RPM
26
|FM3/F0/TACH
| 72h
| ok
| 29.3
| 5300 RPM
27
|FM3/F1/TACH
| 73h
| ok
| 29.3
| 5400 RPM
28
|FM4/F0/TACH
| 74h
| ok
| 29.4
| 5300 RPM
29
|FM4/F1/TACH
| 75h
| ok
| 29.4
| 5400 RPM
2a
|FM5/F0/TACH
| 76h
| ok
| 29.5
| 5300 RPM
2b
|FM5/F1/TACH
| 77h
| ok
| 29.5
| 5400 RPM
2c
|FM6/F0/TACH 
| 78h
| ns
| 29.6
| Disabled
2d
|FM6/F1/TACH
| 79h
| ns
| 29.6
| Disabled
2e
|FM7/F0/TACH
| 7Ah
| ns
| 29.7
| Disabled
2f
|FM7/F1/TACH
| 7Bh
| ns
| 29.7
| Disabled



Note - In the example above, the elist parameter was used rather than list. elist provides the same information as list, with the addition of the entity ID and asserted discrete states.


You can also generate a list of all sensors for a specific Entity. Use the list output to determine which entity you are interested in seeing, then use the sdr entity command to get a list of all sensors for that entity. This command accepts an entity ID and an optional entity instance argument. If an entity instance is not specified, it displays all instances of that entity.

The entity ID is given in the fifth field of the output, as read from left to right. For example, in the output shown in the previous example, all the fans are entity 29. The fan listed (29.5) is entity 29, with instance 5:

2a |FM5/F0/TACH | 76h | ok | 29.5 | 5300 RPM


procedure icon  To See All Fan-Related Sensors

1. Use the following command that uses the entity 29 argument:

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sdr entity 29

 


20
|FM0/F0/TACH
| 6Ch
| ok
| 29.0
| 5400 RPM
21
|FM0/F1/TACH
| 6Dh
| ok
| 29.0
| 5400 RPM
22
|FM1/F0/TACH
| 6Eh
| ok
| 29.1
| 5300 RPM
23
|FM1/F1/TACH
| 6Fh
| ok
| 29.1
| 5400 RPM
24
|FM2/F0/TACH
| 70h
| ok
| 29.2
| 5300 RPM
25
|FM2/F1/TACH
| 71h
| ok
| 29.2
| 5400 RPM
26
|FM3/F0/TACH
| 72h
| ok
| 29.3
| 5300 RPM
27
|FM3/F1/TACH
| 73h
| ok
| 29.3
| 5400 RPM
28
|FM4/F0/TACH
| 74h
| ok
| 29.4
| 5300 RPM
29
|FM4/F1/TACH
| 75h
| ok
| 29.4
| 5400 RPM
2a
|FM5/F0/TACH
| 76h
| ok
| 29.5
| 5300 RPM
2b
|FM5/F1/TACH
| 77h
| ok
| 29.5
| 5400 RPM
2c
|FM6/F0/TACH
| 78h
| ok
| 29.6
| Disabled
2d
|FM6/F1/TACH
| 79h
| ok
| 29.6
| Disabled
2e
|FM7/F0/TACH
| 7Ah
| ok
| 29.7
| Disabled
2f
|FM7/F1/TACH
| 7Bh
| ok
| 29.7
| Disabled

Other queries can include a particular type of sensor. The command in the following example returns a list of all Temperature type sensors in the SDR.

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sdr type temperature

 


0
|MB/T_AMB_FRONT
| 2Ah
| ok
|  7.0
| 26 degrees C
0
|MB/T_AMB_REAR
| 2Bh
| ok
|  7.1
| 35 degrees C


Using IPMItool to View the ILOM SP System Event Log (SEL)

The ILOM SP System Event Log (SEL) provides storage of all system events. You can view the SEL with IPMItool. See the following sections:

Sensor Numbers and Sensor Names in SEL Events

Depending on which IPMI command you use, the sensor number that is displayed for an event might appear in slightly different formats. See the following examples:

The output from certain commands might not display the sensor name along with the corresponding sensor number. To see all sensor names in your server mapped to the corresponding sensor numbers, you can use the following command:

ipmitool -H 129.144.82.21 -U root -P changeme sdr list

 


/SYS/SLOTID
| 0x04 
| ok
HOSTPOWER
| 0x02 
| ok
CMM/PRSNT
| 0x02 
| ok
PEM/PRSNT
| 0x01 
| ok
P0/PRSNT
| 0x02 
| ok
.........
 
 

In the sample output above, the sensor name is in the first column and the corresponding sensor number is in the second column.

For a detailed explanation of each sensor, listed by name, refer to the Integrated Lights Out Manager Supplement For Sun Blade X6275 Server Module.

Viewing the SEL With IPMItool

There are two different IPMI commands that you can use to see different levels of detail in the SEL.


procedure icon  To View the SEL With IPMItool

1. View the ILOM SP SEL with a minimal level of detail by using the sel list command:

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

 


13
| 03/06/2009
| 06:31:51
| System Firmware| Progress
| Option ROM | initialization
| Asserted
14
| 03/06/2009
| 06:31:56
| System Firmware| Progress
| Option ROM | initialization
| Asserted
15
| 03/06/2009
| 06:32:00
| System Firmware| Progress
| System boot| initiated
| Asserted
16
| 03/06/2009
| 06:35:12
| Temperature #0x30
| Upper Critical going high
17
| 03/06/2009
| 06:35:20
| Voltage #0x60
| Lower Critical going low



Note - When you use this command, an event record gives a sensor number but does not display the name of the sensor for the event. For example, in line 16 in the sample output above, the sensor number 0x30 is displayed. For information about how to map sensor names to the different sensor number formats that might be displayed, see Sensor Numbers and Sensor Names in SEL Events.


View the ILOM SP SEL With a Detailed Event Output by Using the sel elist Command. The sel elist command cross-references event records with sensor data records to produce descriptive event output. It takes longer to execute because it must be read from both the SEL and the Static Data Repository (SDR).

Certain qualifiers are available to refine and limit the SEL output. If you want to see only the first NUM records, use the first qualifier to the command. If you want to see the last NUM records, use the last qualifier.


procedure icon  To View the Last Three Records in the SEL

1. Use the sel list command with the last qualifier:

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sel list last 3

 


15

| 03/06/2009

| 06:32:00
| System Firmware| Progress
| System boot| initiated
| Asserted

16

| 03/06/2009

| 06:35:12
| Temperature #0x30
| Upper Critical going high

17

| 03/06/2009

| 06:35:20
| Voltage #0x60
| Lower Critical going low

If you want to get more detailed information on a particular event, you can use the sel get ID command, in which you specify an SEL record ID. For example:

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sel get 0x0a00

 


SEL Record ID
: 000f
Record Type
: 02
Timestamp
: 03/06/2009 06:31:40
Generator ID
: 0001
EvM Revision
: 04
Sensor Type
: System Firmware Progress
Sensor Number
: 00
Event Type
: Sensor-specific Discrete
Event Direction
: Assertion Event
Event Data 
: c20dff
Description
: Management controller initialization

In the example above, this particular event describes that the host is currently in the process of booting.

Clearing the SEL With IPMItool


procedure icon  To Clear the SEL

1. Use the sel clear command:

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

 


Clearing SEL.
Please allow a few seconds to erase.


Viewing Component Information With IPMItool

You can view information about system hardware components. The software refers to these components as field-replaceable unit (FRU) devices.


procedure icon  To Read the FRU Inventory Information

On these servers, you must first have the FRU ROMs programmed. After that is done, you can see a full list of the available FRU data by using the fru print command, as shown in the following example (only two FRU devices are shown in the example, but all devices would be shown).

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

 


FRU Device Description
: Builtin FRU Device (ID 0)
Product Manufacturer
: SUN MICROSYSTEMS
Product Name
: ILOM INTEGRATED SP
 
 
FRU Device Description
: SP/NET0 (ID 1)
Product Manufacturer
: ASPEED
Product Name
: ETHERNET CONTROLLER
Product Part Number
: AST2100
Product Serial
: 00:14:4f:ca:2f:21
Product Extra
: 01
Product Extra
: 00:14:4f:ca:2f:21
.......
 


Viewing Status LEDs

In these servers, the SP is responsible for the I2C commands that control the LEDs.


procedure icon  To Get a List of LEDs and Their Status

1. Use the following command:

ipmitool -I lanplus -H <IPADDR> -U root -P changeme sunoem led get all

Here are sample results:


OK
| ON
OK2RM
| OFF
SERVICE
| OFF
LOCATE
| OFF
P0/SERVICE
| OFF
P0/D0/SERVICE
| OFF
P0/D1/SERVICE
| OFF
P0/D2/SERVICE
| OFF
P0/D3/SERVICE
| OFF
P0/D4/SERVICE
| OFF
P0/D5/SERVICE
| OFF
P1/SERVICE 
| na
P1/D0/SERVICE
| na
P1/D1/SERVICE
| na
P1/D2/SERVICE
| na
P1/D3/SERVICE
| na
P1/D4/SERVICE
| na
P1/D5/SERVICE
| na