Need some more EEM help

Unanswered Question
Mar 4th, 2010

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Thu, 03/04/2010 - 13:01

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

rpeasah Thu, 03/04/2010 - 18:58

Here's what I'm running:


Joe Clarke Thu, 03/04/2010 - 19:29

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

Joe Clarke Fri, 03/05/2010 - 11:49

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.


This Discussion