User guide
Chapter 3 - Additional Features
User Guide 195
NTP
The ntpclient is a Network Time Protocol (RFC-1305) client for UNIX- and Linux-based com-
puters. In order for the BLACK BOX ® Advanced Console Server to work as a NTP client, the
IP address of the NTP server must be set in the file /etc/ntpclient.conf.
The script shell /bin/ntpclient.sh reads the configuration file (/etc/ntpclient.conf) and build
the line command to call /bin/ntpclient program.
Parameters Involved and Passed Values
The file /etc/ntpclient.conf has the value of two parameters:
The data and time will be update from the NPT server according to the parameter options.
The ntpclient program has this syntax:
ntpclient [options]
Options:
NTPSERVER The IP address of the NTP server.
INTERVAL Check time every interval seconds (default 300).
-c count Stop after count time measurements (default 0 means go forever).
-d Print diagnostics.
-h hostname NTP server host (mandatory).
-i interval Check time every interval seconds.
-l Attempt to lock local clock to server using adjtimex(2).
-p port Local NTP client UDP port.
-r Replay analysis code based on stdin.
-s Clock set (if count is not defined this sets count to 1).