4. トラップ PDU
[1] で定義されている Trap-PDU は、IP ネットワーク上で生成されるトラップを表すように設計されています。そのため、OSI ネットワーク上で生成されるトラップを表す場合は、わずかに異なる 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