S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-66
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
event snmp
event snmp
To specify the event criteria for an Embedded Event Manager (EEM) applet that is run by sampling
Simple Network Management Protocol (SNMP) object identifier (OID) values, use the
event snmp
command. To remove the SNMP event criteria, use the
no
form of this command.
event snmp
[
tag
tag
]
oid
value
get-type
{
exact
|
next
}
entry-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
entry-val
value
[{
exit-comb
{
or
|
and
}
exit-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
exit-val
value
exit-time
time
} |
{
exit-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
exit-val
value
}]
poll-interval
value
no event snmp
[
tag
tag
]
oid
value
get-type
{
exact
|
next
}
entry-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
entry-val
value
[{
exit-comb
{
or
|
and
}
exit-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
exit-val
value
exit-time
time
} | {
exit-op
{
gt
|
ge
|
eq
|
ne
|
lt
|
le
}
exit-val
value
}]
poll-interval
value
Syntax Description
tag
tag
(Optional) Identifies this specific event when multiple events are included in the
policy. The tag name can be any alphanumeric string up to 29 characters.
oid
value
Specifies the SNMP OID values in the
value
argument as the event criteria. The
value
of the data element must be in SNMP dotted notation. An OID is defined as
a type in the associated MIB and each type has an object value. Monitoring of
some OID types is supported. When the
oid
keyword is used, an error message is
returned if the OID is not one of the following:
•
INTEGER_TYPE
•
COUNTER_TYPE
•
GAUGE_TYPE
•
TIME_TICKS_TYPE
•
COUNTER_64_TYPE
•
OCTET_PRIM_TYPE
•
OPAQUE_PRIM_TYPE
get-type
Specifies the type of SNMP get operation to be applied to the object ID specified
by the
oid
value
argument.
exact
Retrieves the object ID specified by the
oid
value
argument.
next
Retrieves the object ID that is the alphanumeric successor to the object ID
specified by the
oid
value
argument.
entry-op
op
Compares the contents of the current object ID value with the entry value using
the specified operator:
•
gt
—Greater than
•
ge
—Greater than or equal to
•
eq
—Equal to
•
ne
—Not equal to
•
lt
—Less than
•
le
—Less than or equal to
If there is a match, an event is triggered and event monitoring is disabled until the
exit criteria are met.