cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
804
Views
4
Helpful
4
Replies

switchport counters

nir.fisher
Level 1
Level 1

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

4 Replies 4

siddhartham
Level 4
Level 4

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

Siddhartha

Ven Taylor
Level 4
Level 4

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

Thts a nice solution, thanks Ven

Siddhartha

thanks for the creative solution

I will try it

Review Cisco Networking for a $25 gift card