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.

how to view cPanel client's monthly bandwidth, for the past year.

Discussion in 'General Discussion' started by SoftDux, Jan 16, 2013.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    Does anyone know how to get all the user's on a cPanel's monthly bandwidth, but for the past year, without logging into each cPanel account one by one?

    We need to move a some accounts around a bit and need to see how much bandwidth every account has utilized every month, for the past year
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can utilize:

    "WHM Home » Account Information » View Bandwidth Usage"

    This does not output the yearly bandwidth, but it allows you to easily browse from month to month while listing all cPanel accounts.

    Thank you.
     
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Thanx Michael but that doesn't really help. It's too messy to try and see which account has used x amount of bandwidth for which months. Accounts come and go and it's then easier to just login to each account, on every single server and get the stats manually. But I simply cannot afford todo this on hundreds of servers. I'm looking for a way todo it via the CLI if at all possible?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There are no native tools with cPanel/WHM that allow you to easily view a formatted output of the bandwidth from the command line. However, you could create a custom script utilizing the bandwidth module from our API:

    Bandwidth Module Documentation

    Thank you.
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Thank you Michael.

    I hoped someone have done this before. I'm not a programmer so the developer's resources doesn't help me much.
     
Loading...

Share This Page