Hi , Basically my intention is to get notification in client when ever the connection between server changes(Ex-lan connectivity OR ntp server itself is down).For that I am doing the following step:
In client: 1.Execute ntpq -c associations 2.Get the data in status field 3.If there is any change in that field ,then collect the 4th bit of that.(Ex:f69a & 1000) 4.If its 1 then reachable else unreachable. But the problem I am facing is: Whenever the connectivity between the server goes down, the status field will not change immediately. My observation was whenever the reach field of ntpq -p command comes to zero then only the status field changes. That's why I was trying to reduce the time gap. If My approach is not correct then please suggest me the other approach. Regards, Biswajit Panigrahi Department : Product Engg. 9/7 Hosur Road,bangalore-560029, INDIA / Office: +918040243000|extn:3418 Mobile: + 91 9916674401 Email: [email protected] Connect with us: www.techmahindra.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Taylor Sent: Wednesday, July 31, 2013 12:46 AM To: [email protected] Subject: Re: [ntp:questions] ntpq -p command query On 30/07/2013 15:24, Biswajit Panigrahi wrote: > Hi, > > I have configured the ntp server and ntp client on two machine. > > Both are communicating properly. I would like to test when the > connectivity between those two goes down, after how much time the > "reach" option in ntpq -p command becomes zero. > > For that I stopped the ntp server and I executed the ntpq -p in > client's console, > > The reach option will still keep on increase to 377 then gradually > decreases to zero. The time duration to come to zero is almost 20 > minute. > > Can we reduce the time gap ? [] > Regards, > > Biswajit Biswajit, Look for a value not equal to 377, rather than 0. Possibly 376 would be the first indication of a problem. 20 minutes (actually 1024 seconds) is the polling interval which will be reached in a stable default configuration, so as others have said, reduce the value of maxpoll for servers which are local to your network (i.e. not public servers). On my own network, I typically have maxpoll set to 5 for local servers, and minpoll set to 10 for Internet servers. -- Cheers, David Web: http://www.satsignal.eu _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================ _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
