Gathering Usage Data for Users

When evaluating the usage of your system there are key elements that may help you determine whether an account is “active” or not. This can be particularly important when setting up deprovisioning policies. While for some schools simply generating a list of graduate email addresses and requesting Reclaim Hosting process terminations on those is enough, for other institutions they may wish to do more regular cleaning of accounts where a user has not logged in for X amount of time, or if there are users with no data in their accounts.

To assist with this Reclaim Hosting has generated a Python script that runs nightly on all servers and gathers the following data points from a variety of locations on the server:

  • Date of last cPanel login
  • cPanel Username
  • Domain Name
  • Email Address
  • Disk Usage for Account
  • Date of Signup

The script generates a CSV file on the server located in the /root/ folder with the naming convention serverhostname_last_logins.csv. To download this file we recommend utilizing an FTP client such as Cyberduck or Filezilla and connecting via SFTP with your WHM root credentials to the server.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

Reclaim Hosting Support Hours
8:00 am - 5:00 pm ET, Monday through Friday
Submit a Ticket
Get a quick and helpful response from the pros.
Need Extra Support?
No problem, we're here to help! Talk to us about Professional Services.