Action 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

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
local
vsh_cmd
Defaults
None
Command Modes
Embedded event manager
Supported User Roles
network-admin
vdc-admin
Command History
Release
4.0(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 callhome send eem subject "port down" body "acme
port is down"
switch(config-applet)#
Related Commands
Command
event manager applet
Cisco Nexus 7000 Series NX-OS System Management Command Reference
4
action label cli [local] vsh_cmd
no action label cli
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. If the string
contains embedded blanks, enclose it in double quotation marks.
(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
Registers an applet with the Embedded Event Manager (EEM).
A Commands
OL-25806-03

Advertisement

Table of Contents
loading

Table of Contents