1825009 Members
2613 Online
109678 Solutions
New Discussion юеВ

Re: ntp Q

 
Cem Tugrul
Esteemed Contributor

ntp Q

Hi,

i have just set ntp server one of my hp-ux server then started to set ntp clients hp-3600
series WS HP-UX B.10.20 A 9000/785 2010909088 two-user license.They seems Ok means they can
get time from my ntp server but i could not able to set one of it.
manct12 /sbin/init.d > ./xntpd stop
manct12 /sbin/init.d > ./xntpd start
manct12 /sbin/init.d > ps -ef|grep -i xntp
root 7241 5558 0 12:00:27 ttyp1 0:00 grep -i xntp

Problem is xntpd is not working on this WS.
i have checked all necessary files as others
but could not find any difference!!!
Where do i have to look or check on this WS?

Our greatest duty in this life is to help others. And please, if you can't
12 REPLIES 12
Cem Tugrul
Esteemed Contributor

Re: ntp Q

Points will start 5...
:-)
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: ntp Q

Shalom Cem,

See if the ntp.conf file in /etc directory is the same on the working workstation as the one not working.

If not, you may want to copy the good file and then restart xntp.

ntp can be set to auto start as follows:

vi /etc/rc.config.d/netdaemons

XNTPD=1


ntpq -p

# diagnostic test.

Makes sure there are not firewalls between the workstation and the time server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: ntp Q

Before you start xntpd on WS, do as follows and post.

ntpq -p "ntp_server"

If time difference too big to adjust, then xntpd will not work and will exit. To correct this, first set the time manually and then start xntpd. Beaware that setting time backward/forward may upset some apps/progrms-particularly databases.

ntpdate -B "ntp_server"
There is no substitute to HARDWORK
Cem Tugrul
Esteemed Contributor

Re: ntp Q

Steven,
You are really near Ankara(Turkey)
:-))
Well,
i have just copied ntp.conf file from a other WS which is working propely but
nothing changed!!!

Rac,
manct12 /sbin/init.d > ntpq -p baan01
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(1) LOCAL(1) 10 l - 64 377 0.00 0.000 10.01
10.21.3.255 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0


Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: ntp Q

Rac,
manct12 /sbin/init.d > date
Thu Nov 17 12:28:36 EET 2005
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: ntp Q

My ntp server;
baan01:/var/adm/syslog#date
Thu Nov 17 12:32:25 EET 2005
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: ntp Q

Hi Cem,

Nice to be close. Someday I'll visit.

Can the workstation have other kinds of network connectivity with the time server?

ping
telnet

etc

Insure network connectivity and report back.

Thanks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: ntp Q

check syslog.log, does it give any messages about ntp?? like synchronisation lost etc??
There is no substitute to HARDWORK
Cem Tugrul
Esteemed Contributor

Re: ntp Q

manct12 /sbin/init.d > ping baan01
PING baan01: 64 byte packets
64 bytes from 10.21.2.10: icmp_seq=0. time=0. ms
64 bytes from 10.21.2.10: icmp_seq=1. time=0. ms
64 bytes from 10.21.2.10: icmp_seq=2. time=0. ms

----baan01 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
manct12 /sbin/init.d > telnet baan01
Trying...
Connected to baan01.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX baan01 B.11.11 U 9000/800 (tf)

login:

Also no abnormal situation or records in
syslog!!!

still xntpd not working and i tried it from
SAM for to start NTP faced an error!!!!
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: ntp Q

I just remembered,

If the system time is too far off the time server its possible no adjustment will be made at all.

Manually change the workstation to within say half an hour of the time server time, start ntpd service and then run ntpq -p

We should see something.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: ntp Q

In ntp.conf, set driftfile and statsdir directives.

start xntpd manually wiith -l option.

xntpd -l /var/adm/ntp.log

Does it give any clue.

Also are required ports opened??
There is no substitute to HARDWORK
Cem Tugrul
Esteemed Contributor

Re: ntp Q

Steven,
the problem is i could not able to run xntpd
from command or SAM
if it runs than i can solve the problem...

Rac,
after xntpd -l /var/adm/ntp.log

manct12 /var/adm > more ntp.log
17 Nov 14:38:28 xntpd[2999]: logging to file /var/adm/ntp.log
17 Nov 14:38:28 xntpd[2999]: xntpd version=3.5f; Tue Jul 1 16:35:35 PDT 1997 (1)
17 Nov 14:38:28 xntpd[2999]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
17 Nov 14:38:28 xntpd[2999]: precision = 9 usec
17 Nov 14:43:03 xntpd[3263]: logging to file /var/adm/ntp.log
17 Nov 14:43:03 xntpd[3263]: xntpd version=3.5f; Tue Jul 1 16:35:35 PDT 1997 (1)
17 Nov 14:43:03 xntpd[3263]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
17 Nov 14:43:03 xntpd[3263]: precision = 14 usec
17 Nov 14:43:03 xntpd[3263]: bind() fd 4, family 2, port 123, addr 00000000, in_classd=0 flags=1 fails: Address already
in use

Our greatest duty in this life is to help others. And please, if you can't