Action Cli - Cisco Nexus 3548 Command Reference Manual

Nx-os system management
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

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.
Syntax Description
label num1 [.num2] Unique identifier that can be any string value. Actions are sorted and run in an
local
vsh_cmd
Defaults
None
Command Modes
Embedded event manager configuration mode
Command History
Release
5.0(3)A1(1)
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
Command
action counter
action event-default
action policy-default
Cisco Nexus 3548 Switch NX-OS System Management Command Reference
4
action label num1 [.num2] cli [local] vsh_cmd
no action label num1 [.num2] cli
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.
(Optional) Specifies the action is to be executed in the same module on which the
event occurs.
VSH command string to be executed when the applet is triggered.
Modification
This command was introduced.
Description
Sets or modifies a named counter when an Embedded Event Manager
(EEM) applet is triggered.
Specifies that the default action for the event is to be performed when an
Embedded Event Manager (EEM) applet is triggered.
Enables the default action of the policy being overridden.
System Management Commands
OL-27851-02

Advertisement

Table of Contents
loading

Table of Contents