Aller au contenu principal

4. PDU de trap

Le Trap-PDU défini dans [1] est conçu pour représenter les traps générés sur les réseaux IP. À ce titre, un PDU légèrement différent doit être utilisé lors de la représentation des traps générés sur les réseaux OSI.

   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