EasyManua.ls Logo

Cisco ASR 9000 Serie

Cisco ASR 9000 Serie
378 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...
Using the Tcl package support in EEM, users can gain access to packages such as XML_RPC for Tcl. When
the Tcl package index is created, a Tcl script can easily make an XML-RPC call to an external entity.
Packages implemented in C programming code are not supported in EEM.Note
SUMMARY STEPS
1.
On your workstation (UNIX, Linux, PC, or Mac) create a library directory and copy the Tcl package files
into the directory.
2.
tclsh
3.
pkg_mkindex directory_name *.tcl
4.
Copy the Tcl package files from Step 1 and the pkgIndex file from Step 3 to the directory used for storing
user library files on the target router.
5.
Copy a user-defined EEM policy file written in Tcl to the directory used for storing user-defined EEM
policies on the target router.
6.
configure
7.
event manager directory user library path
8.
event manager directory user policy path
9.
event manager policy policy-name username username [persist-time [seconds | infinite] | type [system
| user]]
10.
event manager run policy [argument]
11.
commit
DETAILED STEPS
PurposeCommand or Action
On your workstation (UNIX, Linux, PC, or Mac)
create a library directory and copy the Tcl package
files into the directory.
Step 1
Enters the Tcl shell.tclsh
Example:
workstation% tclsh
Step 2
Use the pkg_mkindex command to create the pkgIndex file. The
pkgIndex file contains a directory of all the packages contained in
pkg_mkindex directory_name *.tcl
Example:
workstation% pkg_mkindex eem_library *.tcl
Step 3
the Tcl library files. We recommend that you run the pkg_mkindex
command inside a directory, because there can be only a single
pkgIndex file in any directory and you may have other Tcl files to
be grouped together. Running the pkg_mkindex command in a
directory determines which Tcl package file or files are indexed
using a specific pkgIndex.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
78
Configuring and Managing Embedded Event Manager Policies
How to Write Embedded Event Manager Policies Using Tcl

Table of Contents

Related product manuals