![Cisco ASR 9000 Serie Configuration Manuals Download Page 75](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679075.webp)
Purpose
Command or Action
—
Repeat Step 3 for every EEM policy to be
registered.
Step 4
commit
Step 5
Displays all EEM policies that are already registered, allowing verification
of Step 3.
show event manager policy registered
Example:
RP/0/RSP0/CPU0:router# show event
manager policy registered
Step 6
How to Write Embedded Event Manager Policies Using Tcl
This section provides information on how to write and customize Embedded Event Manager (EEM) policies
using Tool Command Language (Tcl) scripts to handle Cisco IOS XR Software faults and events.
This section contains these tasks:
Registering and Defining an EEM Tcl Script
Perform this task to configure environment variables and register an EEM policy. EEM schedules and runs
policies on the basis of an event specification that is contained within the policy itself. When an EEM policy
is registered, the software examines the policy and registers it to be run when the specified event occurs.
Before You Begin
A policy must be available that is written in the Tcl scripting language. Sample policies are provided in the
Sample EEM Policies, on page 64
. Sample policies are stored in the system policy directory.
SUMMARY STEPS
1.
show event manager environment
[
all
|
environment-name
]
2.
configure
3.
event manager environment var-name
[
var-value
]
4.
Repeat
Step 3, on page 60
to configure all the environment variables required by the policy to be registered
in
Step 5, on page 60
.
5.
event manager policy policy-name username username
[
persist-time
[
seconds
|
infinite
] |
type
[
system
|
user
]]
6.
commit
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
59
Configuring and Managing Embedded Event Manager Policies
How to Write Embedded Event Manager Policies Using Tcl