Checking switch port status

Unanswered Question
Jun 5th, 2007

How can I check switch port status on Cisco Switch 3550. I need to know which port on switch is used and if not how long is unused. Can you give me some advices how to resolve my problem? I am beginner in cisco devices.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
mohammedmahmoud Tue, 06/05/2007 - 03:49


Kindly use "show ip interface brief".

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

szczotkap Tue, 06/05/2007 - 04:05

Is that command shows how long each port haven't been useed?

It's most important for me becouse I need to know which cable can I plug off and connect other. I need something based on SNMP.

mohammedmahmoud Tue, 06/05/2007 - 04:14


If you do "show ip interface x" it will display a Last input value, i think that this is the value you need, i haven't tried it via SNMP, but i am sure that it can be done.


Mohammed Mahmoud.

szczotkap Tue, 06/05/2007 - 04:30

Meaby I need some script to check that value and write it to database? If I check last value it is not usefull for me, I have to write values for e.g. 2 weeks

yjdabear Wed, 06/06/2007 - 06:33

Assuming IOS, you can determine the status of ports by checking ifOperStatus and ifAdminStatus jointly. Of course, if you have Campus Manager of the CiscoWorks LMS bundle, it makes it easier, especially for answering the "how long it's been unused" question.

szczotkap Thu, 06/07/2007 - 23:54

Can someone help me to get that information using ifoperStatus?

How to write this command to get information about which ports are down and sent it to file.

I wrote something like that but it shows me all port's status. how to write it properly?

snmptable -v 1 -c public ifTable |awk '{print$2$8$9}' |more


This Discussion