Score:0

How to get the last time a port was used on a Dell switch?

de flag

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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.