Cisco Nexus 7000 Series Reference Manual page 43

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

A Commands
action snmp-trap
To specify the generation of a Simple Network Management Protocol (SNMP) trap when an Embedded
Event Manager (EEM) applet is triggered, use the action snmp-trap command. To disable the SNMP
trap, use the no form of this command.
Syntax Description
label
intdata1 integer
intdata2 integer
strdata string
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 specify an SNMP trap to generate when an EEM applet is triggered:
switch# configure terminal
switch(config)# event manager applet snmp-applet
switch(config-applet)# action 1.7 snmp-trap strdata "EEM detected server failure"
switch(config-applet)#
OL-25806-03
action label snmp-trap [intdata1 integer] [intdata2 integer] [strdata string]
no action label snmp-trap [intdata1 integer] [intdata2 integer] [strdata string]
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 an integer to be sent in the SNMP trap message to the SNMP
agent.
(Optional) Specifies a second integer to be sent in the SNMP trap message to the
SNMP agent.
(Optional) Specifies a string to be sent in the SNMP trap message to the SNMP
agent. If the string contains embedded blanks, enclose it in double quotation
marks.
Modification
This command was introduced.
Cisco Nexus 7000 Series NX-OS System Management Command Reference
action snmp-trap
15

Advertisement

Table of Contents
loading

Table of Contents