EasyManua.ls Logo

Cisco ASR 9000 Serie

Cisco ASR 9000 Serie
378 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DETAILED STEPS
PurposeCommand or Action
(Optional) Displays the name and value of EEM environment
variables.
show event manager environment [ all |
environment-name]
Step 1
Example:
RP/0/RSP0/CPU0:router# show event manager
environment all
The all keyword displays all the EEM environment
variables.
The environment-name argument displays information about
the specified environment variable.
configure
Step 2
Resets environment variables to new values.
event manager environment var-name [ var-value ]
Step 3
Example:
RP/0/RSP0/CPU0:router(config)# event manager
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 .
environment _cron_entry 0-59/2 0-23/1 * * 0-7
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.
Repeat Step 3, on page 60 to configure all the
environment variables required by the policy to be
registered in Step 5, on page 60.
Step 4
Registers the EEM policy to be run when the specified event
defined within the policy occurs.
event manager policy policy-name username
username [ persist-time [ seconds | infinite ] | type [
system | user ]]
Step 5
Use the system keyword to register a system policy defined
by Cisco.
Example:
RP/0/RSP0/CPU0:router(config)# event manager
Use the user keyword to register a user-defined system
policy.
policy tm_cli_cmd.tcl username user_a type
system
Use the persist-time keyword to specify the length of time
the username authentication is valid.
In this example, the sample EEM policy named tm_cli_cmd.tcl is
registered as a system policy.
commit
Step 6
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
60
Configuring and Managing Embedded Event Manager Policies
How to Write Embedded Event Manager Policies Using Tcl

Table of Contents

Related product manuals