NTP in AIX


 
Thread Tools Search this Thread
Operating Systems AIX NTP in AIX
# 1  
Old 07-22-2013
IBM NTP in AIX

Hello Everyone,

I got a question regarding NTP (Network time protocal) in AIX.

AIX is new in our environment. so' we do not have any time server that is useful for new LPARs.
so' i tried using IBM steps to configure NTP server on one of our test/lab LPARs.

I used the below link to make it work. But it did not working.

IBM Configuring NTP on AIX 5L - United States


ON one of AIX LPAR --> to make it as NTP server
Code:
[root@LPAR1]> tail -7 /etc/ntp.conf
#   Broadcast client, no authentication.
#
#broadcastclient
server 127.127.1.0
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
--

[root@LPAR1]/>lssrc -ls xntpd
 Program name:    /usr/sbin/xntpd
 Version:         3
 Leap indicator:  00 (No leap second today.)
 Sys peer:        127.127.1.0
 Sys stratum:     4
 Sys precision:   -18
 Debug/Tracing:   DISABLED
 Root distance:   0.000000
 Root dispersion: 0.010010
 Reference ID:    127.127.1.0
 Reference time:  d597cdae.de0e3000  Mon, Jul 22 2013 11:26:38.867
 Broadcast delay: 0.003906 (sec)
 Auth delay:      0.000122 (sec)
 System flags:    pll monitor filegen
 System uptime:   1576 (sec)
 Clock stability: 0.000000 (sec)
 Clock frequency: 0.000000 (sec)
 Peer: 127.127.1.0
      flags: (configured)(refclock)(sys peer)
      stratum:  3, version: 3
      our mode: client, his mode: server
Subsystem         Group            PID          Status
 xntpd            tcpip            8585346      active

another LPAR (Client)
Code:
[root@LPAR2]/>ntpdate -d 127.127.1.0
22 Jul 11:24:58 ntpdate[9437240]: 3.4y
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
transmit(127.127.1.0)
server 127.127.1.0, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 64.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:  d597cd4d.f8c23000  Mon, Jul 22 2013 11:25:01.971
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 64.00000
offset 0.000000

22 Jul 11:25:02 ntpdate[9437240]: no server suitable for synchronization found
[root@LPAR2]/>

error: " If you get the message, "no server suitable for synchronization found", verify xntpd is running on the server (see above) and that no firewalls are blocking port 123"

i did verified.........

1) xntp is running on LPAR1 (NTP server)
2) date and time also almost same on both LPARs (just a sec/ 2 sec difference)
3) I do not know, how to check whether any firewall is blocking PORT 123

please give me any command to verify that.


client
Code:
[root@LPAR2]/>cat /etc/services | grep -i 123
ntp                             123/tcp         # Network Time Protocol
ntp                             123/udp         # Network Time Protocol

[root@LPAR2]/>netstat -an | grep 123
udp4       0      0  127.0.0.1.123          *.*
udp4       0      0  10.116.237.226.123     *.*
udp4       0      0  *.123                  *.*
[root@LPAR2]/>

server
Code:
[root@LPAR1]/>netstat -an | grep -i 123
udp4       0      0  127.0.0.1.123          *.*
udp4       0      0  10.116.237.226.123     *.*
udp4       0      0  *.123                  *.*
[root@LPAR1]/>netstat -an | grep 123
udp4       0      0  127.0.0.1.123          *.*
udp4       0      0  10.116.237.226.123     *.*
udp4       0      0  *.123                  *.*
[root@LPAR1]/>

Can you please help me resolve/setup NTP. I do not have any existing timeservers here. please let me know if i need to provide any details.


Thanks,

Last edited by System Admin 77; 07-23-2013 at 10:29 AM.. Reason: Use code tags, please...
# 2  
Old 07-23-2013
I would suggest that you have the wrong server IP address coded. Could you use a DNS name instead anyway? I have this coded:-
Code:
broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server my-server1.mydomain.co.uk version 3 prefer
server my-server2.mydomain.co.uk version 3 prefer

The DNS names resolve to the public IP addresses (not internet public, just public within our organisation) rather than the 127...... address you have. I'm not sure that this would route to the other servers. It is odd that you are trying an address 127.127.1.0. Why do you have that? I think the 127....... addresses are considered special and reserved, and probably not routed.

Can you show us the output from:-
Code:
ifconfig -a
netstat -rn | grep default



Thanks, in advance,
Robin
Liverpool/Blackburn
UK
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 07-23-2013
@robin
thanks for your response. And it has been resolved now,

i did a mistake.
on client side, i ran the following command
ntpdate -d 127.127.1.0
instead of using " ntpdate -d ip.address.of.server"

clients and server, in sync now. everything looks good

thanks much!
This User Gave Thanks to System Admin 77 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to update NTP on AIX?

Hi, I would like to update NTP version on AIX LPARs. lslpp -L bos.net.tcp.client Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- bos.net.tcp.client 7.1.3.1 C F ... (3 Replies)
Discussion started by: dio34
3 Replies

2. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

3. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

4. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

5. AIX

NTP servise on AIX

I want to configure NTP service on AIX machine what should i do to configure the NTP service so that all the servers will have the same time. i have 3 AIX machine and i want to synchronize time on all the machine. If i configure NTP server on one machine will it synchronize the time? what do i... (1 Reply)
Discussion started by: pchangba
1 Replies

6. AIX

NTP server with aix & wintel clients

Good morning to all, can someone advise me how to setup aix ntp server with aix & wintel clients? Secondly, I also require to enable the service to autostart on reboot, how do I configure this? Thirdly, how do I configure daily autosync between clients and server? Please advice, thanks.... (0 Replies)
Discussion started by: chongkls77
0 Replies

7. AIX

How to activate the NTP on AIX 5.3

Hello everyone; can any help me to know how to activate the NTP on mein AIX server? The proprosal its thet 3 oder servers are synv on time. Thaks, and regards (3 Replies)
Discussion started by: GEIER
3 Replies

8. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies

9. IP Networking

Ntp

How can I install ntp on AIX (4.3-5.1) ? thnx (1 Reply)
Discussion started by: Gismo
1 Replies

10. UNIX for Advanced & Expert Users

NTP and 11.i .....

Hi there! Does anybody know if HP-UX 11.i supports NTP? If yes, what version on NTP should be used? Thanx (1 Reply)
Discussion started by: penguin-friend
1 Replies
Login or Register to Ask a Question