action
To configure a track to implement actions based on changes in the state of the track, use the action command in the track configuration mode. To delete the configuration of action tracking, use the no form of this command.
action {track-up | | track-down} error-disable interface interface-name [ auto-recover]
no action {track-up | | track-down} error-disable interface interface-name [ auto-recover]
Syntax Description
track-up |
Configures action on the track when the track goes up. |
track-down |
Configures action on the track when the track goes down. |
error-disable |
Disables the specified interface when the track state changes. |
interface interface name |
Name of the interface to be disabled. |
auto-recover |
(Optional) Allows the interface that is error-disabled by object tracking to auto-recover. Autorecovery of the interface occurs when the track state changes to the pre-error-disabled state. |
Command Default
No default behavior or values
Command Modes
Track configuration (config track)
Command History
Release | Modification |
---|---|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
To use the action command, you must be in a user group that is associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
Task ID
Task ID | Operation |
---|---|
sysmgr |
read, write |
Examples
This example shows how to configure the action command:
Router# configure
Router(config)# track t1
Router(config-track)# type route reachability route ipv4 192.2.0.1/24
Router(config)# action track-down error-disable interface GigabitEthernet 0/0/0/1 auto-recover