Event_Register_Snmp - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
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
tag
entry_op
get_type
entry_val
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
Embedded Event Manager Event Registration Tcl Command Extensions
(Optional) String identifying a tag that can be used
with the trigger Tcl command extension to support
multiple event statements within a Tcl script.
(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.
(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.
(Mandatory) Value with which the current oid data
value should be compared to decide if the SNMP
event should be raised.
105

Advertisement

Table of Contents
loading

Table of Contents