I'm currently planning a big "cleanup" on our network switches (Dell PowerConnect N2048P & N2024), so I want the get the last time a switch port was used.
Since it's Dell, neither the CLI or the UI does provide the informations I need; I'm more likely a Cisco-admin, and I was using a command like this to get the data I needed:
sh int | i proto.*notconnect|proto.*administratively down|Last in.* [4-9]w|Last in.*[0-9][0-9]w|[0-9]y|Last input never, output never, output hang never
What I thought about was looking into show interfaces utilization
, particularly at the Drop Count. Since the last reboot of the switch was >1000 days ago, if an interface didn't drop any packet since this time, I'm guessing it's not in use anymore, so I can disconnect it. Am I right?
Does anyone know how to achieve this? If possible, I want an output looking like this:
GigabitEthernet1/0/2 is down, line protocol is down (notconnect)
Last input 26w3d, output 26w3d, output hang never
GigabitEthernet1/0/3 is down, line protocol is down (notconnect)
Last input 22w1d, output 22w1d, output hang never
GigabitEthernet1/0/4 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/5 is down, line protocol is down (notconnect)
Last input never, output never, output hang never