statistics: Calculating Statistics

In Plesk, statistics (disk and traffic usage data, as well as web statistics) are calculated once every 24 hours. If, for some reason, statistics were not updated, or if you cannot wait for the next automatic update, you can generate the statistics manually by using the statistics command line utility.

You can update the data for individual domains or for the whole server. You can generate disk and traffic usage data, web statistics, or both.

Note: This utility is located at /usr/local/psa/admin/sbin and should be run using the plesk sbin command.

Usage
plesk sbin statistics [command][options]
Example

The following command generates disk and traffic usage data and web statistics for the domain example.com:

plesk sbin statistics --calculate-one --domain-name=example.com
Commands
Command Description Example

--calculate-all

Calculate disk and traffic usage data and web statistics for all domains.

To calculate disk and traffic usage data and web statistics for all domains:

plesk sbin statistics --calculate-all

--calculate-list

Calculate disk and traffic usage data and web statistics for listed domains. Requires either the --domain-names option or the --domain-ids option.

To calculate disk and traffic usage data and web statistics for the domains with ID=1 and ID=2:

plesk sbin statistics --calculate-list --domain-ids=1,2

--calculate-one

Calculate disk and traffic usage data and web statistics for a particular domain. Requires the --domain-name option.

To calculate disk and traffic usage data and web statistics for the domain example.net:

plesk sbin statistics --calculate-one --domain-name=example.net

--generate-all-webstat

Generate web statistics pages for all domains.

To generate web statistics pages for all domains:

plesk sbin statistics --generate-all-webstat

--generate-domain-webstat

Generate web statistics pages for a particular domain. Requires the --domain-name option.

To generate web statistics pages for the domain example.net:

plesk sbin statistics --generate-domain-webstat --domain-name=example.net

--process-domains|-p <string>

Calculate all aspects of statistics (including disk and traffic usage data and web statistics) for listed domains. Has a comma-separated list of domain names as a parameter.

To calculate all aspects of statistics for the domains example.net and example.com:

plesk sbin statistics --process-domains=example.net,example.com

--all

Calculate all aspects of statistics (including disk and traffic usage data and web statistics) for all domains

To calculate all aspects of statistics for all domains:

plesk sbin statistics --all

--help|-h

Display the utility help.

To display help for the utility:

plesk bin --help

Options
Option Description Example

--domain-name|-d <string>

Domain name. This option is used with the --calculate-one command or the --generate-domain-webstat command.

To calculate disk and traffic usage data and web statistics for the domain example.net:

plesk sbin statistics --calculate-one --domain-name=example.net

--domain-names|-n <string>

List of domains, comma separated. This option is used with the --calculate-list command.

To calculate disk and traffic usage data and web statistics for the domains example.net and example.com:

plesk sbin statistics --calculate-list --domain-names=example.net,example.com

--domain-ids|-i <string>

List of domains IDs, comma separated. This option is used with the --calculate-list command.

To calculate disk and traffic usage data and web statistics for the domains with ID=1 and ID-2:

plesk sbin statistics --calculate-list --domain-ids=1,2

--no-webstat

Do not generate web-statistics pages.

To calculate all aspects of statistics except for web-statistics pages:

plesk sbin statistics --all --no-webstat

--no-dbstat

Do not generate database hosting statistics. Using this option will display “0” for the database statistics on the disk and traffic usage data page.

To calculate all aspects of statistics except for database hosting statistics:

plesk sbin statistics --all --no-dbstat

 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.