Consolidated Platform Configuration Guide, Cisco Ios Release 15.2(4)E (Catalyst 2960-X Switches - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Write Embedded Event Manager Policies Using Tcl
SUMMARY STEPS
1. enable
2. show event manager environment [all| variable-name]
3. configure terminal
4. event manager environment variable-name string
5. Repeat
by the policy to be registered in
6. event manager policy policy-filename [type {system| user}] [trap]
7. exit
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Device> enable
Step 2
show event manager environment [all|
variable-name]
Example:
Device# show event manager environment all
Step 3
configure terminal
Example:
Device# configure terminal
Step 4
event manager environment variable-name string
Example:
Device(config)# event manager environment
_cron_entry 0-59/2 0-23/1 * * 0-6
Step 5
Repeat
Registering and Defining an EEM Tcl Script
to configure all the environment variables required
by the policy to be registered in
Defining an EEM Tcl
Step 6
event manager policy policy-filename [type
{system| user}] [trap]

Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)

1772
Registering and Defining an EEM Tcl Script
Registering and Defining an EEM Tcl
Registering and
Script.
to configure all the environment variables required
Purpose
Enables privileged EXEC mode.
• Enter your password if prompted.
(Optional) Displays the name and value of EEM environment
variables.
• The optional all keyword displays all the EEM environment
variables.
• The optional variable-nameargument displays information
about the specified environment variable.
Enters global configuration mode.
Configures the value of the specified EEM environment variable.
• In this example, the software assigns a CRON timer
environment variable to be set to the second minute of every
hour of every day.
--
Registers the EEM policy to be run when the specified event
defined within the policy occurs.
Script.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents