To create user library directory before identifying it to the EEM, use the
mkdir
command in EXEC mode.
After creating the user library directory, use the
copy
command to copy the .tcl library files into the user
library directory.
User Policy
A user policy directory is essential to store the user-defined policy files. If you do not plan to write EEM
policies, you do not have to create a user policy directory. The EEM searches the user policy directory when
you enter the
event manager policy policy-name user
command.
To create a user policy directory before identifying it to the EEM, use the
mkdir
command in EXEC mode.
After creating the user policy directory, use the
copy
command to copy the policy files into the user policy
directory.
Task ID
Operations
Task ID
read, write
eem
Examples
This example shows how to set the pathname for a user library directory to /usr/lib/tcl on disk0:
RP/0/0/CPU0:router(config)#
event manager directory user library disk0:/usr/lib/tcl
This example shows how to set the location of the EEM user policy directory to /usr/fm_policies on disk0:
RP/0/0/CPU0:router(config)#
event manager directory user policy disk0:/usr/fm_policies
Related Commands
Description
Command
Registers an EEM policy with the EEM.
event manager policy, on page 82
Displays the directory name for storing user library
and policy files.
show event manager directory user, on page 90
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01
79
Embedded Event Manager Commands
event manager directory user