Which command shows a list of last connections on a switch?

Unanswered Question
Jun 17th, 2008
User Badges:

Hi, I have a Cisco switch: WS-C2970G-24T-E and my question is how could we know which ports are available by getting a list of last connection on all ports.

Is there any command we can type in telnet session?

Thank you.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
hadbou Mon, 06/23/2008 - 06:41
User Badges:
  • Bronze, 100 points or more

"show port" is the command which will provide the detailed information about all ports present on the switch.

tdrais Mon, 06/23/2008 - 11:39
User Badges:
  • Blue, 1500 points or more

I think the 2970 is a ios based switch so it does not know the show port. Show interface status will give a similar display.

This will only tell you what the current condition is not if a port has been used at a previous time

You could do logging or collect snmp up/down trap messages but a quick and dirty way may be to just clear the counters on all the interfaces and then go back and see if they have changed after a period of time.

SHOW INTERFACE STATS will be a little easier to read that a full SHOW INTERFACE when looking at these counters.

rohan.jhaveri Mon, 06/23/2008 - 12:05
User Badges:

You can check show interface status command.It gives you more details .


This Discussion