|
SNMP Version 1 (SNMPv1) Message Format
(Page 3 of 3)
SNMPv1 Trap-PDU Format
Table 214
and Figure 279
show the special format for the SNMPv1 Trap-PDU:
Table 214: SNMP Version 1 (SNMPv1) Trap-PDU Format
Field
Name
|
Syntax
|
Size (bytes)
|
Description
|
PDU Type
|
Integer (Enumerated)
|
4
|
PDU Type: An integer
value that indicates the PDU type, which is 4 for a Trap-PDU
message.
|
Enterprise
|
Sequence
of Integer
|
Variable
|
Enterprise:
An object identifier for a group, which indicates the type of object
that generated the trap.
|
Agent
Addr
|
NetworkAddress
|
4
|
Agent Address:
The IP address of the SNMP agent that generated the trap. This is of
course also in the IP header at lower levels but inclusion in the SNMP
message format allows for easier trap logging within SNMP. Also, in
the case of a multihomed host, this specifies the preferred address.
|
Generic
Trap
|
Integer
(Enumerated)
|
4
|
Generic
Trap Code: A code value specifying one of a number of predefined
generic trap types.
|
Specific
Trap
|
Integer
|
4
|
Specific Trap Code:
A code value indicating an implementation-specific trap type.
|
Time
Stamp
|
TimeTicks
|
4
|
Time
Stamp: The amount of time since the SNMP entity sending this
message last initialized or reinitialized. Used to time stamp traps
for logging purposes.
|
Variable
Bindings
|
Variable
|
Variable
|
Variable Bindings:
A set of name-value pairs identifying the MIB objects in the PDU. See
the general message format topic for more on these bindings.
|
|