EasyManua.ls Logo

Cisco Catalyst 2960 Series

Cisco Catalyst 2960 Series
2288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
event manager applet applet-name
4.
action label foreach [string-iterator] [string-input] [string-delimiter]
5.
Specify any action command
6.
action label end
DETAILED STEPS
PurposeCommand 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 Embedded Event Manager (EEM)
and enters applet configuration mode.
event manager applet applet-name
Example:
Device(config)# event manager applet iteration
Step 3
Iterates over an input string using the delimter as a tokenizing
pattern.
action label foreach [string-iterator] [string-input]
[string-delimiter]
Step 4
Example:
Device(config-applet)# action 2.0 foreach
iterator "red blue green orange"
In this example, the iteration is run through the elements
of the input string - red, blue, green and orange.
Performs the action as indicated by the action command.Specify any action command
Step 5
Example:
Device(config-applet)# action 3.0 puts
"Iterator is $iterator"
In this example, the following message is displayed on
the screen:
Iterator is red
Iterator is blue
Iterator is green
Iterator is orange
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1737
How to Write EEM Policies Using the Cisco IOS CLI

Table of Contents

Other manuals for Cisco Catalyst 2960 Series

Related product manuals