Re: Python debugging quirks

2016-12-14 Thread Hal Murray
> That doesn't sound possible to me. Think about how an interpreter works. Do you have a better suggestion? It said: > File "/usr/local/lib/python2.7/site-packages/ntp/util.py", line 273, in > summary > sys.stderr.write("DNS lookup ends.\n") > NameError: global name 'logfp' is not defined

Re: Python debugging quirks

2016-12-14 Thread Eric S. Raymond
Hal Murray : > > I think I figured out one contribution to my confusion. > > When printing out a backtrace, it uses the text from the installed version > but it's actually running the local code. > > [murray@hgm ntpclients]$ ./ntpmon ntp-wifi > Traceback (most recent call last): > File "./ntp

Python debugging quirks

2016-12-14 Thread Hal Murray
I think I figured out one contribution to my confusion. When printing out a backtrace, it uses the text from the installed version but it's actually running the local code. [murray@hgm ntpclients]$ ./ntpmon ntp-wifi Traceback (most recent call last): File "./ntpmon", line 164, in variabl

Re: Monitoring busy/pool servers

2016-12-14 Thread Matthew Selsky
On Wed, Dec 14, 2016 at 11:12:53AM -0800, Hal Murray wrote: > The mru sort options are also reversed in some options. I'm tracking this at https://gitlab.com/NTPsec/ntpsec/issues/208 Thanks, -Matt ___ devel mailing list devel@ntpsec.org http://lists.nt

Re: ntpmon crashes on timeout

2016-12-14 Thread Hal Murray
>> I don't remember any troubles from peers on ntpq. > Wait, are you having peers troubles with npmon? That's new. I don't remember any troubles from peers from ntpq. ntpmon bails without telling me which section it was working on. All it says is: ***Request timed out so I don't know if that's

Re: ntpmon crashes on timeout

2016-12-14 Thread Eric S. Raymond
Eric S. Raymond : > > I'm willing to hack the source code. > > Urgh. I could tell you how to start, but I think the back-end part > is too messy for a Python newbie. I need to change the ControlSession > class class so its progress logging can be redirected. I'll try to > get to that tonight, t

Re: ntpmon: ndp?

2016-12-14 Thread Eric S. Raymond
Hal Murray : > > e...@thyrsus.com said: > >> From pylib/packet.py: > >> return hinted_lookup(port="ndp", hints=0) > >> My /etc/services doesn't have any slots for ndp. Is that a typo? > > > If so, it's copied from the C version. I didn't understand it, so I didn't > > sc

Re: ntpmon crashes on timeout

2016-12-14 Thread Eric S. Raymond
Hal Murray : > > e...@thyrsus.com said: > > That's a puzzler. Naively setting up debugging on a TUI won't work. Do you > > get analogous behavior from ntpq? > > I'm willing to hack the source code. Urgh. I could tell you how to start, but I think the back-end part is too messy for a Python n

Re: Monitoring busy/pool servers

2016-12-14 Thread Hal Murray
Context is mrulist not working on ntpq when there are lots of slots.] > I think you have misdiagnosed this. My testing on your flaky wifi link > suggested strongly that lots of clients isn't the issue - lots of packet > dropouts is the issue. The new ntpq times out when run via localhost. The

Re: ntpmon: ndp?

2016-12-14 Thread Hal Murray
e...@thyrsus.com said: >> From pylib/packet.py: >> return hinted_lookup(port="ndp", hints=0) >> My /etc/services doesn't have any slots for ndp. Is that a typo? > If so, it's copied from the C version. I didn't understand it, so I didn't > screw with it. grep ndp -w do

Re: ntpmon crashes on timeout

2016-12-14 Thread Hal Murray
e...@thyrsus.com said: > That's a puzzler. Naively setting up debugging on a TUI won't work. Do you > get analogous behavior from ntpq? I'm willing to hack the source code. I don't remember any troubles from peers on ntpq. With ntpq, mrulist hangs rather than exiting. -- These are my opin

Re: Is Solaris 11 supported?

2016-12-14 Thread Eric S. Raymond
Sanjeev Gupta : > (while waiting for daylight to provision the Itaniums, I spun up a Solaris > 11 vm) > > It seems to meet the requirements in INSTALL (POSIX C99, etc). waf > configure completes, but build fails. > > Logs in https://gitlab.com/NTPsec/ntpsec/issues/207 (The following diktat cont

Re: Monitoring busy/pool servers

2016-12-14 Thread Eric S. Raymond
Hal Murray : > gha...@gmail.com said: > > Unfortunately, I am unable to play with this new toy, as all my servers that > > run NTPsec are in the pool, and ntpmon just goes to sleep on them (see issue > > #206). > > There are two problems in this area. (at least that I know about. Maybe > more)

Is Solaris 11 supported?

2016-12-14 Thread Sanjeev Gupta
(while waiting for daylight to provision the Itaniums, I spun up a Solaris 11 vm) It seems to meet the requirements in INSTALL (POSIX C99, etc). waf configure completes, but build fails. Logs in https://gitlab.com/NTPsec/ntpsec/issues/207 -- Sanjeev Gupta +65 98551208 http://www.linkedin.

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Gary E. Miller
Yo Eric! On Wed, 14 Dec 2016 16:12:25 -0500 "Eric S. Raymond" wrote: > Gary E. Miller : > > But the data I want to see is dynamic. This is why I run 'watch > > ntpq -p' and 'watch ntpq -c rl [associd]'. ntpq is just not up to > > the task. > > I'm looking at your MR. Let's get specific her

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Eric S. Raymond
Gary E. Miller : > But the data I want to see is dynamic. This is why I run 'watch ntpq -p' > and 'watch ntpq -c rl [associd]'. ntpq is just not up to the task. I'm looking at your MR. Let's get specific here. Is decoded status word the only thing you want that a peers line isn't giving you? I

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Eric S. Raymond
Sanjeev Gupta : > I think of ntpmon like the Linux 'top' utility. It shows, at a snapshot > that might miss something interesting, what the system state is. It does > not really help me with performance tuning, but it tells me that there > _isn't_ a performance issue in the system, as a whole. T

Re: ntpmon: ndp?

2016-12-14 Thread Eric S. Raymond
Hal Murray : > > > ntpq: standard-mode lookup of -D failed, Name or service not known ntpq: ndp > > lookup failed, Servname not supported for ai_socktype > > >From pylib/packet.py: > return hinted_lookup(port="ndp", hints=0) > > My /etc/services doesn't have any slots fo

Re: ntpmon crashes on timeout

2016-12-14 Thread Eric S. Raymond
Hal Murray : > > e...@thyrsus.com said: > > I've never seen it before, but that's pretty much what would be expected if > > openhost() fails. Not much that can be done about it either, except by not > > using a crappy betwork. > > No, it runs long enough to give me a screen so openhost() seems

Re: blizzard of compiler warnings

2016-12-14 Thread Eric S. Raymond
Sanjeev Gupta : > I have a couple of HP Integrity ia64 servers, powered down for five years. > > Suggestions: > >- HP/UX (I think I have a licence) >- Gentoo >- SLES 11 Those'd be interesting - please talk to Gary and JDB about them. I'm not certain HP/UX is still in scope. Depends

Re: blizzard of compiler warnings

2016-12-14 Thread Sanjeev Gupta
On Thu, Dec 15, 2016 at 3:21 AM, Gary E. Miller wrote: > To get a buildbot slave, you need to install python, pip, and > buildbot-worker. Create a user 'worker' in /home/worker and I can > get that worker a login. > I will start tomorrow morning. Is there a public list of what architectures ar

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Gary E. Miller
Yo Eric! On Wed, 14 Dec 2016 11:09:15 -0500 "Eric S. Raymond" wrote: > > How about a cheat sheet for the meanings of the column headers. A > > user who was unfamiliar with the sacred texts might look at the man > > page for ntpmon, but there's no help there. You have to slog > > through the ntpq

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Gary E. Miller
Yo Eric! On Tue, 13 Dec 2016 20:41:18 -0500 "Eric S. Raymond" wrote: > Gary E. Miller : > > > You can already do 'ntpq -c cv [associd]' with...ntpq. Why do you > > > consider it's desirable to duplicate that function in ntpmon? > > > > I don't dedire to duplicate. I want to not break a long

Re: blizzard of compiler warnings

2016-12-14 Thread Gary E. Miller
Yo Sanjeev! On Thu, 15 Dec 2016 01:01:56 +0800 Sanjeev Gupta wrote: > I have a couple of HP Integrity ia64 servers, powered down for five > years. Excellent! > Suggestions: >- SLES 11 If you put SLES on it then we could get double use of the server. We know big-endian is not well tested

Monitoring busy/pool servers

2016-12-14 Thread Hal Murray
Was: Subject: Re: ntpmon now has some keystroke commands gha...@gmail.com said: > Unfortunately, I am unable to play with this new toy, as all my servers that > run NTPsec are in the pool, and ntpmon just goes to sleep on them (see issue > #206). There are two problems in this area. (at least t

ntpmon: ndp?

2016-12-14 Thread Hal Murray
> ntpq: standard-mode lookup of -D failed, Name or service not known ntpq: ndp > lookup failed, Servname not supported for ai_socktype >From pylib/packet.py: return hinted_lookup(port="ndp", hints=0) My /etc/services doesn't have any slots for ndp. Is that a typo? --

Re: ntpmon crashes on timeout

2016-12-14 Thread Hal Murray
e...@thyrsus.com said: > I've never seen it before, but that's pretty much what would be expected if > openhost() fails. Not much that can be done about it either, except by not > using a crappy betwork. No, it runs long enough to give me a screen so openhost() seems to be working. > Transact

Re: blizzard of compiler warnings

2016-12-14 Thread Sanjeev Gupta
On Wed, Dec 14, 2016 at 11:41 PM, Eric S. Raymond wrote: > > Fortunately, we now *are* getting a decent range of buildbot slaves back on > line, including a 32-bit big-endian. That will help. I have a couple of HP Integrity ia64 servers, powered down for five years. Suggestions: - HP/UX (I

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Sanjeev Gupta
On Wed, Dec 14, 2016 at 8:20 AM, Eric S. Raymond wrote: > Instead of trying to make ntpmon do things ntpq does well already, > you should be asking yourself what a TUI program like ntpmon can do > well that a CLI program like ntpq cannot. > For a newbie like me, a TUI (or a GUI) is an easy way t

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Eric S. Raymond
Jason Azze : > On Tue, Dec 13, 2016 at 3:00 PM, Mark Atwood wrote: > > I think we are now bikesheding. Let someone else driveby command aliases > > for ntpmon. > > > > Does anyone else have any ideas for any other data displays to add to it? > > How about a cheat sheet for the meanings of the co

Re: ntpmon crashes on timeout

2016-12-14 Thread Eric S. Raymond
Hal Murray : > I have a crappy wifi-setup. Great for testing things like this. :) > > [murray@hgm ~]$ ntpmon ntp-wifi > ***Request timed out > > [murray@hgm ~]$ I've never seen it before, but that's pretty much what would be expected if openhost() fails. Not much that can be done about it eit

Re: blizzard of compiler warnings

2016-12-14 Thread Eric S. Raymond
Hal Murray : > What sort of buildbot do we have? I thought there was some sort of setup > that ran proposed commits through several machines and didn't actually do the > commit if there was an error. No, we don't have that and never have. I have an FR for a away to test commits through the bui

Re: ntpmon now has some keystroke commands

2016-12-14 Thread Jason Azze
On Tue, Dec 13, 2016 at 3:00 PM, Mark Atwood wrote: > I think we are now bikesheding. Let someone else driveby command aliases > for ntpmon. > > Does anyone else have any ideas for any other data displays to add to it? How about a cheat sheet for the meanings of the column headers. A user who wa

ntpmon comments

2016-12-14 Thread Hal Murray
For some of my examples, it takes a long long long time to get started. If I hadn't been through the DNS stuff before, I'd assume that it was hung. The screen is blank, no hint of progress. I could get off the ground quickly if I could put the "n" on the command line. I can't find the targe

ntpmon crashes on timeout

2016-12-14 Thread Hal Murray
I have a crappy wifi-setup. Great for testing things like this. :) [murray@hgm ~]$ ntpmon ntp-wifi ***Request timed out [murray@hgm ~]$ Is there any simple way I can collect more info? -- These are my opinions. I hate spam. ___ devel mailing l

Re: blizzard of compiler warnings

2016-12-14 Thread Hal Murray
> Right, I think I fixed those. "mips4 port fix", Tue Dec 13 08:53:16 2016 > -0500. That didn't fix the errors I was seeing. I pushed a fix that works for me. I can't test mips or other-endian. What sort of buildbot do we have? I thought there was some sort of setup that ran proposed commit