4. Trap PDU
在 [1] 中定义的 Trap-PDU 旨在表示在 IP 网络上生成的 trap. 因此, 在表示 OSI 网络上生成的 trap 时, 必须使用略有不同的 PDU.
RFC1283 DEFINTIONS ::= BEGIN
IMPORTS
TimeTicks
FROM RFC1155-SMI -- [2] --
VarBindList
FROM RFC1157-SNMP -- [1] --
ClnpAddress
FROM CLNS-MIB -- [9] --;
Trap-PDU ::=
[4]
IMPLICT SEQUENCE {
enterprise -- type of object generating
OBJECT IDENTIFIER, -- trap, see sysObjectID
agent-addr -- address of object generating
ClnpAddress, -- trap
generic-trap -- generic trap type
INTEGER {
coldStart(0),
warmStart(1),
linkDown(2),
linkUp(3),
authenticationFailure(4),
egpNeighborLoss(5),
enterpriseSpecific(6)
},
specific-trap -- specific code, present even
INTEGER, -- if generic-trap is not
-- enterpriseSpecific
time-stamp -- time elapsed between the last
TimeTicks, -- (re)initialization of the
-- network entity and the
-- generation of the trap
variable-bindings -- "interesting" information
VarBindList
}
END