Creating An Eem User Tcl Package Index - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
Command or Action
Step 6
configure
Step 7
event manager directory user library path
Example:
RP/0/RSP0/CPU0:router(config)# event
manager directory user library
disk2:/eem_library
Step 8
event manager directory user policy path
Example:
RP/0/RSP0/CPU0:router(config)# event
manager directory user policy
disk2:/eem_policies
Step 9
event manager policy policy-name username
username [persist-time [seconds | infinite] | type
[system | user]]
Example:
RP/0/RSP0/CPU0:router(config)# event
manager policy libtest.tcl username user_a
Step 10
event manager run policy [argument]
Example:
RP/0/RSP0/CPU0:router(config)# event
manager run libtest.tcl
Step 11
commit

Creating an EEM User Tcl Package Index

Perform this task to create a Tcl package index file that contains a directory of all the Tcl packages and version
information contained in a library of Tcl package files. Tcl packages are supported using the Tcl package
keyword.
Tcl packages are located in either the EEM system library directory or the EEM user library directory. When
a package require Tcl command is executed, the user library directory is searched first for a pkgIndex.tcl
file. If the pkgIndex.tcl file is not found in the user directory, the system library directory is searched.
In this task, a Tcl package directory—the pkgIndex.tcl file—is created in the appropriate library directory
using the pkg_mkIndex command to contain information about all the Tcl packages contained in the directory
along with version information. If the index is not created, the Tcl packages are not found when an EEM
policy that contains a package require Tcl command is run.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
How to Write Embedded Event Manager Policies Using Tcl
Purpose
puts "calling test3 failed result = $result $auto_path"
}
Specifies the EEM user library directory; this is the directory to which
the files in
Step 4, on page 76
Specifies the EEM user policy directory; this is the directory to which
the file in
Step 5, on page
76was copied.
Registers a user-defined EEM policy.
Manually runs an EEM policy.
were copied.
77

Advertisement

Table of Contents
loading

Table of Contents