Displaying Software Modularity Process Reliability Metrics Using Eem; Sample Eem Policies - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

How to Write Embedded Event Manager Policies Using Tcl
Command or Action
Example:
RP/0/RSP0/CPU0:router(config)# event manager
directory user library disk0:/usr/lib/tcl
Step 4
commit

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
Command or Action
Step 1
show event manager metric process {all | job-id |
process-name} location {all | node-id}
Example:
RP/0/RSP0/CPU0:router# show event manager
environment

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
Purpose
• Use the path argument to specify the absolute pathname
to the user directory.
Purpose
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.

Advertisement

Table of Contents
loading

Table of Contents