The traffic.exe utility serves to manage traffic usage statistics for domains. Using this utility, you can perform the following tasks:
Note: The utility is available since Plesk 9.
Location
%plesk_cli%
Usage
traffic.exe <command> [<param>] [
<option 1> <param> [<option 2> <param> … [<option N> <param>]
]
Example
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Registers specified amount of traffic as if being already used by domain. Requires all options. |
To add 100Mb of inbound HTTP traffic to example.com traffic: >traffic.exe -a example.com -date 2008-10-17 -type http -value 100M -direction in
|
|
|
Subtracts specified amount of traffic from the amount registered for domain. Requires all options. |
To subtract 100Mb of inbound HTTP traffic from example.com traffic: >traffic.exe -s example.com -date 2008-10-17 -type http -value 100M -direction in |
|
|
Registers in batch mode specified amount of traffic as if being already used by domain. Requires all options. |
To register traffic on example.com using file >traffic.exe -b example.com < traf.conf
The contents of -date 2008-10-17 -type http -value 10M -direction in
|
|
|
Resets the amount of traffic registered for this domain to zero. Requires |
To reset outbound traffic for example.com: >traffic.exe -d example.com -date 2008-10-17 -type http -direction out |
|
|
Displays help on the utility usage. |
To view the help info on the use of this utility: >traffic.exe --help |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Sets timestamp for the traffic statistics change being performed. |
To add 100Mb of inbound HTTP traffic to example.com traffic: >traffic.exe -a example.com -date 2008-10-17 -type http -value 100M -direction in |
|
|
Specifies the traffic type. |
|
|
|
Specifies the amount of added/subtracted traffic. |
|
|
|
Specifies the traffic direction. |