DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode.
enable
Step 1
Example:
Device> enable
•
Enter your password if prompted.
Enters global configuration mode.
configure terminal
Example:
Device# configure terminal
Step 2
Registers the applet with the EEM and enters applet
configuration mode.
event manager applet applet-name
Example:
Device(config)# event manager applet action
Step 3
Specifies that an EEM policy is to be registered with the EEM
and can be run manually.
event none
Example:
Device(config-applet)# event none
Step 4
Gets input from the local console in a synchronous applet and
stores the value in the given variable when an EEM applet is
triggered.
action label gets variable
Example:
Device(config-applet)# action label2 gets
input
Step 5
Specifies the action to be taken when an EEM applet is
triggered.
action label syslog
[
priority priority-level
]
msg
msg-text
Step 6
Example:
Device(config-applet)# action label3 syslog
msg
“
Input entered was \
”
$input\
“”
•
In this example, the action to be taken is to write the
value of the variable specified in Step 5, to syslog.
Exits applet configuration mode and returns to privileged
EXEC mode.
exit
Example:
Device(config-applet)# exit
Step 7
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1721
How to Write EEM Policies Using the Cisco IOS CLI
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......