Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-18-2004, 11:15 PM
Banned
 
Join Date: Feb 2002
Posts: 656
AbeFroman can only hope to improve
Is there a way to look up how much bandwidth some on has used from the command line?

Is there a way to look up how much bandwidth some on has used from the command line?

I know you can do it in WHM, but is it stored in a file? Where does WHM read it from?

How does the 80% notifier know what it used that much?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2004, 11:30 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Daily and monthly bandwidth, where WHM gets it from, is stored in the user files at /var/cpanel/bandwidth/[username] and look like this:

01.2004=69908
02.2004=26603
1.24.2004-all=4494
1.24.2004-http=4494
1.27.2004-all=1301
1.27.2004-http=1301
1.29.2004-all=7789
1.29.2004-http=7789
1.31.2004-all=11676
1.31.2004-http=11676
2.10.2004-all=5168
2.10.2004-http=5168
2.12.2004-all=1571
2.12.2004-http=1571
2.14.2004-all=4494
2.14.2004-http=4494
2.17.2004-all=5187
2.17.2004-http=5187
2.3.2004-all=5689
2.3.2004-http=5689
2.7.2004-all=4494
2.7.2004-http=4494

As you can tell, this is one of the sites I don't use yet.

Just look at the file whichever way you prefer.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc