Set server time with ntpdate

Server time can be set with ntpdate command on both Linux and FreeBSD.

ntpdate command get date and time from the time server (a server running NTP – Network Time Protocol server) and update the date and time.

Windows by default uses NTP to synchronise time. If you are on Windows 2003 server (not sure about other versions as i use Windows 2003), you can double click time on system tray, then Internet Time to update time from NTP servers.

On Linux/FreeBSD you can do it with following command

freebsd# ntpdate time.nist.gov
2 Nov 08:00:31 ntpdate[86394]: step time server 192.43.244.18 offset 19792.770584 sec
freebsd#

You can set time zone with command

/stand/sysinstall

OR

tzsetup

Cpanel runs an NTP server for updating time on servers using cpanel control panel.

ntpdate rdate.cpanel.net


Posted in FreeBSD. Bookmark the permalink.