04-25-2012 05:50 AM - edited 03-07-2019 06:20 AM
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.
Solved! Go to Solution.
04-25-2012 05:55 AM
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.
04-25-2012 05:55 AM
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.
04-25-2012 05:58 AM
Hi ,
show interface x/x >>>>> Last input and outpuit counters
Dan
04-25-2012 09:05 AM
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...
04-25-2012 02:23 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide