How to list active and inactive ports on Cisco switches
show int status will display all ports and their status show int status | inc notconnect will display all ports that are currently inactive show int status | inc connect will display all ports that are currently active
show int link will display all ports and how long they've been inactive show int link | exc 00 will display all ports that are currently inactive and the duration of how long they've been inactive