ADC

Clock synchronization

You can configure your NetScaler appliance to synchronize its local clock with a Network Time Protocol (NTP) server. This ensures that its clock has the same date and time settings as the other servers on your network. NTP uses User Datagram Protocol (UDP) port 123 as its transport layer. Add NTP servers in the NTP configuration file so that the appliance periodically gets updates from these servers.

If you do not have a local NTP server, you can find a list of public, open access, NTP servers at the official NTP site at http://www.ntp.org.

To configure clock synchronization on your appliance, follow these steps:

  1. Log on to the command line and enter the shell command.

  2. At the shell prompt, copy the ntp.conf file from the /etc directory to the /nsconfig directory. If the file already exists in the /nsconfig directory, make sure that you remove the following entries from the ntp.conf file:

    restrict localhost

    restrict 127.0.0.2

    These entries are required only if you want to run the device as a time server. However, this feature is not supported on the NetScaler appliance.

  3. Edit /nsconfig/ntp.conf by typing the IP address for the desired NTP server under the file’s server and restrict entries.

  4. Create a file named rc.netscaler in the /nsconfig directory, if the file does not already exist in the directory.

  5. Edit /nsconfig/rc.netscaler by adding the following entry: /bin/sh /etc/ntpd_ctl full_start.

    This entry starts the ntpd service, and checks the ntp.conf file.

    If you do not want to forcibly sync the time when there is a large difference, you can set the date manually and then start ntpd again. You can check the time difference between the appliance and the time server, by running the following command in the shell:

    ntpdate -q <IP address or domain name of the NTP server>
    <!--NeedCopy-->
    
  6. Reboot the appliance to enable clock synchronization.

    Note: If you want to start time synchronization without restarting the appliance, enter one of the following commands at the shell prompt:

    /usr/sbin/ntpd -c /nsconfig/ntp.conf -g -p /var/run/ntpd.pid -l /var/log/ntpd.log &
    
    or
    
    /bin/sh /etc/ntpd_ctl full_start
    
    <!--NeedCopy-->
    
Clock synchronization