1836451 Members
2389 Online
110100 Solutions
New Discussion

Re: xntpd

 
SOLVED
Go to solution

xntpd

Hello. I am trying to get xntpd working on an L2000 (hp-ux 11.0)

here is my /etc/ntp.conf :

server tock.usnogps.navy.mil
version 2 prefer
broadcast 201.201.2.255 version 2
broadcastclient no
broadcast 201.201.2. version 3

When I execute /sbin/init.d/xntpd start I get an error /sbin/init.d/xntpd[36]: ROUTE_COUNT:: not found.
1 May 12:11:52 ntpdate[20962]: step time server 204.34.198.41 offset -0.000150 sec .

xntpd daemon doesn't appear in ps -eaf.

/etc/rc.config.d/netconf shows this :
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=201.201.2.2
ROUTE_COUNT[0]=1

I can't start this server from sam either. Basically, what I need to do is have the hp boxen sync with the mil. time server and broadcast to the internal network (201.201.2.0/24). Thank you for any insight to my problems.

Matthew Bettinger
Champion Elevators, Inc.
Houston, Texas 77061
713.640.8500
7 REPLIES 7
Michael Steele_2
Honored Contributor

Re: xntpd

Verify your configuration with this procedure which uses NTP within your intranet.

NTP Time server
===========
# cd /etc/
# /sbin/init.d/xntp stop
# vi ntp.conf
server 127.127.1.1 minpoll 3 maxpoll 4 prefer
fudge 127.127.1.1 stratum 10
broadcast ip

# /sbin/init.d/xntp start

NTP Client
======
# cd /etc/rc.config.d
# /sbin/init.d/xntp stop
# vi netdaemons

export NTPDATE_SERVER=node name
export XNTPD=1

# ntpdate
# /sbin/init.d/xntp start

Wait for about 5-8 min, run the follwoing to check the status:
# ntpq -p
chk for output of "reftime" it should not be zero if the servers are in sync.
Support Fatherhood - Stop Family Law

Re: xntpd

Followed directions. ntpq -p displays :


#ntpq -p
ntpq: read: Can't assign requested address

Matthew Bettinger
Champion Elevators,Inc.
Houston, Texas 77061
713.640.8500
Donny Jekels
Respected Contributor
Solution

Re: xntpd

edit your

/etc/rc.config.d/netdaemons file

there is 3 variables


export NTPDATE_SERVER="firewall.server.com"
export XNTPD=1
export XNTPD_ARGS=" -c /etc/ntp.conf"

then in your /etc/ntp.config file

just 3 servers

server ipadress
server ipadress
server ipadress

driftfile /etc/ntp.drift

in the /etc/ntp.drift file

put one line
5.613 0

then start the baby


/sbin/init.d/xntpd start

wowla

ntpq -p

peace
Donny













"Vision, is the art of seeing the invisible"
Michael Steele_2
Honored Contributor

Re: xntpd

Sounds like your port is block. 'XNTPD' uses udp 123, while ntpdate used tcp 123.

Is your NTP server within your local lan or a NIST time server for instance?

check your ports with:

netstat -an

lsof -i udp:123
lsof -i tcp:123
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: xntpd

Sounds like your port is block. 'XNTPD' uses udp 123, while ntpdate used tcp 123.

check your ports with:

netstat -an

lsof -i udp:123
lsof -i tcp:123

Is your NTP server within your local lan or a NIST time server for instance?

Also, check your loopback line in /etc/hosts.

Support Fatherhood - Stop Family Law
Bill Douglass
Esteemed Contributor

Re: xntpd

I would recommend using a different ntp server, preferably a stratum 2 server, and one that is closer to you.

If you don't have one on your network, then look at
http://www.eecis.udel.edu/~mills/ntp/clock2a.html

for a list of public ntp servers and find one that's not too far from you (in terms of latency and hops; traceroute and ping the host to determine this)

Often times your ISP or upstream provider will have n NTP server you can sync to.


Also, simplify your ntp.conf file:

server some.host.com
driftfile /some/ntp.driftfile

should be enough to get you synced up.

Re: xntpd

Thank you all for the help. We got it now. Cost Accounting department is going to like this. Time clocks and labor scheduled to jobs will be all synced up. Thanks a million.

Matthew Bettinger
Champion Elevators, Inc.
Houston, Texas 77061
713.640.8500