To turn on or off port link-flap detection, use the following command:
configure ports [port_list | all] link-flap-detection [on | off]
To set interval, threshold (maximum number of link down events), and disable time values for link-flap detection, use the following command:
configure ports [port_list | all] link-flap-detection [{interval [interval | indefinitely]} {threshold threshold} {disable-time [disable_time | until-cleared]}]
To reset interval, threshold (maximum number of link down events), and disable time to defaults for link-flap detection, use the following command.
unconfigure ports [port_list | all] link-flap-detection {interval} {threshold} {disable-time}
To add or delete actions (disabling ports, logging events, generating SNMP (Simple Network Management Protocol) traps) to be taken when excessive link-flapping is detected, use the following command:
configure ports [port_list | all] link-flap-detection action [add | delete] [{{disable-port} {log} {trap}} | all-actions]
To manually enable ports that have been disabled due to excessive link flapping, use the following command:
clear ports [port_list | all] link-flap-detection status
To clears the counters related to port link flapping, use the following command.
clear ports [port_list | all] link-flap-detection counters
To display the link-flap detection status for ports, use the following command:
show ports [port_list | all] link-flap-detection [disabled-ports | configuration | counters {refresh | no-refresh}]