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.exe 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, antivirus and antispam statistics, or all the aspects of statistics at once.

Note: This utility is located in %plesk_dir%admin\bin and should be run using the plesk sbin command.

Usage

plesk sbin statistics.exe [command][options]

Example

The following command generates both disk and traffic usage data for the domain example.com.

plesk sbin statistics.exe --calculate-one --domain-name=example.com

Commands

Command Description Example
--calculate-all Calculate disk and traffic usage data and antivirus and antispam statistics for all domains.

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

plesk sbin statistics.exe --calculate-all

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

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

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

--calculate-one Calculate disk and traffic usage data and antivirus and antispam statistics for a particular domain. Requires the  --domain-name option.

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

plesk sbin statistics.exe --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.exe --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.exe --generate-domain-webstat --domain-name=example.net

--process-domains|-p <string> Calculate disk and traffic usage data and antivirus and antispam statistics for listed domains. Has a comma-separated list of domain names as a parameter.

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

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

--all Calculate disk and traffic usage data and antivirus and antispam statistics for all domains.

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

plesk sbin statistics.exe --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 antivirus and antispam statistics for the domain example.net:

plesk sbin statistics.exe --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 antivirus and antispam statistics for the domains  example.net and  example.com:

plesk sbin statistics.exe --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 antivirus and antispam statistics for the domains with ID=1 and ID-2:

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

--no-dbstat Do not generate database hosting statistics. Using this option will result in displaying “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.exe --all --no-dbstat