-----Original Message-----
From: aljuhani [mailto:aljuhani@xxxxxxxxx]
Sent: Friday, July 19, 2002 7:00 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] RaQ4 daily bandwidth report script
I have a script insalled under my /etc/cron.daily for measuring Bandwidth
used every 24 hours. It sends an email every day telling me how much Tx and
Rx bytes have gone over eth0. Below is a report received today. My
question is about the 5th line (Total Mbytes changed : 309) what does it
represnts exactly and what conversions needed to conver it to actual
bandwidth value as 309 MB is not a realistic figure.
_____BANDWIDTH REPORT______
Network Usage Stats 20020720-040646
-----------------------------------
Tx bytes change from last report : 9316927
Rx bytes change from last report : 314854476
Total bytes changed from last report : 324171403
Total Kbytes changed : 316573
Total Mbytes changed : 309
Total Gbytes changed : 0
Daily allowance in Mbytes : 341
----------------------------------------
Surprisingly the third line it _seems_ to be the
arithmetic sum of the Tx ad Rx bytes. And line
5 _seems_ to be the line 3 total divided by
1047576 (a megabyte). What's the mystery? If 309
megabytes is not realistic then either one or
both of the Rx/TX counts is not realistic.
_____________________________________