cancel
Showing results for 
Search instead for 
Did you mean: 

How to find when a port was last used

How to find when a port was last used

Micheal_Beeler
New Contributor
Campus switch see lots of changes and need to find a way to show ports that have not been used in a set period of time.
1 ACCEPTED SOLUTION

Another option is to check via CLI.

show port info detail | include Port:|Link\sState:|Link\sUps:|Link\sDowns:
will get you a pretty concise list of all ports with their current state as well as the time of the last link up and link down. See the example output below from one of my lab switches.

X440G2-12t-10G4.1 # show port info detail | inc Port:|Link\sState:|Link\sUps:|Link\sDowns: Port: 1
Link State: Active, 1Gbps, full-duplex
Link Ups: 1 Last: Thu Aug 03 16:59:29 2017
Link Downs: 0 Last: --
Port: 2
Link State: Ready
Link Ups: 0 Last: --
Link Downs: 0 Last: --

View solution in original post

12 REPLIES 12

Mike_Thomas
Extreme Employee
If one were to browse the Mibs or snmp walk directly. Gathering sysuptime for the device, then ifLastChange will tell the last time the port state changed, and if IfOperStatus is down, then the port is not currently in use.
So a sysuptime of 30 days and a iflastchange of 20 days means the state changed 10 days ago.
If a sysuptime is 0. The port was typically never operational since last boot.
This is the hard way to do it.

SchmuFoo
Contributor
When no NetSight is avaible and you are also looking for an great NMS YOU can do this with NeDi: http://www.nedi.ch https://youtu.be/JLU4RwUnjQA Cheers, Jan

davidj_cogliane
Contributor
Look under capacity planning in inventory manager
GTM-P2G8KFN