Event Cli - Cisco Nexus 7000 Series Reference Manual

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

event cli

event cli
To specify the event criteria for an Embedded event manager (EEM) applet that is run by matching a
Cisco NX-OS command-line interface (CLI) command, use the event cli command. To remove the CLI
command event criteria, use the no form of this command.
Syntax Description
tag tag
match regex
count countnum
time interval
Defaults
None
Command Modes
Embedded event manager
Supported User Roles
network-admin
vdc-admin
Command History
Release
5.2.(1)
4.0(1)
Usage Guidelines
The event cli match regex command must meet the following criteria:
1.
Cisco Nexus 7000 Series NX-OS System Management Command Reference
142
event cli [tag tag] match regex [count countnum] [time interval]
no event cli match regex [count countnum] [time interval]
(Optional) Identifies this specific event when multiple events are included in the
policy.
Specifies the regular expression (regex) used to perform the CLI command pattern
match. The CLI command must have been successfully parsed before the pattern
match is attempted. The pattern match is compared with the fully expanded CLI
command string. If the expression contains embedded blanks, enclose it in double
quotation marks.
(Optional) Specifies the number of matching occurrences before an EEM event is
triggered. When a number is not specified, an EEM event is triggered after the
first match. The countnum argument must be an integer greater than 0.
(Optional) Specifies the time interval during which the one or more occurrences
must take place. When the keyword is not specified, no time period check is
applied.
The interval argument is an integer that represents seconds in the range from 0 to
4294967295.
Modification
Added the tag tag keywords.
This command was introduced.
It must be a fully qualified CLI string that must include the complete, not relative, path. For example,
to describe the shutdown command under interface mode, the command should be:
switch(config-applet)# event cli match "conf t ; interface * ; shutdown"
E Commands
OL-25806-03

Advertisement

Table of Contents
loading

Table of Contents