![Cisco ASR 9000 Serie Скачать руководство пользователя страница 80](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679080.webp)
Purpose
Command or Action
Example:
RP/0/RSP0/CPU0:router(config)# event manager
directory user library disk0:/usr/lib/tcl
•
Use the
path
argument to specify the absolute pathname
to the user directory.
commit
Step 4
Displaying Software Modularity Process Reliability Metrics Using EEM
Perform this optional task to display reliability metrics for Cisco IOS XR Software processes.
SUMMARY STEPS
1.
show event manager metric process
{
all
|
job-id
|
process-name
}
location
{
all
|
node-id
}
DETAILED STEPS
Purpose
Command or Action
Displays the reliability metric data for processes. The system
keeps a record of when processes start and end, and this data
is used as the basis for reliability analysis.
show event manager metric process
{
all
|
job-id
|
process-name
}
location
{
all
|
node-id
}
Example:
RP/0/RSP0/CPU0:router# show event manager
environment
Step 1
Sample EEM Policies
Cisco IOS XR Software contains some sample policies in the images that contain the EEM. Developers of
EEM policies may modify these policies by customizing the event for which the policy is to be run and the
options associated with logging and responding to the event. In addition, developers may select the actions
to be implemented when the policy runs.
The Cisco IOS XR Software includes a set of sample policies (see
Sample EEM Policy Descriptions
table).
The sample policies can be copied to a user directory and then modified. Tcl is currently the only scripting
language supported by Cisco for policy creation. Tcl policies can be modified using a text editor such as
Emacs. Policies must execute within a defined number of seconds of elapsed time, and the time variable can
be configured within a policy. The default is 20 seconds.
Sample EEM policies can be seen on the router using the CLI
Show event manager policy available system
This table describes the sample EEM policies.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
64
Configuring and Managing Embedded Event Manager Policies
How to Write Embedded Event Manager Policies Using Tcl