 |
» |
|
|
 |
NAMEhpbmc — Manage the IPMI BMC on HP Servers .
Synopsis
/sbin/hpbmc [-b busaddr ] [-d
path] [directive]
Description
hpbmc is a utility for performing
action(s) on a Baseboard Management Controller (BMC). hpbmc was originally designed for HP Integrity Servers using the Open
IPMI driver. hpbmc may work against other platforms
if a BMC is available via a network connection (RMCP). If the optional
directive is missing, the Summary output is printed. - -b busaddr
If the target BMC supports the IPMI Send Message command,
all requests will be directed to this IPMB bus address "behind" the
BMC. It needs to be an eight-bit hex number (i.e., A2). This bridging
also works over RMCP sessions. - -d path
Override the default device file path for the target
BMC. All commands are directed to this device. See FILES and ENVIRONMENT
for details.
Directives
Change the Product Area Asset Tag recorded in
the IPMI System FRU. This change is non-volatile and will survive
a power cycle. This directive is unsupported on rx7620, rx8620, SD16A,
SD32A, and SD64A platforms, and any HPVM guest.
Sets the BMC time (used for timestamping entries
in the FPL and SEL) to the current system time. See FPLstatus or SELstatus for the current BMC time.
EventLookup (Integrity only)
Takes a single argument as an event index and
prints out a textual description. These events may be found in both
the FPL and SEL of Integrity servers. Event types come in two variants:
classic IPMI events of type 0x02 and HP OEM events of type 0xE0. If the argument is a "triplet" of the form "XX:YY:ZZ"
(including colons) it is treated as three hex bytes denoting the
sensor type, event read type (with direction bit), and offset of a
type 2 event. Type 2 events are found exclusively in the FPL and
SEL of entry level (non-partitioned) Integrity servers. The "triplet"
form is documented in the appendix of most entry-level "Operations
and Maintenance" manuals. If the argument is a single number, it is treated
as an event type E0 "Event ID". Type E0 events are typically found
in the SEL of midrange and high-end (partitioned) Integrity servers,
and less often in the SEL of entry level servers. The FPL of entry
level servers may have many E0 events. One line per attribute is printed; some lines
are much longer than 80 characters. Type XX Event Id YY: Summary
Desc: Longer description of the event
Cause: Another way to look at the event
Action: Sometimes corrective step(s) are prescribed
Severity: one of six levels
Trap: SNMP enterprise-specific trap (if any)
Platform: All, Entry-level, Mid-range, High-end |
An E0 event may occur on multiple platforms with
slightly different fields (event ID 98 is a good example). A set
of attributes will be printed for each platform that supports the
event. If the argument is LIST, all registered events for the running platform will be printed
as described above. There will not be any multiple events printed
in this list. Finally, if the argument is TABLE, a full list is printed, one line per event, with the pipe symbol
"|" as field delimiter. This output is suitable for import into a
spreadsheet.
Adds a new event to the Forward Progress Log.
The FPL is a circular log (unlike the SEL) so it does not fill up;
the oldest entries will be overwritten as necessary. The argument
order is given by running the directive without arguments.
Adds a new event to the Forward Progress Log. The arguments
are the raw 14 bytes of an FPL body. One source of this is the bytes
given by FPLprintraw.
FPLdecode (Integrity only)
See the SELdecode directive below.
FPLerase (Integrity only)
Erase the entire Forward Progress Log.
FPLprint (Integrity only)
Print a verbose list of all entries in the Forward
Progress Log. All entries start with the logical entry number followed
by one of two forms: Normal IPMI events list the sensor number in hex,
whether it was asserted [+] or deasserted [-], its generic
type, a description of the triggering event, and a timestamp. Proprietary HP events list the description, a physical
location (cabinet, cell number, and CPU number where appropriate),
and any additional data for the event. Usually it is followed by
a line that seems identical but only contains a timestamp; that
belongs with the previous entry.
FPLprintraw (Integrity only)
Like FPLprint , along with
the raw data bytes of the entry, starting at the Record Type.
FPLstatus (Integrity only)
Print capacity, last entry time, last deletion
time, and current time.
Print FRU entries that were listed in the SDRR.
If the FRU is not installed N/A is printed; otherwise all details provided in the FRU are listed.
GetSystemInfoParameter {parameter}
The IPMI 2.0 spec allows information strings to
be set with this command. Commonly used parameters and the strings
they return: System Firmware Revision Operating system type Primary operating system name and revision Current operating system name and revision
IPMIraw NetFn/LUN Cmd [data1 data2 ...]
Takes the hexadecimal bytes and sends them directly
to the target device. Output is printed as a block of hexadecimal
bytes, although no length information is explicitly given. The user
must know how to interpret the bytes. For example, hpbmc
IPMIraw 18 1 is the Get Device ID command.
Returns the apparent bus address of the Open IPMI
device; cannot be used with the -b option. This may reflect a wake up value (typically hex 20) and
might not be an actual assigned address (as with an ATCA chassis).
See the next command.
Sets the apparent bus address of the Open IPMI
device; cannot be used with the -b option. This value is persistent until changed or the system is
rebooted. newaddr is an eight-bit
IPMB address in hexadecimal (i.e., A2). If it is missing or set to
FF, hpbmc will probe all addresses for the one
that matches actually hardware assignment (as with an ATCA chassis).
hpbmc embodies full textual
descriptions and SNMP trap information for many IPMI SEL events.
This directive prints all that information in the form of a MIB.
You can typically find this MIB in /usr/share/snmp/mibs/HPIPFTRAP-MIB.txt. It should be created by the hpmgmtbase install
scripts so MIBprint is not normally used.
Partname [newname ] (Integrity cellular systems
only)
Print the name of the partition on which the command
is run. It cannot be run remotely over RMCP. When given an optional
argument, an attempt is made to rename the partition.
Partprint (Integrity only)
On entry-level boxes, print the "parts": installed
CPUs, installed IO cards, and RAM population. On partitioned systems
it adds partition names, cell assignments, and cell-to-chassis associations.
Without the optional modifier, display the
current chassis power state. The modifier can change the current
state. On HP Integrity servers this can only be used with -b 46run locally via IPMI, or directly to the MP
card with RMCP.
The Management Processor (MP) card on HP Integrity
Servers supports RMCP operation for current firmware revisions. On
entry-level systems (non- cellular) RMCP must first be enabled via
an interactive session to the MP. The default password is null (no
password), and can only be changed via this directive. Mid-range
and high-end servers (cellular) can set the password via this directive
or the interactive MP session. See the ENVIRONMENT VARIABLES section
for password usage.
Print a verbose list of all entries in the Sensor
Data Record Repository. An entry is summarized on a single line, followed
by a type description and pertinent details. Not all of the entries
are useful to the casual observer. The following types may be seen: - C Sensor
Compact sensor that returns state information - F Sensor
Full sensor that can return analog readings - FRU
Field Replaceable Unit - Ent Assoc
Entity association, a logical grouping of lower-level
entities - A Prop
Association property, an HP-proprietary type (cellular
only) - D Prop
Data property, an HP-proprietary type (cellular only) - C Prop
Control property, an HP-proprietary type (cellular
only)
Like SDRprint, along with the
raw data bytes of the entry, starting at the Record Type.
Adds a new event to the System Event Log. The
SEL has a finite length and when full will not accept any new events.
This directive may cause generate SNMP or WBEM network activity if
agents are running. The details of the arguments are beyond the scope
of this document, however the results of SELprintraw may be "cut-and-pasted."
Adds a new event to the System Event Log. The arguments are
the raw 14 bytes of an SEL body. One source of this is the bytes
given by SELprintraw.
MP cards provide a login and command line interface
to manage an Integrity server. One of those commands lists the SEL
contents. Those events are sometimes listed (based on firmware revision
or settings) as two large hexadecimal numbers which need to be decoded.
Use those numbers as the two arguments to the SELdecode directive to get a better description of the event. It is best
to run this command on the same platform as that which generated the
event; sometimes additional SDRR data is needed for a full decode.
Erase the entire System Event Log.
Print a verbose list of all entries in the System
Event Log. See the description under FPLprint for
more details.
Like SELprint, along with the
raw data bytes of the entry, starting at the Record Type.
Print capacity, last entry time, last deletion
time, and current time. The SEL is not a circular log, and will not
take more events when it is full. The HP IPMI daemon, hpipmid monitors this condition and will erase the SEL as needed.
Print the last entry in the SEL, then go into
a two-second polling loop waiting for new entries. Most useful with SELappend or truly buggy hardware :-)
Lists all sensors and the current reading of each.
If number is given, list only that sensor (which can be obtained
from SDRprint). Note that sensor number may not
be a truly unique reference if multiple LUNs are available.
SetSystemInfoParameter {parameter}
The IPMI 2.0 spec allows information strings to
be set with this command. Commonly used parameters are shown under
the GetSystemInfoParameter directive.
SetOANameStrings (c-Class Integrity Blades
only)
The c-Class blade enclosure has a monitoring processor
called the Onboard Administrator (OA). The OA presents a web interface
that includes summary data about the OS running on each blade. This
directive populates that information. It is typically run by startup
scripts and does not need to be invoked by the user.
Print machine identification and firmware revisions.
On cellular platforms, partition and cell configuration is added.
Given 16 hexadecimal bytes, this directive prints
the synthesized text message for a SEL entry comprised of these bytes.
This directive is useful only to developers and deep IPMI spec geeks.
Files
hpbmc needs the Open IPMI devintfcharacter device file to directly access a local
BMC. These device files must have the major number of the ipmideventry in/proc/devices, established after modprobe ipmi_devintf. The low-level hardware interface must also be present. Its name
is one of ipmi_si, ipmi_si_drv, or ipmi_kcs_drv depending on your version of Linux. The hpmgmtbase RPM installation is responsible for insuring the proper creation
of the character device file, usually one of /dev/ipmi0 or /dev/ipmi/0.
Typically the -d option is not specified and the defaults use by hpbmc will just work.
hpbmc -d also accepts an argument
in the form user:password@host, where host is an RMCP-compliant management
processor or BMC. The determination of user and password is left
as an exercise for the reader. A password may be supplied without
a user name and colon.
The SDRR (Sensor Data Record Repository) cache
is stored in /var/run/SDRR_xxxxxxxr as an ASCII
representation of the raw bytes. Do not edit it by hand. xxxxx is
a function of the -b and -d arguments
so that multiple caches may be kept.
Environment
If the HP IPMI caching daemon, hpipmid, is
running, hpbmc will transparently do all BMC communication
through that daemon. All functionality is preserved, and performance
on some operations (such as SELprint) is increased
over 100 times.
An alternative to the -d option
is the environment variable HPBMC_DEVICE. It must have the same syntax as the device file or RMCP host listed
above.
See Also
hpuid(8), hpipmid(8)
Copyright
Copyright 2004-2009 Hewlett-Packard Technologies
Group, L.P.
|