Configuring timesync, Location of the configuration file, Structure of the configuration file – HP NonStop G-Series User Manual

Page 27: 1 location of the configuration file, 2 structure of the configuration file

Advertising
background image

HP NonStop Time Synchronization User’s Guide

Page 27 of 81

4. Configuring TimeSync

TimeSync configuration settings are stored by default in the timesync.conf file (Windows,
Linux, and OSS) or the TSCONF file (Guardian) located in the TimeSync program directory.
TimeSync loads this configuration information immediately at startup. To control
TimeSync behavior, you can either alter the settings in this file before starting the process,
or else change settings dynamically using the TimeCom CI.

4.1 Location of the Configuration File

HP recommends that the default location be used for the TimeSync configuration file,
however this location can be changed if you wish to do so. If it is changed, it must then
be referenced using the –conf command line option when running the TimeSync process.
The –conf option overrides the default behavior and causes configuration data to be
loaded from the location you specify. The syntax for the option is:

-conf=<configuration file name>

where <configuration file name> is the fully qualified name of the configuration file that
the process should load. For example, if the configuration file is located at
/etc/timesync/myconf.conf on a Linux system, the command to start the TimeSync process
would be:

./timesync –conf=/etc/timesync/myconf.conf

Note that when a configuration file is specified via the –conf option, the configuration file
located in the TimeSync program directory is not loaded. The process loads only the file
defined via the –conf option; it does not load both the default configuration file and the
specified file.

If the default location of the TimeSync configuration is changed, the TimeCom command
interpreter is affected as well because it also loads the configuration file when it runs. As a
result, in this case TimeCom must be started using the –serverconf command-line option,
or the SERVERCONF command must be the first command entered after starting
TimeCom. For example, if the configuration file is located at /etc/timesync/myconf.conf
on a Linux system, the command to start the TimeCom process would be:

./timecom.exe –serverconf=/etc/timesync/myconf.conf

4.2 Structure of the Configuration File

The configuration file consists of several distinct sections, each with options pertaining to

Advertising
This manual is related to the following products: