[ntp:questions] Re: ntpd looses sync, I must always restart: please help

Luca luca at pacor.de
Sat Nov 1 13:05:04 UTC 2003


Andrew Hood <ajhood at fl.net.oz> wrote in message news:<3fa257c5$1 at fl.net.au>...

[ snip ]

> I have a perl script (which I no longer need as I have broadband, except
> if I use pool.ntp.org) which:
> 
> does "ntpdc -n -c pe"
> marks 127.0.0.0/8 hosts and those with stratum < 16 as ok
> makes a list of peers with stratum 16
> 
> opens ntp.conf and quits if this fails
> 
> generates keytype keyid and passwd commands
> generates unconfig commands for the stratum 16 crowd
> reads ntp.conf picking out server lines
> gethostbyname's the servers
> generates an addserver command for each ip where it was not in the OK list
> 
> I run it like this "/etc/ntp.reconfig|ntpdc"
> 
> Andrew

I would like to have the script!
If I let the Jan Ceuleers' script it asks for KeyId am Passwd: I don't
have any of those things neither I know how to handle those ...

Thanks
Luca



More information about the questions mailing list