How to synchronize the time of AIX server from the time server

[Application prerequisites] or [Requirements before proceeding]









C:\>nslookup scctime
Server:  sysdev-dc5.sysdev.adroot.bmogc.net
Address:  172.17.112.101

Non-authoritative answer:
Name:    ntp-sprap1.srv.bmogc.net
Address:  10.33.37.19
Aliases:  scctime.bmogc.net


C:\>nslookup bcctime
Server:  sysdev-dc5.sysdev.adroot.bmogc.net
Address:  172.17.112.101

Non-authoritative answer:
Name:    ntp-bprap1.srv.bmogc.net
Address:  10.225.227.57
Aliases:  bcctime.bmogc.net.





root@vsasdv16[/]date
Fri Apr  3 14:59:00 EDT 2009

The SCC time server
root@vsasdv16[/]ntpdate -d 10.33.37.19
 3 Apr 14:59:00 ntpdate[675966]: 3.4y
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
server 10.33.37.19, port 123
stratum 1, precision -18, leap 00, trust 000
refid [GPS], delay 0.02795, dispersion 0.00012
transmitted 4, in filter 4
reference time:      cd80dc7d.ffe65510  Fri, Apr  3 2009 15:05:33.999
originate timestamp: cd80dc81.ab3e0124  Fri, Apr  3 2009 15:05:37.668
transmit timestamp:  cd80daf5.0e6f9000  Fri, Apr  3 2009 14:59:01.056
filter delay:  0.02895  0.02814  0.02824  0.02795
               0.00000  0.00000  0.00000  0.00000
filter offset: 396.6109 396.6112 396.6110 396.6113
               0.000000 0.000000 0.000000 0.000000
delay 0.02795, dispersion 0.00012
offset 396.611321

 3 Apr 14:59:01 ntpdate[675966]: step time server 10.33.37.19 offset 396.611321

The BCC time server
root@vsasdv16[/]ntpdate -d 10.225.227.57
 3 Apr 14:59:14 ntpdate[675976]: 3.4y
transmit(10.225.227.57)
receive(10.225.227.57)
transmit(10.225.227.57)
receive(10.225.227.57)
transmit(10.225.227.57)
receive(10.225.227.57)
transmit(10.225.227.57)
receive(10.225.227.57)
transmit(10.225.227.57)
server 10.225.227.57, port 123
stratum 1, precision -18, leap 00, trust 000
refid [GPS], delay 0.02806, dispersion 0.00023
transmitted 4, in filter 4
reference time:      cd80dc86.157e20a6  Fri, Apr  3 2009 15:05:42.083
originate timestamp: cd80dc8f.0060ddcf  Fri, Apr  3 2009 15:05:51.001
transmit timestamp:  cd80db02.62fb4000  Fri, Apr  3 2009 14:59:11.386
filter delay:  0.03065  0.02806  0.02815  0.02835
               0.00000  0.00000  0.00000  0.00000
filter offset: 396.6123 396.6128 396.6128 396.6134
               0.000000 0.000000 0.000000 0.000000
delay 0.02806, dispersion 0.00023
offset 396.612804

 3 Apr 14:59:14 ntpdate[675976]: step time server 10.225.227.57 offset 396.612804
Notes: If you get the message, "no server suitable for synchronization found", verify that no firewalls are blocking port 123.

root@oraps03[/]ntpdate -d 10.33.37.19
14 Apr 15:11:17 ntpdate[696334]: 3.4y
transmit(10.33.37.19)
transmit(10.33.37.19)
transmit(10.33.37.19)
transmit(10.33.37.19)
transmit(10.33.37.19)
server 10.33.37.19, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 61.00000
transmitted 4, in filter 4
reference time:      00000000.00000000  Thu, Feb  7 2036  1:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  1:28:16.000
transmit timestamp:  cd8f5e58.d2785000  Tue, Apr 14 2009 15:11:20.822
filter delay:  0.00000  0.00000  0.00000  0.00000
               0.00000  0.00000  0.00000  0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
               0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 61.00000
offset 0.000000

14 Apr 15:11:21 ntpdate[696334]: no server suitable for synchronization found

root@vsasdv16[/]date
Fri Apr  3 15:05:44 EDT 2009
root@vsasdv16[/]ntpdate 10.33.37.19
 3 Apr 15:12:34 ntpdate[659710]: step time server 10.33.37.19 offset 396.611147
root@vsasdv16[/]date
Fri Apr  3 15:12:35 EDT 2009
root@vsasdv16[/]ntpdate -d 10.33.37.19
 3 Apr 15:12:53 ntpdate[327852]: 3.4y
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
server 10.33.37.19, port 123
stratum 1, precision -18, leap 00, trust 000
refid [GPS], delay 0.02776, dispersion 0.00165
transmitted 4, in filter 4
reference time:      cd80de35.092bf62a  Fri, Apr  3 2009 15:12:53.035
originate timestamp: cd80de35.20c154cb  Fri, Apr  3 2009 15:12:53.127
transmit timestamp:  cd80de35.1f371000  Fri, Apr  3 2009 15:12:53.121
filter delay:  0.03293  0.03253  0.02776  0.03424
               0.00000  0.00000  0.00000  0.00000
filter offset: 0.002702 0.001972 0.000240 0.001673
               0.000000 0.000000 0.000000 0.000000
delay 0.02776, dispersion 0.00165
offset 0.000240

 3 Apr 15:12:53 ntpdate[327852]: adjust time server 10.33.37.19 offset 0.000240

root@vsasdv16[/]ntpdate -d 10.33.37.19
14 Apr 14:56:08 ntpdate[405604]: 3.4y
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
receive(10.33.37.19)
transmit(10.33.37.19)
server 10.33.37.19, port 123
stratum 1, precision -18, leap 00, trust 000
refid [GPS], delay 0.02644, dispersion 0.00005
transmitted 4, in filter 4
reference time:      cd8f5abb.8d1045ab  Tue, Apr 14 2009 14:55:55.551
originate timestamp: cd8f5ac8.9bb09f91  Tue, Apr 14 2009 14:56:08.608
transmit timestamp:  cd8f5ac8.9ba06000  Tue, Apr 14 2009 14:56:08.607
filter delay:  0.02684  0.02644  0.02655  0.02654
               0.00000  0.00000  0.00000  0.00000
filter offset: -0.00010 -0.00031 -0.00039 -0.00026
               0.000000 0.000000 0.000000 0.000000
delay 0.02644, dispersion 0.00005
offset -0.000315

14 Apr 14:56:08 ntpdate[405604]: adjust time server 10.33.37.19 offset -0.000315
 
root@vsasdv16[/]vi /etc/ntp.conf
#broadcastclient
server 10.33.37.19
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

root@vsasqa16[/etc]startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 106738.
NOTE: If the server runs databases, use the -x flag to prevent the clock from changing in a negative direction. Enter the following:
startsrc -s xntpd -a "-x"

root@vsasdv16[/]vi /etc/rc.tcpip
# Start up Network Time Protocol (NTP) daemon
start /usr/sbin/xntpd "$src_running"


root@vsasdv16[/]lssrc -ls xntpd
 Program name:    /usr/sbin/xntpd
 Version:         3
 Leap indicator:  00 (No leap second today.)
 Sys peer:        10.33.37.19
 Sys stratum:     2
 Sys precision:   -17
 Debug/Tracing:   DISABLED
 Root distance:   0.001389
 Root dispersion: 0.000870
 Reference ID:    10.33.37.19
 Reference time:  cd8f5d51.3a7a7000  Tue, Apr 14 2009 15:06:57.228
 Broadcast delay: 0.003906 (sec)
 Auth delay:      0.000122 (sec)
 System flags:    pll monitor filegen
 System uptime:   1062 (sec)
 Clock stability: 3.500000 (sec)
 Clock frequency: 0.000000 (sec)
 Peer: 10.33.37.19
      flags: (configured)(sys peer)
      stratum:  1, version: 3
      our mode: client, his mode: server
Subsystem         Group            PID          Status
 xntpd               tcpip            188560       active

NOTE: Sys peer should display the IP address or name of your xntp server. This process may take up to 12 minutes.

Post a Comment

Previous Post Next Post