SUMMARY STEPS
1.
enable
2.
show event manager policy pending
3.
event manager scheduler clear {all | policy job-id | queue-type {applet | call-home | axp | script} class
class-options} [processor {rp_primary | rp_standby}]
4.
show event manager policy pending
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Device> enable
•
Enter your password if prompted.
Displays the pending EEM policies.show event manager policy pending
Step 2
Example:
Device# show event manager policy pending
Only the syntax applicable to this task is used in this
example. For more details, see the Cisco IOS Network
Management Command Reference.
Note
Clears EEM policies that are executing or pending execution.
event manager scheduler clear {all | policy job-id
| queue-type {applet | call-home | axp | script} class
Step 3
•
In this example, the EEM policy with a job ID of 2 is cleared
from the pending queue.
class-options} [processor {rp_primary |
rp_standby}]
Example:
Device# event manager scheduler clear policy
2
Displays all the pending EEM policies except the policy cleared
in Step 3.
show event manager policy pending
Example:
Device# show event manager policy pending
Step 4
Only the syntax applicable to this task is used in this
example. For more details, see the Cisco IOS Network
Management Command Reference.
Note
Examples
The following example shows how to clear the EEM policy with a job ID of 2 that was pending execution.
The show commands are used to display the policies that are pending before and after the policy is cleared.
Device# show event manager policy pending
no. job id status time of event event type name
1 1 pend Thu Sep 7 02:54:04 2006 syslog applet: one
2 2 pend Thu Sep 7 02:54:04 2006 syslog applet: two
3 3 pend Thu Sep 7 02:54:04 2006 syslog applet: three
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1716
How to Write EEM Policies Using the Cisco IOS CLI