Registering Embedded Event Manager Policies; Embedded Event Manager Policies - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Registering Embedded Event Manager Policies

Command or Action
Step 3
event manager environment var-name var-value
Example:
RP/0/RSP0/CPU0:router(config)# event manager
environment _cron_entry 0-59/2 0-23/1 * * 0-7
Step 4
Repeat Step 3 for every environment value to be reset.
Step 5
commit
Step 6
show event manager environment
Example:
RP/0/RSP0/CPU0:router# show event manager
environment
What to Do Next
After setting up EEM environment variables, find out what policies are available to be registered and then
register those policies, as described in the
Registering Embedded Event Manager Policies
Register an EEM policy to run a policy when an event is triggered.

Embedded Event Manager Policies

Registering an EEM policy is performed with the event manager policy command in global configuration
mode. An EEM script is available to be scheduled by the EEM until the no form of this command is entered.
Prior to registering a policy, display EEM policies that are available to be registered with the show event
manager policy available command.
The EEM schedules and runs policies on the basis of an event specification that is contained within the policy
itself. When the event manager policy command is invoked, the EEM examines the policy and registers it
to be run when the specified event occurs.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
56
Configuring and Managing Embedded Event Manager Policies
Purpose
Resets environment variables to new values.
• The var-name argument is the name assigned to the EEM
environment configuration variable.
• The var-value argument is the series of characters,
including embedded spaces, to be placed in the
environment variable var-name.
• By convention, the names of all environment variables
defined by Cisco begin with an underscore character to
set them apart; for example, _show_cmd.
• Spaces may be used in the var-value argument. The
command interprets everything after the var-name
argument to the end of the line to be part of the var-value
argument.
Displays the reset names and values of all EEM environment
variables; allows you to verify the environment variable names
and values set in Step 3.
Registering Embedded Event Manager Policies, on page
56.

Advertisement

Table of Contents
loading

Table of Contents