![Cisco ASR 9000 Serie Configuration Manuals Download Page 121](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679121.webp)
Set _cerrno
No
event_register_snmp
Registers for a Simple Network Management Protocol (SNMP) statistics event. Use this Tcl command extension
to run a policy when a given counter specified by an SNMP object ID (oid) crosses a defined threshold. When
a snmp policy is registered, a poll timer is specified. Event matching occurs when the poll timer for the
registered event expires. The
snmp-server manager
CLI command must be enabled for the SNMP notifications
to work using Tcl policies.
Syntax
event_register_snmp [tag ?] oid ? get_type exact|next
entry_op gt|ge|eq|ne|lt|le entry_val ?
entry_type value|increment|rate
[exit_comb or|and]
[exit_op gt|ge|eq|ne|lt|le] [exit_val ?]
[exit_type value|increment|rate]
[exit_time ?] poll_interval ? [average_factor ?]
[queue_priority low|normal|high|last]
[maxrun ?] [nice 0|1]
Aruguments
(Optional) String identifying a tag that can be used
with the trigger Tcl command extension to support
multiple event statements within a Tcl script.
tag
(Mandatory) Entry comparison operator used to
compare the current OID data value with the entry
value; if true, an event will be raised and event
monitoring will be disabled until exit criteria are met.
entry_op
(Mandatory) Type of SNMP get operation that needs
to be applied to the OID specified. If the get_type
argument is "exact," the value of the specified OID
is retrieved; if the get_type argument is "next," the
value of the lexicographical successor to the specified
OID is retrieved.
get_type
(Mandatory) Value with which the current oid data
value should be compared to decide if the SNMP
event should be raised.
entry_val
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
105
Configuring and Managing Embedded Event Manager Policies
Embedded Event Manager Event Registration Tcl Command Extensions