cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1656
Views
0
Helpful
2
Replies

EEM Script for changing configuration

Dipesh Patel
Level 2
Level 2

Dear Experts,

I have a requirement to change the router configuration using EEM script.

Scenario is like this:

Currently I have a Internet link connected to Router WAN interface and it is working as internet edge router.

Now I want to use new Device in front of this Router and internet link will be connected to this device.

Hence my router will not have public ip addresses.

This change i need to perform at remote location where no it persons are there.

So I am thinking as soon as Cable from Router WAN interface is removed and connected to new device, EEM script will triggered and do the required configuration.

Can you help me which Event Detector I can use in this regards which will not impact my routine operation?

I can use syslog to detect WAN interface down. but the problem is that when ever interface goes down due to any other purpose, this script will triggered.

SO please suggest.

2 Replies 2

thiland
Level 3
Level 3

Seems like a case where simplicity is key.  Could you just manually trigger the applet during the change window?  If you want it automated, could you configured the applet just prior to the change window and remove it when done?

Joe Clarke
Cisco Employee
Cisco Employee

You can use the syslog event to detect the WAN interface going down, then make your config change, and then remove the applet.  This way, the policy will only run once.

Review Cisco Networking for a $25 gift card