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?
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
show cable-diagnostics tdr
This will give you an approximation of the length of the attached cable
sho ip int brief will give you a list of all the interfaces and their status as well as protocol. It will not show you if a cable is "unplugged" but will tell you if something is plugged into the interface and sending frames.
sho int Will allow you to see if an interface is UP and whether or not protocol is also UP.
If you are just looking to monitor status changes on the terminal, term monitor