Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default 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?

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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

Similar Threads & Tags
Similar threads

  1. Command line
    By -X-Pain in forum cPGS Discussions
    Replies: 2
    Last Post: 09-13-2009, 12:34 PM
  2. Command Line : CoD4
    By Coldbolt in forum cPGS Discussions
    Replies: 9
    Last Post: 09-26-2008, 07:07 PM
  3. Bandwidth from the Command Line
    By 878shelby in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 03-29-2007, 02:14 PM
  4. Command Line?
    By fizz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-19-2006, 05:41 AM
  5. What is the command to restart cpanel via the command line?
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-29-2004, 04:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube