NetScaler NTP Synchronization

Here is a brief insight on how to configure and troubleshoot NTP synchronization on NetScaler.

To add an NTP server to NetScaler navigate to System -> NTP Servers -> Add.

Open putty and type shell -> date – This confirms the current date and time on the NetScaler device.2-min

Type ntpdate -q ntpservername/ip – This queries the specified NTP server. If NTP communication (UDP 123) is blocked because of firewalls or the NetScaler cannot route to the NTP server you will get a message such as “No server suitable for synchronization found”.

1-min

If you find that your NetScaler is out of sync with one of your configured NTP servers (due to large time offset) run the following commands:

ps axfu | grep ntp (you won’t get any results if you have no servers configured under NTP in NetScaler) 3-min

kill 7943 (this is the process ID found above) 4-min

ntpdate ntpservername/ip5-min

/usr/sbin/ntpd -c /nsconfig/ntp.conf -l /var/log/ntpd.log 6-min

ps axfu | grep ntp (This confirms NTP is back up and running) 7-min

Typing date confirms the date and time is now in sync with the NTP server.8-min

You can refer to the ntpd.log file found under /var/log to view logged NTP information.9-min

10-min


5 Comments

  • M. Heath Garner

    May 22, 2017

    Worked perfectly for me. Thank you

    Reply
  • David Chivers

    September 17, 2018

    Exactly what I needed for both troubleshooting and fixing – thank you!

    Reply
  • Eric

    February 28, 2019

    I still cant stand that ntp isn’t part of the normal running config. You can’t audit against it using MAS etc because its not in the config

    Reply
  • Philipp Bieber

    October 15, 2019

    Instead of using “ps” to find and kill the ntp process, you can issue
    disable ntp sync

    and then to start it again
    enable ntp sync

    Reply
  • Kenny

    March 18, 2022

    If you’re on the VPX using VMWare check the article below. This fixed my issue with time sync and was only found when searching for the exact error message in the NTP logs.

    https://support.citrix.com/article/CTX335923

    Reply

Leave a Reply