Networking-Blog

My WordPress Blog

Cisco Event Manager

Reconnect to ADSL without rebooting the router

Add the following configuration:

event manager applet atmDownUp
event none
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “int atm0”
action 1.3 cli command “shut”
action 1.4 cli command “no shut”

You can trigger this applet with the “event manager run atmDownUp“

 

Schedule a recurring automatic reload

You can schedule it to run on a recurring schedule like this:
event manager applet routerReload
event timer cron cron-entry “05 0 * * *”
action 1 reload

Cisco Event Manager

Event Manager : This ensures when LAN interface is down, HSRP will fail-over to
secondary router, this script will force ATM0 interface down in order to have the
BGP VRF routes removed from routing table on the PE routers and will fail-over to
the secondary router which has a route map tag 2 configured on PE router with route’s
to 
AV-PAIR public ip address.

!

event manager applet LANDown
event track 20 state down
action 1.0 syslog msg “Vlan 1 interface is down; shutting down ATM0”
action 2.0 cli command “enable“
action 3.0 cli command “config t“
action 4.0 cli command “interface atm0“
action 5.0 cli command “shut“
action 6.0 cli command “end“

!
!

event manager applet LANUp
event track 20 state up
action 1.0 syslog msg “Vlan 1 interface is up; bring up ATM0”
action 2.0 cli command “enable“
action 3.0 cli command “config t“
action 4.0 cli command “interface atm0“
action 5.0 cli command “no shut“
action 6.0 cli command “end“