Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

switchport counters

Hi

is there a counter that can tell me how much time an interface on a switch has been up ?

if not , is there an alternative way of getting this information (without searching the log)

tahnks

Everyone's tags (2)
4 REPLIES
Silver

Re: switchport counters

I don't think there is a way to find out the interface uptime through a command.

Siddhartha
Bronze

switchport counters

Using any free mib walker, walk the switch with SNMP mib ifLastChange (OID 1.3.6.1.2.1.2.2.1.9)

Then walk for sysUptime (OID 1.3.6.1.2.1.1.3)

Both times will be in milliseconds.  (example 8640000 = 1 day)

Subtract the ifLastChange from sysUptime and you'll have the time each switch port has been up or down.

You can do this with excel, but it takes about 20 minutes to do one switch.  I'd recommend finding someone who can program this and make a script or app that will allow you to do multiple switches in just a couple minutes.

Ven

Ven Taylor
Silver

Re: switchport counters

Thts a nice solution, thanks Ven

Siddhartha
New Member

Re: switchport counters

thanks for the creative solution

I will try it

334
Views
4
Helpful
4
Replies
CreatePlease login to create content