The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    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. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page