HP Cache Server Appliance Administrator Guide

78
Chapter 10 Configuring Traffic Server
Setting configuration options in batch mode
You can also set configuration options from Traffic Line batch mode.
To set configuration options in batch mode:
1. Telnet into the HP web cache appliance and select Shell Access as described in Overview of Access
Methods‚ on page 7.
2. Enter the following command:
traffic_line -s var -v value
where var is the variable associated with the configuration option (for a list of the variables, refer to
Chapter C‚ Traffic Line Commands )and
value is the value you want to use.
For example, to change the FTP inactivity timeout option to 200 seconds, enter the following command at
the prompt and press Return:
traffic_line -s
proxy.config.ftp.control_connection_timeout -v 200
Configuring Traffic Server using configuration files
As an alternative to using Traffic Manager or Traffic Line, you can change Traffic Server configuration
options by manually editing specific variables in the
records.config file.
The
records.config file is located in Traffic Server’s config directory. To edit the variables, open the
records.config file in Vi and change the variable value.
NOTE After you modify the
records.config file, Traffic Server has to reread the
configuration files. Enter the Traffic Line batch mode command
traffic_line -x.In
some cases, you have to restart Traffic Server for the changes to take effect.