What is the difference between the MIB variables 'classByteCount' and 'classByteCountHi'?

book

Article ID: 167299

calendar_today

Updated On:

Products

PacketShaper

Issue/Introduction

What is the difference between the following two MIB variables:

classByteCount

classByteCountHi

Resolution

PacketShaper stores all the MIB variables in a 32-bit counter. With the two MIB variables classByteCount and classByteCountHi, the combination should work as a 64-bit counter. So convert classBytecountHi to binary, convert classByteCount to binary then line them up (32 bits of classByteCount to the right and 32 bits of classByteCountHi to the left), convert it to decimal, and you will get the total ByteCount.

The only thing you need to be careful of is that these values are cummulative, so the total Byte for the day will be the difference between the value you collected today minus the value you collected yesterday.

classByteCount OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The byte count in the class."
::= { classEntry 5 }

classByteCountHi OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The High 32 bits of byte count in the class."
::= { classEntry 6 }