![Cisco ASR 9000 Serie Скачать руководство пользователя страница 96](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679096.webp)
Purpose
Command or Action
Specifies the EEM user policy directory; this is the directory to
which the file in
Step 5, on page 79
was copied.
event manager directory user policy path
Example:
RP/0/RSP0/CPU0:router(config)# event manager
directory user policy disk2:/eem_policies
Step 8
Registers a user-defined EEM policy.
event manager policy policy-name username
username
[
persist-time
[
seconds
|
infinite
] |
type
[
system
|
user
]]
Step 9
Example:
RP/0/RSP0/CPU0:router(config)# event manager
policy packagetest.tcl username user_a
Manually runs an EEM policy.
event manager run policy
[
argument
]
Example:
RP/0/RSP0/CPU0:router(config)# event manager
run packagetest.tcl
Step 10
commit
Step 11
Configuration Examples for Event Management Policies
Environmental Variables Configuration: Example
This configuration sets the environment variable cron_entry:
RP/0/RSP0/CPU0:router#
configure
RP/0/RSP0/CPU0:router#(config)#
event manager environment _cron_entry 0-59/2 0-23/1 * * 0-7
User-Defined Embedded Event Manager Policy Registration: Example
This configuration registers a user-defined event management policy:
RP/0/RSP0/CPU0:router#
configure
RP/0/RSP0/CPU0:router(config)#
event manager policy cron.tcl username tom user
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
80
Configuring and Managing Embedded Event Manager Policies
Configuration Examples for Event Management Policies