SnmpTrapUDR(3.0)
The SNMP Trap agent uses its own static UDR type calledÂ
SnmpTrapUDR
. There is also a special static UDR called FlatSnmpUDR
 used for unresolved triggered requests.The SnmpTrapUDR contains data from a received SNMP trap, received by the SNMP Trap agent.
Field | Description |
---|---|
trapSource (string) | The IP address or the remote host sending the trap. |
receiveTime (long) | The UTC timestamp when the SNMP trap notification was received by the agent. |
sysUpTime (string) | Value of sysUpTime (time since last reboot). 0 as of RFC3418. |
trapOid (string) | Value of snmpTrapOID, unique trap Object Identifier (OID). 0 as of RFC3418. |
trapName (string) | The name of the trap, resolved from loaded MIB data. |
isGeneric (boolean) | This is a flag telling if the trap OID is a sub OID of snmpTraps as specified in RFC3418. True if trap is generic, false if enterprise-specific. |
pduType (string) | The type of the SNMP PDU as a string (TRAPv1, TRAPv2, INFORM). |
oidToName (map<string,string>) | A map of all OIDs in this trap to their resolved name from the MIB data. Maps OID to name (for variable bindings). |
oidToValue (map<string,string>) | A map of all OIDs in this trap to their values. Maps OID to value (for variable bindings). |
Example
Example - linkDown trap
Source: 192.168.10.140
PDU Type: TRAP
Receive Time: 2016/09/22 11:08:13
SysUpTime: 7 days, 21:59:48.75
Trap OID: 1.3.6.1.6.3.1.1.5.3
Trap Name: linkDown
Generic: true
<Trap Varbinds>
ifOperStatus(1.3.6.1.2.1.2.2.1.8.1) = 2
ifAdminStatus(1.3.6.1.2.1.2.2.1.7.1) = 2
ifIndex(1.3.6.1.2.1.2.2.1.1.1) = 1