Cisco Command to display link status

ciscocisco-ioscliswitch

I am having a bit of a brain freeze. I would like to know the command that displays the link status when a network cable is unplugged from the switch port. What is the command name?

Best Answer

The easiest way on Cisco switches is:

show int status

This will show you the link status for all ports The 45xx line has also some additional useful commands:

show int link

which will show you the last time the link was active. Also you can use (it is disruptive for the port):

test cable-diagnostics tdr interface xx/yy

and then

show cable-diagnostics tdr

This will give you an approximation of the length of the attached cable