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-4
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
action cli
action cli
To configure a virtual shell (VSH) command string to be executed when an Embedded Event Manager
(EEM) applet is triggered, use the
action
cli
command. To disable the VSH command string, use the
no
form of this command.
action
label num1
[.
num2
]
cli
[
local
]
vsh_cmd
no action
label num1
[.
num2
]
cli
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 configure a VSH command string to be executed when an EEM applet is
triggered:
switch#
configure terminal
switch(config)#
event manager applet cli-applet
switch(config-applet)#
action 1.1 cli show version
switch(config-applet)#
Related Commands
label
num1
[.
num2
] Unique identifier that can be any string value. Actions are sorted and run in an
ascending alphanumeric sequence using the
label
as the sort key. The range for
num1 is from 1 to 16 and the range for num2 is from 0 to 9.
local
(Optional) Specifies the action is to be executed in the same module on which the
event occurs.
vsh_cmd
VSH command string to be executed when the applet is triggered.
Release
Modification
5.0(3)U3(1)
This command was introduced.
Command
Description
action counter
Sets or modifies a named counter when an Embedded Event Manager
(EEM) applet is triggered.
action event-default
Specifies that the default action for the event is to be performed when an
Embedded Event Manager (EEM) applet is triggered.
action policy-default
Enables the default action of the policy being overridden.