HP 3PAR Command Line Interface Administrator's Manual: HP 3PAR OS 3.1.2 (QR482-96525, September 2013)

16 Using the HP 3PAR SNMP Infrastructure
Overview
In addition to managing the system with the HP 3PAR CLI, the HP 3PAR OS includes an SNMP
agent that allows you to perform some basic management functions via network management
software running on a management station. These SNMP management functions require that you
have SNMP management software not provided by HP. For information about SNMP, see the HP
3PAR StoreServ Storage Concepts Guide.
The HP 3PAR SNMP Agent
The HP 3PAR SNMP agent runs on the system and provides a management interface to enable
other software products to manage HP hardware using SNMP. The HP 3PAR SNMP agent responds
to GET, SET, GETNEXT, and GETBULK SNMP requests and also generates notification messages
(traps) for critical events (alerts) and alert state changes (for information about requests and traps,
see the HP 3PAR StoreServ Storage Concepts Guide). These traps include the same information
as the alerts described in the HP 3PAR OS Messages and Operator’s Guide.
The HP 3PAR SNMP agent supports SNMPv3, SNMPv2c, SMI-v2 standards, and the SNMPv2-MIB
and a proprietary HP 3PAR MIB. For detailed information about these standards and MIBs, see
the HP 3PAR StoreServ Storage Concepts Guide.
Locating the HP 3PAR MIB
The HP 3PAR MIB is located on the HP 3PAR CLI and SNMP CD.
alertNotify Traps
All alerts generated by the system, as well as all alert status change events, are translated into
alertNotify traps. For information about system alerts, go to http://www.hp.com/support/
hpgt/3par and select your server platform.
NOTE: If you receive a trap with messageCode == 1245186, this is to notify you that an alert
has changed state. In order to find out which alert has changed state, you must extract the alert
ID from the id trap field.
See the HP 3PAR StoreServ Storage Concepts Guide for additional information about alertNotify
traps.
Registering an SNMP Manager
For detailed information about all HP 3PAR CLI commands described in this section, see the HP
3PAR Command Line Interface Reference for additional information and examples.
To register the SNMP manager with the agent, use the setsnmpmgr command followed by the
manager’s IP address. If you need to use one of the following options, enter it after the command
and before the IP address:
-p <port_number>—Specifies the port number where the manager receives traps. The
default port is 162.
-pw <password>—Specifies the manager’s access password, if the manager has one.
-r <number> —Specifies the number of times the system will attempt to resend the trap if
the manager is not available. You can specify from 1 to 15 retries. The default is 2.
-t <seconds>—Specifies the number of seconds to wait between retries. You can set this
timeout interval from 1 to 300 seconds. The default is 200.
NOTE: The HP 3PAR OS supports a maximum of 10 registered SNMP managers.
Overview 167