port stats

Mar 27, 2007 2 Replies

I am trying to get the usage or port statistics of a few ports on my cisco



4506. I can go show interface stats and it will show me the stats.

Question is are these the stats since the switch has been up and running the last time it was rebooted or is it something else?



Also is it possible to get mac addresses of these ports after the hosts are disconnected for a while. It does not show any mac addresses on the ports with packets. Is it possible to log the mac addresses once they come online on these ports?


It is not possible to get MAC addresses from ports that are not up (beyond whatever CAM table aging time you have set). The CAM table is populated by the source MAC, and therefore if a station is completely silent (not uncommon in unix world), or the port is not connected, you will not see a mac. As for counters, it is since the last time they were cleared via clear port counters command. Not sure if it clears on reboot......can't recall.

At the bottom of the "show port x/x" you'll see "Last-Time-Cleared" This is how long these counters have been going.

Trendkill is correct - however, if you have CiscoWorks LMS and it's configured to gather that information, you can pull it out of there.

-JC

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required