[ntp:questions] moving from ntpdc to ntpq

catherine.wei1989 at gmail.com catherine.wei1989 at gmail.com
Fri Feb 27 07:22:50 UTC 2015


On Saturday, February 7, 2015 at 11:25:02 AM UTC+8, Harlan Stenn wrote:
> Pretty much the same thing, except with ":config addpeer ..." and
> ":config unconfig ...".
> 
> I think...
> 
> Please feel free to add examples to:
> 
>  http://support.ntp.org/Support/MonitoringAndControllingNTP
>  http://support.ntp.org/Dev/DeprecatingNtpdate
> 
> H
> Richard writes:
> > What is ntpq's equivelant of -c "addpeer <ntp host>"   and  -c "unconfig
> > <ntp host>"  ?
> > 
> > 
> > I just upgraded from ntp 4.2.6 to 4.2.8 and ntpdc isn't connecting to my
> > local ntpd. According to the ntpdc man page:
> > 
> > "ntpdc is deprecated. Please use ntpq(1) instead - it can do everything
> > ntpdc used to do,"
> > 
> > 
> > In ntpq how do I do the equivalent of ntpdc's -c "addpeer "  or -c
> > "unconfig" commands?
> > 
> > 
> > Here is part of what previously did with ntpdc:
> > 
> > /usr/sbin/ntpc -4 -c "keyid 5" -c "passwd  mypassword" \
> >  -c "addpeer  <ntp server> "  localhost
> > 
> > 
> > _______________________________________________
> > questions mailing list
> > questions at lists.ntp.org
> > http://lists.ntp.org/listinfo/questions
> >

Hi, if I add :config in front of addpeer, it seems that an authentication is required. When I specify the keyid to 0, it said "invalid key identifier".



More information about the questions mailing list