Structure of a Trap
- Last UpdatedDec 17, 2021
- 1 minute read
The table below shows the components of a trap PDU and the special tags used to manipulate them.
|
Component |
Special tag |
|
enterprise |
T0 |
|
agent-addr |
T1 |
|
generic-trap |
T2 |
|
specific-trap |
T3 |
|
time-stamp |
T4 |
|
variable-bindings |
T5, T6, TNVB and SubfieldNumber |
Note: Most SNMP traps only contain one record; however, it is possible to get a trap with many records. A mechanism exists using the "subfield number" to iterate and read all these trap records.