Consolidated Platform Configuration Guide, Cisco Ios Release 15.2(4)E (Catalyst 2960-X Switches - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Write EEM Policies Using the Cisco IOS CLI
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
Command or Action
Step 1
enable
Example:
Device> enable
Step 2
show event manager policy pending
Example:
Device# show event manager policy pending
Step 3
event manager scheduler clear {all | policy job-id
| queue-type {applet | call-home | axp | script} class
class-options} [processor {rp_primary |
rp_standby}]
Example:
Device# event manager scheduler clear policy
2
Step 4
show event manager policy pending
Example:
Device# show event manager policy pending
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
1
2
3

Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)

1716
1
pend
Thu Sep 7
2
pend
Thu Sep 7
3
pend
Thu Sep 7
Purpose
Enables privileged EXEC mode.
• Enter your password if prompted.
Displays the pending EEM policies.
Only the syntax applicable to this task is used in this
Note
example. For more details, see the Cisco IOS Network
Management Command Reference.
Clears EEM policies that are executing or pending execution.
• In this example, the EEM policy with a job ID of 2 is cleared
from the pending queue.
Displays all the pending EEM policies except the policy cleared
in Step 3.
Note
Only the syntax applicable to this task is used in this
example. For more details, see the Cisco IOS Network
Management Command Reference.
event type
02:54:04 2006
syslog
02:54:04 2006
syslog
02:54:04 2006
syslog
name
applet: one
applet: two
applet: three

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents