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
-SM-54
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
event cli
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.
event cli
[
tag
tag
]
match
regex
[
count
count-number
]
no event cli match
regex
[
count
count-number
]
Syntax Description
Defaults
None
Command Modes
Embedded event manager configuration mode
Command History
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)#
tag
tag
(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.
match
regex
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.
count
count-number
(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.
Release
Modification
5.0(3)U3(1)
This command was introduced.