The webstat utility is used to manage Webalizer preferences through CLI. By using this utility, you can perform the following tasks:
Usage
webstat <command> [<domain name>] [
<option_1> [<param>]
[<option_2> [<param>]]
…[<option_N> [<param>]]
]
Example
The following command adds hidden referrer record *example.net/ to Webalizer preferences on the domain example.com:
# ./webstat --add example.com -type hidden -url *example.net/
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Adds a record to Webalizer preferences on a domain. |
To add hidden referrer record *example.net/ to Webalizer preferences on the domain example.com: # ./webstat --add example.com -type hidden -url *example.net/ or # ./webstat --add example.com -type hidden -url *example.net/ |
|
|
Deletes a record from Webalizer preferences on a domain. |
To remove hidden referrer record *example.net/ from Webalizer preferences on domain example.com: # ./webstat --remove example.com -type hidden -url *example.net/ or # ./webstat -r example.com -type hidden -url *example.net/ |
|
|
Displays the list of records in Webalizer preferences on a domain. |
To view the list of existing Webalizer records on the domain example.com: # ./webstat --list example.com or # ./webstat -l example.com |
|
|
Deletes all records from Webalizer preferences on a domain. |
# ./webstat --del-all example.com or # ./webstat -da example.com |
|
|
Displays help on the use of this utility. |
To view the help info on the use of the webstat utility: # ./webstat --help or # ./webstat -h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies a type of a record in Webalizer preferences. Is to be used in conjunction with the
|
To add hidden referrer record *example.net/ to Webalizer preferences on the domain example.com: # ./webstat --add example.com -type hidden -url *example.net/ |
|
|
Specifies an URL or an URL pattern for a Webalizer record. |
|
|
|
Specifies name of a grouped referrer record in Webalizer preferences. |
To add grouped referrer record *example.net/ named example.net to Webalizer preferences on the domain example.com: # ./webstat --add example.com -type group -group example.net -url *example.net/ |