Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default CLI script to check account disk usage/quota from SSH

    I would love to see a script added to view the current used disk space out of quota for an account without having to login to WHM.

    For example:

    /scripts/check_quota user1

    user1 domain1.com 30mb used / 100mb quota

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb re: CLI script to check account disk usage/quota from SSH

    Quote Originally Posted by DomineauX View Post
    I would love to see a script added to view the current used disk space out of quota for an account without having to login to WHM.

    For example:

    /scripts/check_quota user1

    user1 domain1.com 30mb used / 100mb quota
    Is it desired to have the proposed script include disk usage only from file system quotas or also from other sources where available, such as MySQL or PostgreSQL if databases are included in disk usage calculations? That is, is it a requirement or a desired attribute that the proposed script report the same disk usage totals and quota information as reported in both cPanel and WHM?

    Should the script always report the same information as cPanel and WHM or should there be any command-line flags or options to alter the normal output (e.g., to report only file system disk quota information)?

    Related menu path in WebHost Manager: WHM: Main >> Server Configuration >> Tweak Settings >> SQL >> Include databases in disk usage calculations

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: CLI script to check account disk usage/quota from SSH

    Just reporting the same value as WHM/cPanel reports (based on if MySQL is counted in quota or not).
    This would allow everyone a very easy way to check a sites disk usage/quota from SSH without having to jump into WHM to determine if a site is near/over quota.

Similar Threads & Tags
Similar threads

  1. Disk Quota Mismatch in WHM (Disk Usage Too high)
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-09-2011, 09:43 AM
  2. 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
  3. check disk usage with PHP, howto?
    By edhi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-21-2005, 01:42 PM
  4. cpanel disk quota different than actual disk usage
    By wadearnold in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2003, 08:54 AM
  5. Check for SSH usage?
    By kcdworks in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-15-2003, 06:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube