All MIBs › CPQPOWER-MIB › trapCode
trapCode
Module: CPQPOWER-MIB
OID (symbolic): CPQPOWER-MIB::trapCode
OID (numeric): 1.3.6.1.4.1.232.165.1.1.1
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-only
Description: A number identifying the event for the trap that was sent. Mapped unique trap code per unique event to be used by ISEE's decoder ring.
What is trapCode?
This read-only integer is a code number identifying the specific event that triggered an SNMP trap from this power device, mapped to a unique code per unique event for use by HP's ISEE decoder ring. An admin or automated alert system uses this code to programmatically identify exactly which power-related event occurred without parsing free-text trap messages. For example, an integration tool could look up trapCode in a table to translate it into a human-readable description like 'battery low' or 'UPS on battery'.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.232.165.1.1.1 snmpwalk -v2c -c public <target> CPQPOWER-MIB::trapCode
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.232.165.1.1.1.1 snmpget -v2c -c public <target> CPQPOWER-MIB::trapCode.1
Start monitoring Compaq/HP-managed UPS/PDU power infrastructure with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the CPQPOWER-MIB::trapCode OID value, configure state conditions and alerts, and monitor any Compaq/HP-managed UPS/PDU power infrastructure from a single console.
OID Breakdown
Upper-level ancestors (7 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.232 | compaq | COMPAQ-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.232.165 | cpqPower | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.1 | powerDevice | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.1.1 | trapInfo | CPQPOWER-MIB |
| 1.3.6.1.4.1.232.165.1.1.1 | trapCode | CPQPOWER-MIB |