Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2005
    Location
    California
    Posts
    12

    Default Bandwidth from the Command Line

    Just wondering if there is a way to grab the overall monthly bandwidth via the command line. I have a few servers and hate logging into WHM to get the bandwidth totals as its pretty time consuming. If there is an easy way to gather the information you would be helping me out a lot. Thanks in advance.
    Shelby
    878Studios.com

  2. #2
    Member picoleto's Avatar
    Join Date
    Aug 2006
    Posts
    22

    Default

    No clue, but let me know

  3. #3
    Member
    Join Date
    Oct 2005
    Location
    California
    Posts
    12

    Default

    Bump, no one?
    Shelby
    878Studios.com

  4. #4
    Member
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    217

    Default

    the data stored in here /var/cpanel/bandwidth

    i am not aware of script which report the total bandwidth but you can write script to find out
    Affordable Linux Server Managament Solution
    http://www.linuxnetworkcare.com/services/cpanel.php
    [ Phone: 647-722-5303 MSN : sutha@linuxnetworkcare.com AIM : xerophytev skype:ksutha5]

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    62

    Default

    Are you looking for total server BW or just the BW of what Cpanel uses? The command that was already given is the same that WHM shows I believe.

    This however is not accurate for the actual server BW. In many cases it is not even close. I have a server that has logged more than 300GB in a month and WHM tells me that there was only 90GB used.

    So if you have a dedicated in a data center and you want true BW being used Cpanel/WHM is not the place to look for it.

  6. #6
    Member
    Join Date
    Oct 2005
    Location
    California
    Posts
    12

    Default

    I came across the /var/cpanel/bandwidth file but it didn't match anything that I had in WHM. Anyone have some other suggestions? Has to have a small memory footprint as well. I was thinking vnstat, but is there anything else you guys know of?
    Shelby
    878Studios.com

  7. #7
    Member
    Join Date
    Oct 2005
    Location
    California
    Posts
    12

    Default

    bump. Anyone else have any ideas?
    Shelby
    878Studios.com

  8. #8
    Member
    Join Date
    May 2004
    Posts
    116

    Default

    bwreport is a simple perl script that you can use, simpley let it run with a cron...


    # INSTALLATION
    # 1) Copy the script somewhere in your server (for example /root) this way:
    # cd /root (or cd /home/username)
    # wget http://html.conclase.net/cp/scripts/bwreport.perl.txt
    # 2) chown youruser.youruser bwreport.perl.txt
    # 3) chmod 0700 bwreport.perl.txt
    # 4) mv bwreport.perl.txt bwreport.pl
    # 5) Optionally, customize your settings, see below
    # 6) Add the script to your crontab

  9. #9
    Member
    Join Date
    Oct 2005
    Location
    California
    Posts
    12

    Default

    bazzi, that is exactly what I am looking for. Thanks a ton.
    Shelby
    878Studios.com

Similar Threads & Tags
Similar threads

  1. Command line
    By -X-Pain in forum cPGS Discussions
    Replies: 2
    Last Post: 09-13-2009, 11:34 AM
  2. Command Line : CoD4
    By Coldbolt in forum cPGS Discussions
    Replies: 9
    Last Post: 09-26-2008, 06:07 PM
  3. Command Line?
    By fizz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-19-2006, 04:41 AM
  4. 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, 03:24 PM
  5. Replies: 1
    Last Post: 02-18-2004, 10:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube