Event_Register_Counter - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Embedded Event Manager Event Registration Tcl Command Extensions
maxrun
nice
If multiple conditions are specified, the syslog event will be raised when all the conditions are matched.
Result String
None
Set _cerrno
No

event_register_counter

Registers for a counter event as both a publisher and a subscriber. Use this Tcl command extension to run a
policy on the basis of a named counter crossing a threshold. This event counter, as a subscriber, identifies the
name of the counter to which it wants to subscribe and depends on another policy or another process to actually
manipulate the counter. For example, let policyB act as a counter policy, whereas policyA (although it does
not need to be a counter policy) uses register_counter, counter_modify, or unregister_counter Tcl command
extensions to manipulate the counter defined in policyB.
Syntax
event_register_counter name ? entry_op gt|ge|eq|ne|lt|le entry_val ?
exit_op gt|ge|eq|ne|lt|le exit_val ? [queue_priority low|normal|high]
[maxrun ?] [nice 0|1]
Arguments
name
entry_op
entry_val
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
98
Configuring and Managing Embedded Event Manager Policies
(Optional) Maximum run time of the script (specified
in SSSSSSSSSS[.MMM] format, where SSSSSSSSSS
must be an integer representing seconds between 0
and 4294967295, inclusive, and where MMM must
be an integer representing milliseconds between 0
and 999). If this argument is not specified, the default
20-second run-time limit is used.
(Optional) Policy run-time priority setting. When the
nice argument is set to 1, the policy is run at a
run-time priority that is less than the default priority.
The default value is 0.
(Mandatory) Name of the counter.
(Mandatory) Entry comparison operator used to
compare the current counter value with the entry
value; if true, an event is raised and event monitoring
is disabled until exit criteria are met.
(Mandatory) Value with which the current counter
value should be compared, to decide if the counter
event should be raised.

Advertisement

Table of Contents
loading

Table of Contents