![Cisco ASR 9000 Serie Скачать руководство пользователя страница 98](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679098.webp)
most recent 10 process end times and types:
cumulative process available time: 59 hours 33 minutes 42 seconds 633 milliseconds
cumulative process unavailable time: 0 hours 0 minutes 0 seconds 0 milliseconds
process availability:
1.000000000
number of abnormal ends within the past 60 minutes (since reload): 0
number of abnormal ends within the past 24 hours (since reload): 0
number of abnormal ends within the past 30 days (since reload): 0
=====================================
Configuration Examples for Writing Embedded Event Manager
Policies Using Tcl
EEM Event Detector Demo: Example
This example uses the sample policies to demonstrate how to use Embedded Event Manager policies. Proceed
through the following sections to see how to use the sample policies:
EEM Sample Policy Descriptions
The configuration example features one sample EEM policy. The tm_cli_cmd.tcl runs using a configurable
CRON entry. This policy executes a configurable CLI command and e-mails the results.
Event Manager Environment Variables for the Sample Policies
Event manager environment variables are Tcl global variables that are defined external to the EEM policy
before the policy is registered and run. The sample policies require three of the e-mail environment variables
to be set; only _email_cc is optional. Other required and optional variable settings are outlined in the following
tables.
This table describes a list of the e-mail variables.
Table 12: E-mail-Specific Environmental Variables Used by the Sample Policies
Example
Description
Environment Variable
example.com
The default domain name.
_domainname
mailserver.example.com
Simple Mail Transfer Protocol
(SMTP) mail server used to send
e-mail.
_email_server
Address to which e-mail is sent.
_email_to
Address from which e-mail is sent.
_email_from
Address to which the e-mail must
be copied.
_email_cc
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
82
Configuring and Managing Embedded Event Manager Policies
Configuration Examples for Writing Embedded Event Manager Policies Using Tcl