event_register_resource
Registers for an Embedded Resource Manager (ERM) event. Use this Tcl command extension to run a policy
on the basis of an ERM event report for a specified policy. ERM events are screened by the EEM Resource
event detector, allowing an EEM policy to be run when a match occurs for the specified ERM policy.
Syntax
event_register_resource policy policy-name [queue_priority low|normal|high|last]
[maxrun ?] [nice 0|1]
Arguments
(Mandatory) Specifies the use of a policy.policy
(Mandatory) Name of an ERM policy.policy-name
(Optional) Priority level at which the script will be
queued:
•
queue_priority low--Specifies that the script is
to be queued at the lowest of the three priority
levels.
•
queue_priority normal--Specifies that the script
is to be queued at a priority level greater than
low priority but less than high priority.
•
queue_priority high--Specifies that the script is
to be queued at the highest of the three priority
levels.
•
queue_priority last--Specifies that the script is
to be queued at the lowest priority level.
If more than one script is registered with the
"queue_priority_last" argument set, these scripts will
execute in the order in which the events are published.
The queue_priority argument specifies the
queuing priority, but not the execution
priority, of the script being registered.
Note
If this argument is not specified, the default queuing
priority is normal.
queue_priority
(Optional) Maximum run time of the script (specified
in SSSSSSSSSS[.MMM] format, where SSSSSSSSSS
must be an integer representing seconds between 0
and 4294967295, inclusive, and where MMM must
be an integer representing milliseconds between 0
and 999). If this argument is not specified, the default
20-second run-time limit is used.
maxrun
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1922
event_register_resource