×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Command to see if a port was ever up and passed traffic

Answered Question
Apr 25th, 2012
User Badges:

I am looking to find a command or counter to tell me if a cisco switch port on a 4510 was ever up and passed traffic.  I want to shutdown all unused switchports on our access switches.  But before I do that I need to make sure device is just not off or the person is away on vacation.  If I do sh int interface, is there a counter I can reference.

Correct Answer by Daniel Thomas about 5 years 3 months ago

The


"sh interface counters"


should show you if any traffic has passed through a port since the last reboot or since the counters were las cleared on that interface. (Which you can check with "sh interface")


In a previous employment we had to clear the counters across the switch fabric and then check them 3 months later, any ports that had shown no increase were closed.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Daniel Thomas Wed, 04/25/2012 - 05:55
User Badges:

The


"sh interface counters"


should show you if any traffic has passed through a port since the last reboot or since the counters were las cleared on that interface. (Which you can check with "sh interface")


In a previous employment we had to clear the counters across the switch fabric and then check them 3 months later, any ports that had shown no increase were closed.

Dan-Ciprian Cicioiu Wed, 04/25/2012 - 05:58
User Badges:
  • Gold, 750 points or more

Hi ,


show interface x/x  >>>>> Last input and outpuit counters



Dan

glen.grant Wed, 04/25/2012 - 09:05
User Badges:
  • Purple, 4500 points or more

Use "show interface link "  , that tells youi when it was last used.  Only valid on the 4500 series switches... Don't know why they never ported that useful command to their other products...

Dan-Ciprian Cicioiu Wed, 04/25/2012 - 14:23
User Badges:
  • Gold, 750 points or more

Hi Glen,


I didn't knew about this command. Though the output is corelated with the uptime of the switch and gets the same result of "show interface x/x | i Last in"


switch#s ver | i upt

switch uptime is 24 minutes



switch#show interfaces Gi1/1 | i Last

  Last input never, output never, output hang never

  Last clearing of "show interface" counters never



switch#show int link | i 1/1

Gi1/1                     24 minutes 57 secs      00:53:54  Tue Sep 27 2011

switch#



On the show interface you see that Last input is never, because it takes the starting point the time when it got up.


Regards

Dan

Actions

This Discussion