What SNMP OID do I use to poll the current and peak rate for a class?

book

Article ID: 167373

calendar_today

Updated On:

Products

PacketShaper

Issue/Introduction

I need the SNMP OIDs (object identifiers) for current and peak rate so I can generate a bandwidth utilization with peaks graph.

Resolution

The OID for Peak Rate is 1.3.6.1.4.1.2334.2.1.4.2.1.27.0 (SNMP-ClassRate).

The OID for Current Rate is 1.3.6.1.4.1.2334.2.1.4.2.1.37.0 (SNMP-ClassCurrentRate).

To find the OID for the class you want to poll, from the PacketShaper command line type:

class show

It will display the class information including the Class id which is used for the SNMP OID value. 

For example:

class show inbound/default

Traffic Class: /Inbound/Default
Partition: /Inbound
Class Flags: built-in inherited policy
Rule Types: match-all

Current guaranteed rate 0   excess rate 0

Matching Rules:
  [1  ]   match-all

Policy Flags: priority nontcp-squeeze nonweb-refuse web-http-refuse
Class id (for SNMP and Measurement Engine): 5

Use the "Class id" for the classes you want to monitor and replace 0 on the above OIDs with the "Class id" number. For example, Inbound/default has a class ID of 5 and Outbound has a class ID of 52, so the OIDs would be:

1.3.6.1.4.1.2334.2.1.4.2.1.27.5 for Inbound Peak Rate

1.3.6.1.4.1.2334.2.1.4.2.1.37.52 for Outbound Current Rate