Cisco ASR 9000 Serie Configuration Manuals page 81

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
Table 9: Sample EEM Policy Descriptions
Name of Policy
periodic_diag_cmds.tcl
periodic_proc_avail.tcl
periodic_sh_log.tcl
sl_sysdb_timeout.tcl
tm_cli_cmd.tcl
tm_crash_hist.tcl
For more details about the sample policies available and how to run them, see the
Example , on page
SUMMARY STEPS
1. show event manager policy available [system | user]
2. configure
3. event manager directory user {library path | policy path}
4. event manager policy policy-name username username [persist-time [seconds | infinite] | type [system
| user]]
5. commit
82.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
How to Write Embedded Event Manager Policies Using Tcl
Description
This policy is triggered when the _cron_entry_diag
cron entry expires.Then, the output of this fixed set
is collect for the fixed set of commands and the output
is sent by email.
This policy is triggered when the
_cron_entry_procavail cron entry expires. Then the
output of this fixed set is collect for the fixed set of
commands and the output is sent by email.
This policy is triggered when the _cron_entry_log
cron entry expires, and collects the output for the
show log command and a few other commands. If the
environment variable _log_past_hours is configured,
it collects the log messages that are generated in the
last _log_past_hours hours. Otherwise, it collects the
full log.
This policy is triggered when the script looks for the
sysdb timeout ios_msgs and obtains the output of the
show commands. The output is written to a file named
after the blocking process.
This policy runs using a configurable CRON entry.
It executes a configurable CLI command and e-mails
the results.
This policy runs at midnight each day and e-mails a
process crash history report to a specified e-mail
address.
EEM Event Detector Demo:
65

Advertisement

Table of Contents
loading

Table of Contents