Cisco ASR 9000 Serie Configuration Manuals page 87

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
SUMMARY STEPS
1. show event manager policy available [system | user]
2. Cut and paste the contents of the sample policy displayed on the screen to a text editor.
3. Define the required event_register Tcl command extension.
4. Add the appropriate namespace under the ::cisco hierarchy.
5. Program the must defines section to check for each environment variable that is used in this policy.
6. Program the body of the script.
7. Check the entry status to determine if a policy has previously run for this event.
8. Check the exit status to determine whether or not to apply the default action for this event, if a default
action exists.
9. Set Cisco Error Number (_cerrno) Tcl global variables.
10. Save the Tcl script with a new filename, and copy the Tcl script to the router.
11. configure
12. event manager directory user {library path | policy path}
13. event manager policy policy-name username username [persist-time [seconds | infinite] | type [system
| user]]
14. commit
15. Cause the policy to execute, and observe the policy.
16. Use debugging techniques if the policy does not execute correctly.
DETAILED STEPS
Command or Action
Step 1
show event manager policy available
[system | user]
Example:
RP/0/RSP0/CPU0:router# show event
manager policy available
Step 2
Cut and paste the contents of the sample
policy displayed on the screen to a text
editor.
Step 3
Define the required event_register Tcl
command extension.
Purpose
Displays EEM policies that are available to be registered.
Choose the appropriate event_register Tcl command extension for the event that
you want to detect, and add it to the policy. The following are valid Event
Registration Tcl Command Extensions:
• event_register_appl
• event_register_counter
• event_register_stat
• event_register_wdsysmon
• event_register_oir
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
How to Write Embedded Event Manager Policies Using Tcl
71

Advertisement

Table of Contents
loading

Table of Contents