threshold count

Use this command to set the port group threshold counts which control the up and down state of the port group tracked object.

Syntax

threshold count {[up count]|[down count]}
no threshold count {[up count]|[down count]}

Parameters

up count Set the tracked object state to UP when the number of UP ports is greater than or equal to this count value. Value can range from 1 to 255. Default is 1. The up count must be greater than the down count.
down count Set the tracked object state to DOWN when the number of UP ports is less than or equal to this count value. Value can range from 0 to 254. Default is 0. The down count must be smaller than the up count.

Defaults

Up count default is 1. Down count default is 0.

Mode

Tracked object configuration mode.

Usage

This command is valid for port group tracked objects only. The tracked object changes to the “up” state if the number of ports “up” is greater than or equal to the up count. The tracked object changes to the “down” state if the number of ports “up” is less than or equal to the down count.

By default, the port group is “up” if there is at least one port up.

The up count must be larger than the down count.

Example

This example changes the threshold counts to port group tracked object ls_group.

System(su)->configure
System(su-config)->track ls_group port-group
System(su-config-track-obj)->threshold count up 3 down 2