Assume you have track 11 setup to watch the interface you care about. You want to shutdown interface Serial0:31 as well in that case:
event manager applet ethertrack
event track 11 state down
action 1.0 syslog msg "Ethernet interface is down; shutting down Serial0:31"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "interface ser0:31"
action 5.0 cli command "shut"
action 6.0 cli command "end"
action 7.0 syslog msg "Serial0:31 is now down"
Again, this requires 12.4(2)T or higher to be running on the router. It is only an example, but it will take down the serial interface when the tracked object goes down. You could also create a similar applet to watch for the object state to go up, then bring back up the Serial interface.
track 11 setup: track 11 interface FastEthernet0/0 line-protocol
https://supportforums.cisco.com/thread/178216
Also see: tracking reachability
Comments
Comments are not available for this entry.