Paresh Devalekar wrote:
> Hi All,
>
> The output of command 'kstat' gives values for obytes & rbytes. Are these
> values are in bytes or I have to perform some calculation on it?
>
They're in bytes, but they are 32-bit quantities, so they are subject to
wrap. obytes64 and ibytes64 are much better because they are 64-bit
quantities and don't wrap.
-- Garrett
> I wants to use this values to calculate Network Byte Rate as follows:
> a. (obytes of current polling cycle - obytes of prev. polling cycle)/sec
> b. (rbytes of current polling cycle - rbytes of prev. polling cycle)/sec
> c. Network Byte Rate = (a + b)/(ifspeed of current polling cycle)
>
> Please guide me.
>
> Regards,
> Paresh
>
>
> This message posted from opensolaris.org
> _______________________________________________
> networking-discuss mailing list
> [email protected]
>
_______________________________________________
networking-discuss mailing list
[email protected]