traffic.exe: Traffic on Domain:
The traffic.exe
utility serves to manage traffic usage statistics for domains. Using this utility, you can perform the following tasks:
- register certain amount of traffic
- subtract certain amount of traffic
- register certain amount of traffic from batch
- reset traffic
Location
%plesk_cli%
Usage
Example
To add 100Mb of inbound HTTP traffic to example.com traffic:
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
|
|
|
Registers specified amount of traffic as if being already used by client/reseller. Requires all options. |
To add 100Mb of inbound HTTP traffic to the traffic of user with the login name jdoe: traffic.exe -a jdoe -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 |
|
|
Subtracts specified amount of traffic from the amount registered for client/reseller. Requires all options. |
To subtract 100Mb of inbound HTTP traffic from the traffic of user with the login name jdoe: traffic.exe -s jdoe -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
|
|
|
Registers in batch mode specified amount of traffic as if being already used by client/reseller. Requires all options. |
To register traffic used by user with the login name jdoe using file traffic.exe -b jdoe < traf.conf
The contents of |
|
|
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 |
|
|
Resets the amount of traffic registered for this client/reseller to zero. Requires |
To reset outbound traffic for user with the login name jdoe: traffic.exe -d jdoe -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. |