Syntax:
ntp <MD5_secret> <interval> <server1> [<server2> <server3>]
ntp -n <interval> <server1> [<server2> [<server3>]] (when working w/o MD5 secret)
Example:
For example, NTP-Server1: 10.100.100.21 & NTP-Server2: 10.100.100.22
- Enter "ntp" command with new NTP server IPs as follows.
[Expert@SPLAT]# ntp -n 300 10.100.100.21 10.100.100.22
[Expert@SPLAT]#
- The NTP configuration can be found in "/etc/sysconfig/ntp".
[Expert@SPLAT]# cat /etc/sysconfig/ntp
SERVER1=10.100.100.21
SERVER2=10.100.100.22
INTERVAL=300
MD5_SECRET=
USE_NTP=true
[Expert@SPLAT]#
- Execute command "chkconfig ntp on" for the new NTP configuration to survive reboot.
[Expert@SPLAT]# chkconfig ntp on
[Expert@SPLAT]#
- Execute command "ntpstat" to verify NTP status.
[Expert@SPLAT]# ntpstat
ntp is running
[Expert@SPLAT]#
[Expert@SPLAT]#
[Expert@SPLAT]# grep ntp /var/log/messages
May 12 12:26:24 SPLAT ntpdate[27378]: step time server 10.100.100.21 offset 5.450443 sec
May 12 12:26:25 SPLAT ntpdate[27397]: adjust time server 10.100.100.21 offset -0.000003 sec
May 12 12:31:25 SPLAT ntpdate[27546]: adjust time server 10.100.100.21 offset 0.017426 sec
[Expert@SPLAT]#
Check Point - SecurePlatform (SPLAT) - NTP Configuration
Reviewed by Admin
on
13:06:00
Rating: