TechTorch

Location:HOME > Technology > content

Technology

How to Check the Total Disk Space Usage of All cPanel Accounts in WHM

May 08, 2025Technology1104
How to Check the Total Disk Space Usage of All cPanel Accounts in WHM

How to Check the Total Disk Space Usage of All cPanel Accounts in WHM

As a web hosting provider, it is essential to monitor and manage the disk space usage of all your cPanel accounts hosted on your server. This process can be efficiently managed using Web Host Manager (WHM), which provides comprehensive tools for server administration, including checking the total disk space usage of all cPanel accounts. Here’s a step-by-step guide and alternative methods to achieve this goal.

Steps to Check Total Disk Space Usage in WHM

Log into WHM: Use your root or reseller account credentials to access WHM. Navigate to Account Information: In the left sidebar, find and click on Account Information. List Accounts: Click on List Accounts. This will display a list of all cPanel accounts on your server. View Disk Usage: In the List Accounts section, look for the column labeled Disk Used, which shows the disk space used by each account. Total Disk Usage: To find the total disk space used by all accounts, you can manually add the values from the Disk Used column. Alternatively, you can use the Show Reseller Stats option if applicable, which summarizes account usage. Optional: Using the Command Line: If you prefer using the command line, SSH into your server and run the following command: du -sh /home/ | awk '{sum $1} END {print sum "GB"}' This command will give you a total size of all user directories in the /home directory, where cPanel accounts are typically stored. Check Disk Usage via WHM API: You can also use the WHM API to fetch disk usage statistics programmatically. The API call listaccts can provide detailed information about each account, including disk usage.

WHM Reseller Account Specifics

For WHM resellers, the process is similar, but you may have additional features available depending on your reseller plan. Follow these steps to check the disk usage for your reseller accounts:

Login to your WHM reseller account. Go to the List Accounts section. See the list of all your accounts and their details. Scroll right to view other details related to all cPanel accounts. Here, you will see the total quota allotted to each cPanel account and the total usage of disk space.

Conclusion

By following these steps, you should be able to effectively check the total disk space usage of all cPanel accounts on your WHM server. Monitoring and managing disk space is crucial for ensuring optimal performance and avoiding overutilization, which can affect the user experience and server stability.

Keyword Tags

WHM, cPanel, Disk Usage, Web Host Manager, Web Server Management, Disk Space Monitoring, Server Management Tools