SNMP OID for active interfaces

Unanswered Question
May 11th, 2007
User Badges:


I would like to trace the number of active interfaces on Cat3500/Cat2900 Switches. There is (ifNumber), which returns the number of network interfaces regardless of their current state. As devices are attached to our switches by support staff I would like our network monitoring software (Ipswitch WhatsUp Gold 11) to tell us when a switch is getting "full" to let us react before there is no interface free.

Any ideas?

Regards, L. Schieder

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3.5 (2 ratings)
Joe Clarke Fri, 05/11/2007 - 07:35
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Sounds like you want ifOperStatus ( This object is in the is indexed by ifIndex. ifOperStatus will give you the operational state of each port on your switch. If you record these values over time, you can see which ports are historically not in use, and you can figure out where you may have additional capacity.

You would have to do the summation to figure out the total number of active ports.

Leonardo Schieder Sun, 05/13/2007 - 21:37
User Badges:

I hoped there is an easier way to get the sum of active ports. I don't want to have to write a script to retrieve all ifOperStatus of all interfaces. That would be rather resource intensive. Our network management server is already busy checking about 650 devices...


This Discussion