Infrastructure management using the HP SIM command line interface (436331-002, January 2009)

Event management
You can use HP SIM to manage alerts from the systems you are managing. HP SIM accepts SNMP
traps and WBEM indications. This section discusses how to use the CLI to manage traps and
indications. For this discussion, the term event refers to either an SNMP trap or a WBEM indication.
Configuring HP SIM
In Inventory management, the Configuring HP SIM section discusses how to use
mxglobalprotocolsettings and mxnodesecurity to configure SNMP and WBEM
authorization credentials which is important for WBEM because root authorization is required to
subscribe to WBEM event notifications (indications.)
WBEM
The mxwbemsub command enables you to manage WBEM indication subscriptions for managed
systems that are able to send WBEM indications. Each managed server must have WBEM Services
(B8465BA) and the System Fault Management (SysFaultMgmt) products installed to enable WBEM
indications. Storage devices that support SMI-S configured to send WBEM, can also send indications.
A WBEM subscription tells the managed system where to send indications using the WBEM protocol.
To create a subscription, use one of the following commands:
# mxwbemsub –a [destCMS] –n nodenames
# mxwbemsub –a [destCMS] –f nodefile.txt
The –n option specifies the system names on the command line.
The –f option specifies a file that contains the system names.
When using a file, each system name must be on a separate line. The destCMS parameter (optional)
tells the systems you are subscribing where to send the indications. If you do not provide the
destCMS parameter, the indications are sent to the system where the mxwbemsub command is
executed.
To remove a subscription, replace the –a option with the –r option. Removing a subscription means
the systems on the command line or in the file no longer sends WBEM indications to the specified
CMS.
To list the subscriptions for systems, replace the –a option with the –l option. If you provide the
destCMS parameter (optional), the subscriptions for CMS destCMS also appears.
The mxwbemsub command also enables you to move WBEM subscriptions from one CMS to another.
The command syntax is:
# mxwbemsub –m [currentCMS] newCMS –n nodenames
# mxwbemsub –m [currentCMS] newCMS –f nodefile.txt
This command moves the WBEM subscription from currentCMS to newCMS for the systems on the
command line (using –n), or for the systems in the text file (using –f). The parameter currentCMS is
optional, and if omitted the WBEM subscription is moved from the current system to newCMS.
SNMP
You must configure each managed system SNMP trap destination to point to the CMS. After
completing the configuration, HP SIM can receive SNMP traps.
There are two commands for managing SNMP MIB information. The mcompile command compiles
SNMP MIB files into an intermediate format, called a cfg file. For example, the command:
# mcompile [-d mibdir] mibfile.mib
14