Possible to get a domain's total disk usage with a script?

electric

Well-Known Member
Nov 5, 2001
790
11
318
Hello,

Is it possible to get the total disk space and bandwidth usage for any given domain name or cpanel account username?

Any examples on how to do this?

Thanks.
 

electric

Well-Known Member
Nov 5, 2001
790
11
318
Logon to WHM, click on List Accounts, will give you the space for each account.
Click on "show bandwidth usage", and you get the bandwidth :)
lol. I posted this into the "Backend/Scripts" forum for a reason. ;)

Is it possible to get disk space / bw usage stats with a script?
 

electric

Well-Known Member
Nov 5, 2001
790
11
318
1) How does cpanel get the disk and bw usage when displaying the quota to the user when they login to their cpanel? Is this done dynamically, or is it pulling from a file somewhere?

2) How does WHM get the disk and bw usage when listing stats for a reseller under the "Reseller Center-->Show Reseller Stats" area?

Surely there must be a file somewhere with all this information.

Anyone?