cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
773
Views
0
Helpful
5
Replies

Need some more EEM help

rpeasah
Level 1
Level 1

Here's what I'm trying to accomplish:

  1. When both g0/1/0 AND g0/1/1 go down, shut down p0/0/0.
  2. When either g0/1/0 OR g0/1/1 comes back up, wait 5 mins and if either is still up, bring up p0/0/0.
  3. While waiting, if the link that is up goes down, reset the countdown timer.

Previously Joe Marcus Clarke helped solve a similar scenario (see attached) but this takes it a little further. I want to modify that script to accomodate this new scenario.

Would appreciate any assistance.

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

What version of IOS do you have?  Your new scenario may not be doable with applets.

Here's what I'm running:

asr1000rp2-adventerprisek9.02.06.00.122-33.XNF.bin

Does this device support the command "show event manager version"?  If so, post the output.

No it doesn't support that command.

This one Tcl policy replaces your two existing applet policies.  Before you can register it, though, you need to set a few EEM environment variables:

# pc_intf      : Name of the port channel interface to control.
#
# pc_member_1  : Name of first interface to watch.
#
# pc_member_2  : Name of second interface to watch.
#
# pc_up_timer  : Value in seconds to wait before the port channel is brought
#                back up when a member interface comes back up.

For example:

event manager environment pc_intf P0/0/0

event manager environment pc_member_1 GigabitEthernet0/1/0

event manager environment pc_member_2 GigabitEthernet0/1/1

event manager environment pc_up_timer 300

Then you can register the EEM Tcl policy.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: