messageCode
ThreeParMIB ·
.1.3.6.1.4.1.12925.1.7.1.8
Object
column Unsigned32
Message code is assigned to a particular event type, and is
encoded as a 32-bit number in the following way:
The MSB 8 bits are reserved.
The next 8 bits represent a particular subsystem or component.
The LSB 16 bits are the keycode id within the subsystem.
For example, Remote Copy Target Down event has a subsystem ID
of 37 (remote copy subsystem), and a keycode ID of 1, thus the
message code for this event = ((37 << 16) | 1) = 0x250001 = 2424833.
This is shown as 'Message Code' in the CLI 'showalert' display,
and also shows up in the Alerts Details Pane in the GUI.
Context
- MIB
- ThreeParMIB
- OID
.1.3.6.1.4.1.12925.1.7.1.8- Type
- column
- Access
- readonly
- Status
- current
- Parent
- alertEntry
- Groups
- 2
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'ThreeParMIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ThreeParMIB::messageCode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ThreeParMIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ThreeParMIB::messageCode.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ThreeParMIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ThreeParMIB::messageCode'
Syntax
Unsigned32
Values & Constraints
Object Constraints
range: 65537-4294967295
Conformance
Member of