3.4.5.1 Purpose
The traffic.sh utility can be used to manually make corrections in traffic statistics. It allows adding or subtracting the specified amount of traffic for Plesk domains. It is very useful for billing systems.
3.4.5.2 Usage
Usage: traffic.sh command <domain_name> [options]
Available commands and options:
| Command | Parameter | Action |
|---|---|---|
| --add or -a | <domain_name> | registers a specific amount of traffic as being already used by a domain |
| --del or -d | <domain_name> | resets the amount of the traffic registered for this domain to zero |
| --sub or -s | <domain_name> | subtracts a specific amount of traffic from the amount registered for a domain |
| --help or -h | displays help on the utility usage | |
| Option | Parameter | Note |
| -data | <year-month-day> | sets the date the traffic statistics "was changed" |
| -type | <http|ftp|pop3-imap|smtp> | specifies the traffic type |
| -value | <int> | specifies the amount of traffic (K|M|G|T) |
| -direction | <in|out> | specifies the traffic direction |