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

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.