threshold metric
To set a threshold metric, use the threshold metric command in tracking configuration mode. To remove the threshold metric value, use the no form of this command.
threshold metric {up number [down number] | down number [up number]}
no threshold metric
Syntax Description
up |
Specifies the up threshold. The state is up if the scaled metric for that route is less than or equal to the up threshold. |
number |
Threshold value. The range is from 0 to 255. The up threshold default is 254, and the down threshold default is 255. |
down |
Specifies the down threshold. The state is down if the scaled metric for that route is greater than or equal to the down threshold. |
Command Default
No threshold metric is set.
Command Modes
Tracking configuration (config-track)
Command History
Release |
Modification |
---|---|
12.2(15)T |
This command was introduced. |
12.2(25)S |
This command was integrated into Cisco IOS Release 12.2(25)S. |
12.2(28)SB |
This command was integrated into Cisco IOS Release 12.2(28)SB. |
12.2(33)SRA |
This command was integrated into Cisco IOS Release 12.2(33)SRA. |
12.2(33)SXH |
This command was integrated into Cisco IOS Release 12.2(33)SXH. |
Cisco IOS XE Release 2.1 |
This command was integrated into Cisco IOS XE Release 2.1. |
15.3(3)M |
This command was integrated into Cisco IOS Release 15.3(3)M. |
Cisco IOS XE 3.3SE |
This command was implemented in Cisco IOS XE Release 3.3SE. |
Usage Guidelines
This command is available only for IP-route threshold metric objects tracked by the track ip route metric threshold command in global configuration mode.
The default up and down threshold values are 254 and 255, respectively. With these values, IP-route threshold tracking gives the same result as IP-route reachability tracking.
Examples
In the following example, the tracking process is tracking the IP-route threshold metric. The threshold metric is set to 16 for the up threshold and to 20 for the down threshold. The delay period to communicate the changes of a down event of the tracked object to the client process is set to 20 seconds.
Router(config)# track 1 ip route 10.22.0.0/16 metric threshold
Router(config-track)# threshold metric up 16 down 20
Router(config-track)# delay down 20