cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1713
Views
0
Helpful
1
Replies
samir ahmed
Beginner

EEM requirement

Hi,

Can anyone let me know which IOS version has EEM 3.1 version available.

i need to run applet on 6500/3560/3750/2360/N7K

Please let me know the what can be done to get my below mentioned applet get work.

event manager applet Add-vlan

event cli pattern "switchport trunk allowed vlan\s+[0-9]" sync yes

action 1.0 puts "You are going to overwrite current allowed list (switchport trunk allowed vlan X) "

action 1.1 puts "Are you sure [Y/N]:"

action 2.0 gets response

action 3.0 if $response eq y goto 5.0

action 4.0 puts "Verify allowed vlan on trunk port"

action 4.1 exit 0

action 5.0 puts "OK  Vlan Added on Trunk port"

action 5.1 exit 1

!

1 REPLY 1
Joe Clarke
Hall of Fame Cisco Employee

You don't need EEM 3.1 for this.  EEM 3.0 will work.  EEM 3.x is available on the 6500 in 15.1(1)SY, 3560/3750 in 12.2(52)SE.  This applet will not work on the N7K.  The N7K doesn't support the same EEM as IOS.  The 2360 does not support EEM 3.x.

The applet itself looks wrong, too.  You're missing an else probably after action 4.1 at the ver least.  I also think you want to reverse the exit 0 and exit 1.  In this case, exit 0 means the original command should not run.  Exit 1 means the original command should run.