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
Info | ||
---|---|---|
| ||
Source: 192.168.10.140 ifOperStatus(1.3.6.1.2.1.2.2.1.8.1) = 2 |