Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Need some more EEM help

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
Cisco Employee

Re: Need some more EEM help

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

New Member

Re: Need some more EEM help

Here's what I'm running:

asr1000rp2-adventerprisek9.02.06.00.122-33.XNF.bin

Cisco Employee

Re: Need some more EEM help

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

New Member

Re: Need some more EEM help

No it doesn't support that command.

Cisco Employee

Re: Need some more EEM help

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.

253
Views
0
Helpful
5
Replies