Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    492

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

    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.
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  2. #2
    Member
    Join Date
    Nov 2001
    Posts
    492

    Default

    Quote Originally Posted by SoftDux View Post
    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?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  3. #3
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  4. #4
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    This is a double post?

    See my other reply: http://forums.cpanel.net/showthread....410#post302410

    Maybe this could help a bit?

    I'm sure the bandwidth might be stored in a log file, somewhere, probably in the user's /home/{username}/.cpanel folder?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  5. #5
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    This might be usefull:

    Code:
    more /home/{reseller username}/tmp/cpbandwidth/domain.com-bytes_log
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  6. #6
    Member
    Join Date
    Nov 2001
    Posts
    492

    Default

    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?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-08-2011, 09:49 AM
  2. Script to get disk usage/bandwidth usage?
    By txitcs in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-11-2009, 10:05 AM
  3. cPanel XMLAPI - resellerstats -- Missing total disk usage?
    By electric in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-24-2008, 11:37 AM
  4. Total Disk Usage
    By Amrit in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-21-2008, 01:49 AM
  5. Automatically check resellers total disk/bw usage?
    By electric in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-20-2007, 07:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube