Cisco ASR 9000 Serie Configuration Manuals page 112

Aggregation services router system
Table of Contents

Advertisement

Embedded Event Manager Event Registration Tcl Command Extensions
You can enter an abbreviated CLI command, such as sh mem summary, and the parser will expand the
Note
command to show memory summary to perform the matching. The functionality provided in the CLI
event detector only allows a regular expression pattern match on a valid XR CLI command itself. This
does not include text after a pipe character when redirection is used.
Syntax
event_register_cli [tag ?]
[occurs ?] [period ?] pattern ? [default ?] [queue_priority low|normal|high|last] [maxrun
?] [nice 0|1]
Arguments
tag
occurs
period
pattern
default
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
96
Configuring and Managing Embedded Event Manager Policies
(Optional) String identifying a tag that can be used
with the trigger Tcl command extension to support
multiple event statements within a Tcl script.
(Optional) The number of occurrences before the
event is raised. If this argument is not specified, the
event is raised on the first occurrence. If this argument
is specified, it must be an integer between 1 and
4294967295, inclusive.
(Optional) Specifies a backward looking time window
in which all CLI events must occur (the occurs clause
must be satisfied) in order for an event to be published
(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 most recent event is used.
(Mandatory) Specifies the regular expression used to
perform the CLI command pattern match.
(Optional) The time period during which the CLI
event detector waits for the policy to exit (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 the default time period expires before the
policy exits, the default action will be executed. The
default action is to run the command. If this argument
is not specified, the default time period is set to 30
seconds.

Advertisement

Table of Contents
loading

Table of Contents