
Network Administration 4-5
+RZWR'HILQH7UDSV
You define or change a user-specified trap using the following
snmp traps
command:
WUDSVWUDSQDPHSDUDPHWHUYDOXH
trapname
is the name of the trap.
value
is the value that you assign to the definition.
parameter
must be a parameter listed in the Table 4-2.
7DEOH3DUDPHWHU'HVFULSWLRQV
3DUDPHWHU 'HVFULSWLRQ
var
A traps variable is the MIB variable that is queried
to determine the traps value. All MIB variables
must be specified in the form
snmp.
oid,
where
oid is an OID (Object Identifier). A list of OIDs in
the Dell MIB is in the
traps.dat
file in the same
directory as the MIB.
trigger
A traps trigger is a piece of code that determines
whether the trap should send data. The following
triggers are available:
single-edge-trigge
rsends data when the
traps target MIB variables value crosses an
edgea value that you specify.
double-edge-trigger
enables you to have
the trap send data when an edge is crossed in
either direction (the edges can be different for each
direction.
level-trigger
sends data whenever the traps
value exceeds a certain level.
edge-1
edge-2
A traps edges are the threshold values that are
compared against during evaluation to determine
whether to send data.
edge-1-direction
edge-2-direction
Edge-triggered traps only send data when the
edges are crossed in one direction. By default this
is UP for the first edge and DOWN for the second
edge. The direction arguments let you change this
default.
interval
The interval is the number of seconds between
evaluation of the trap. A trap can only send data as
often as it is evaluated.