Configuring useragents


You configure this section at the libraries useragents level.

To add a new useragent list, use the following command:

Admin@nodename# create libraries useragents <parameter>

Specify the following parameters:

Parameter

Description

name

Useragent list name.

description

List description.

type

List type:

  • local: local

  • updatable: if the list is updatable, specify URL address for downloading updates (url). List update frequency is set by the schedule parameter in the crontab format.

Crontab format: (minutes: 0-59) (hours: 0-23) (days of the month: 1-31) (month: 1-12) (days of the week: 0-6; where 0 is Sunday). You can set each field as follows:

  • An asterisk (*) denotes the entire range (from the first number to the last).

  • A dash (-) denotes a number range. For example, "5-7" means 5, 6, and 7.

  • Lists: comma-separated numbers or ranges. For example, "1,5,10,11" or "1-11,19-23".

  • An asterisk or range spacing: used for spacing out values in ranges. The increment is given after a slash. Examples: "2-10/2" means "2,4,6,8,10" while "*/2" in the "hours" field means "every two hours".

patterns

Useragent templates. Useragent list is available at: http://www.useragentstring.com/pages/useragentstring.php.

To edit an existing list, use the following command:

Admin@nodename# set libraries useragents <useragent-list-name> <parameter>

Specify the parameters to update. The parameters are listed in the table above. To add new useragents, use the following command:

Admin@nodename# set libraries useragents <useragent-list-name> [ <useragent1> <useragent2> ... ]

To delete an entire list of useragents or an individual useragent from it, use the following commands:

Admin@nodename# delete libraries useragents <useragent-list-name> Admin@nodename# delete libraries useragents <useragent-list-name> patterns [ <useragent> ... ]

To display information about all existing lists, use the following command:

Admin@nodename# show libraries useragents

To display information about an individual list, specify the useragent list name. To display the contents of a useragent list, use the following command:

Admin@nodename# show libraries useragents <useragent-list-name> patterns