[ntp:questions] ntpdc is not working in ntp-4.2.8p1

Harlan Stenn stenn at ntp.org
Tue Apr 7 01:38:05 UTC 2015


"Kashif Mumtaz Tahir" writes:
> Thanks Harlan,
> How can re-enable mode7 packets ?

You really don't want to do that.  Really.

You want to change your scripts to use ntpq (mode 6) instead of ntpdc
(mode 7).

If that is not possible, then please:

- be *very* careful with your restrict statements
- implement bcp38.info

and see the html/miscopt.html file in the NTP documentation tree.

H
--
> Regards,
> 
> Kashif
> 
> -----Original Message-----
> From: Harlan Stenn [mailto:stenn at ntp.org] 
> Sent: Tuesday, April 07, 2015 4:47 AM
> To: Kashif Mumtaz Tahir
> Cc: questions at lists.ntp.org
> Subject: Re: [ntp:questions] ntpdc is not working in ntp-4.2.8p1
> 
> "Kashif Mumtaz Tahir" writes:
> > Hello Folks,
> > Currently we have NTP server ntp-4.2.4p8 provided by Redhat RPM on RHEL 6.
> 
> > 
> > We want to upgrade it either by RedHat Provided latest RPM package (
> > ntp-4.2.6p5 ) or by installing from source compile ( ntp-4.2.8p1 ).
> 
> I vote for 4.2.8.
> 
> > We tested both upgrade ( on test machine of course) and facing the issue
> > that when we do install ntp-4.2.8p1 package from source , ntpdc commands
> are
> > not working. Below is the output
> > 
> > Code:
> > 
> > # ntpdc 
> > ntpdc> monlist
> > localhost: timed out, nothing received
> > ***Request timed out
> > ntpdc>
> 
> ntpdc (mode 7) packets have been disabled by default.  Better to use
> ntpq (mode6) requests.
> 
> See http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate .
> 
> You *can* re-enable mode7 packets.  I recommend against this.  If you
> must re-enable mode87 packets, please be *very* careful with your
> 'restrict' options.
> 
> H
> --
> 
> > But ntpq -pn and ntpdate etc working fine and clients able to sync time
> with
> > this server.
> > 
> > We are using below guidelines for compiling NTP
> >  <http://www.linuxfromscratch.org/blfs/view/svn/basicnet/ntp.html>
> > http://www.linuxfromscratch.org/blfs...icnet/ntp.html
> > 
> > 
> > below is the ntp.conf file.
> > 
> > Code:
> > 
> > # cat /etc/ntp.conf
> > server 213.X.X.X iburst
> > server 195.X.X.X iburst
> >  
> > driftfile /var/lib/ntp/ntp.drift
> > logfile /opt/ntp/ntp.log
> > restrict default kod nomodify notrap nopeer noquery
> > restrict 127.0.0.1
> > restrict -6 ::1
> >  
> > logconfig =syncevents +peerevents +sysevents +allclock
> > statistics clockstats cryptostats loopstats peerstats sysstats rawstats
> > 
> >  
> > 
> > Any idea why ntpdc is not working ??
> > 
> >  
> > 
> > _______________________________________________
> > questions mailing list
> > questions at lists.ntp.org
> > http://lists.ntp.org/listinfo/questions
> > 
> 
> 


More information about the questions mailing list