2

I have a Cisco Catalyst 6500 with the 720 Supe card. I would like to get the upload and download utilization of a specific port. I would like it from SNMP, I have looked for the correct MIB but no luck. The port I am trying to see is gi2/23.

11
  • 2
    Your request is a little bit broad; "get the internet upload and download utilization" doesn't have any specific meaning in this context. Do you need the utilization of a specific port(s) on the 6500? Or the throughput across the Sup 720 iteslf? Or something else entirely? From what I can gather, a simple snmpget string executed by a server might serve you well, but I would need to know specifically what you're looking for to get more specific. Commented Dec 18, 2013 at 3:26
  • 1
    Voting to close as too broad/primarily opinion based - "the best" way doesn't mean much as the way your question is phrased and the lack of requirements/information isn't giving us much to go on to help with answering the question (as Brett has already pointed out :-) ). Commented Dec 18, 2013 at 4:00
  • Sorry, What I would like is the utilization of a specific port.
    – Jonathan
    Commented Dec 18, 2013 at 13:31
  • 1
    Thank you for clarifying. As it stands the question might still be too opinion based; "what is the best" can be very subjective. I would suggest taking a look at using SNMPget to pull informaton on an interface. Then asking a specific question if you get stuck. Also you may want to check out Cisco's docs on calculating usage with SNMP. Commented Dec 18, 2013 at 16:14
  • I have updated the question.
    – Jonathan
    Commented Dec 19, 2013 at 16:48

1 Answer 1

2

A quick-and-dirty way to get the current utilization would be to poll these OIDs from OLD-CISCO-INTERFACES-MIB:

  • locIfInBitsSec - 1.3.6.1.4.1.9.2.2.1.1.6.x
  • locIfInPktsSec - 1.3.6.1.4.1.9.2.2.1.1.7.x
  • locIfOutBitsSec - 1.3.6.1.4.1.9.2.2.1.1.8.x
  • locIfOutPktsSec - 1.3.6.1.4.1.9.2.2.1.1.9.x

These give you the same numbers as the "input rate" and "output rate" lines from the output of show interface. Just replace the "x" with the interface index for Gig2/23 shown in show snmp mib ifmib ifindex. The MIB states that it's the "five minute exponentially-decayed moving average", but the actual rate matches whatever you've configured with load-interval on the interface (which defaults to 5 minutes).

These OIDs will give you a pretty good point-in-time measurement of the interface's utilization without requiring an external system to keep track of deltas between measurements. However, since it's an exponentially-decayed moving average, it may not be as accurate.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.