Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by AbeFroman, Feb 18, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    318
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice