cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1466
Views
0
Helpful
3
Replies

tcp script to shutdown tunel interfaces

Ahmed Zakaria
Level 1
Level 1

Hi everyone - i'm trying to find TCP script to shutdown 150 tunnel interfaces/clear crypto session on the main router and unshut them on a backup router

 

RouterA:

Interface Tunnel200

shutdown

do clear crypto session remote 1.1.1.1

Interface Tunnel300

shutdown

do clear crypto session remote 2.2.2.2

 

RouterB:

Interface Tunnel200

no shutdown

Interface Tunnel300

no shutdown

 

Thank you so much!

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

This script you looking to run inside the kit or out of the box ?

 

since i understand your requirement, you looking to shut on primary and bring on the secondary router ? is this correct.

 

Then i suggest looking for the script to run out of the box.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello i need to run to two scripts on two boxs (Locally on each box)

 

shutdown interfaces on Box_A and unshut interfaces on Box_B

 

Note: each box on other location

Since you are doing many links shutdown at a time or one  at time, Like

 

best approach for me here as below :

 

Link 1 VPN shutdown on Router 1

Link 1 VPN no shutdown on Router 2

 

you can do EEM Scrip for this, But i suggest to do it out of the box to decrease the Load, since VPN itself with 200 is high for CPU head room.

 

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help