cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

137
Views
0
Helpful
2
Replies
Highlighted
Beginner

EEM Script execution issue

Hello Team,

 

We have below Script running on our ISR 4431 router.

event manager applet TUNNELDOWN
event syslog pattern "Line protocol on Interface Tunnel1, changed state to down" maxrun 60
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "int GigabitEthernet0/0/1"
action 4 cli command "shut"
action 5 cli command "exit"
event manager applet TUNNELUP
event syslog pattern "Line protocol on Interface Tunnel1, changed state to up" maxrun 60
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "int GigabitEthernet0/0/1"
action 4 cli command "no shut"
action 5 cli command "exit"

 

 

Script is shutting down interface but not bringing back it up, Can anyone has clue what could be the issue ?

 

 

2 REPLIES 2
VIP Advisor

Re: EEM Script execution issue

Quick Question: if the tunnel associated with this interface? GigabitEthernet0/0/1

 

can you post the Logs and snippet config, that tunnel come up?

 

BB
*** Rate All Helpful Responses ***
Beginner

Re: EEM Script execution issue

Hi

To have brief idea, below are router ports, Tunnel (EIGRP neighbourship) is formed over WAN interface Gi0/0/0. its DMVPN tuunel.

Through EEM script we want to sync status of LAN port-Gi0/0/1 as that of Tunnel interface.

if Tunnel goes down, we want to make LAN interface down, and when tunnel restores, bring back LAN port.

For now, LAN port goes down as expected but does not recovers when tunnel comes up. 

 

Router#sh int desc
Interface Status Protocol Description
Gi0/0/0 up up ***WANPORT - ISP link***
Gi0/0/1 up up ***LANPRT ***
Gi0/0/2 admin down down
Gi0/0/3 admin down down
Gi0 admin down down
Lo100 up up *** Router MGMT ***
Tu1 up up *** Primary tunnel ***

 

 

Router logs :

 

*Jan 15 09:26:26.726: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed state to down
*Jan 15 09:26:27.727: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to down
*Jan 15 09:26:32.899: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to down
*Jan 15 09:26:32.903: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 10.195.164.1 (Tunnel1) is down: interface down
*Jan 15 09:26:33.448: %OSPF-5-ADJCHG: Process 100, Nbr 10.252.173.33 on GigabitEthernet0/0/1 from FULL to DOWN, Neighbor Down: Interface down or detached
*Jan 15 09:26:33.454: %SYS-5-CONFIG_I: Configured from console by on vty3 (EEM:TUNNELDOWN)
*Jan 15 09:26:35.447: %LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to administratively down
*Jan 15 09:26:36.448: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1, changed state to down
*Jan 15 09:28:09.738: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed state to up
*Jan 15 09:28:10.738: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to up
*Jan 15 09:28:13.908: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to up
*Jan 15 09:28:17.659: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 10.195.164.1 (Tunnel1) is up: new adjacency

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards