![Cisco ASR 9000 Serie Configuration Manuals Download Page 112](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679112.webp)
You can enter an abbreviated CLI command, such as
sh mem summary
, and the parser will expand the
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.
Note
Syntax
event_register_cli [tag ?]
[occurs ?] [period ?] pattern ? [default ?] [queue_priority low|normal|high|last] [maxrun
?] [nice 0|1]
Arguments
(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
(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.
occurs
(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.
period
(Mandatory) Specifies the regular expression used to
perform the CLI command pattern match.
pattern
(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.
default
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
96
Configuring and Managing Embedded Event Manager Policies
Embedded Event Manager Event Registration Tcl Command Extensions