event cli
S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
event cli
To specify the event criteria for an Embedded Event Manager configuration mode(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
count-number
Defaults
None
Command Modes
Embedded event manager configuration mode
Command History
Release
5.0(3)U3(1)
Usage Guidelines
This command does not require a license.
Examples
This example shows how to specify a CLI command for the EEM applet to match:
switch# configure terminal
switch(config)# event manager applet eventcli-applet
switch(config-applet)# event cli match "shutdown" count 10
switch(config-applet)#
Cisco Nexus 3000 Series NX-OS System Management Command Reference
-SM-54
event cli [tag tag] match regex [count count-number]
no event cli match regex [count count-number]
(Optional) Identifies this specific event when multiple events are included in the
policy. The tag name can be any alphanumeric string up to 29 characters.
Specifies the regular expression (regex) used to perform the CLI command
pattern match. The regex can be up to 512 characters. Use * to wildcard a token.
(Optional) Specifies the number of matching occurrences before an EEM event is
triggered. The count-number must be an integer that is greater than 0.
Modification
This command was introduced.
Chapter
System Management Commands
OL-29557-04