PurposeAction Commands
Specifies the action of returning the index on the first occurrence of
string1 within string2 when an EEM applet is triggered.
action string first
Specifies the action of returning the characters specified at a given
index value when an EEM applet is triggered.
action string index
Specifies the action of returning the index on the last occurrence of
string1 within string 2 when an EEM applet is triggered.
action string last
Specifies the action of returning the number of characters in a string
when the EEM applet is triggered.
action string length
Specifies the action of returning 1 to the $_string_result, if the string
matches the pattern when an EEM applet is triggered.
action string match
Specifies the action of storing a range of characters in a string when
an EEM applet is triggered.
action string range
Specifies the action of storing a new string by replacing range of
characters in the specified string when an EEM applet is triggered.
action string replace
Specifies the action of storing specific range of characters of a string
in lowercase when an EEM applet is triggered.
action string tolower
Specifies the action of storing specific range of characters of a string
in uppercase when an EEM applet is triggered.
action string toupper
Specifies the action to trim a string when an EEM applet is triggered.action string trim
Specifies the action to trim the characters of one string from the left
end of another string when an EEM applet is triggered.
action string trimleft
Specifies the action to trim the characters one string from the right
end of another string when an EEM applet is triggered.
action string trimright
Subtracts the value of a variable from another value when an EEM
applet is triggered.
action subtract
Specifies the action of identifying the beginning of a loop of
conditional block when an EEM applet is triggered.
action while
Configuring Event SNMP-Object Examples
The following example shows the SET operation and the value to set is in $_snmp_value and it is managed
by the script. The example below saves the oid and its value as contexts to be retrieved later.
event manager applet snmp-object1
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1758
Configuration Examples for Writing Embedded Event Manager Policies Using Tcl