Re: [Nut-upsdev] Changes to upscli_connect (and general discovery)

2011-06-29 Thread Arjen de Korte
Citeren Arnaud Quette : I guess I see the scanning code as a stopgap way to contact "legacy" servers (or what would be legacy after some discovery protocol like mDNS is set up), and either timeouts or non-blocking is just a kludge to make that work a little better. And isn't opening a non-blocki

Re: [Nut-upsdev] Changes to upscli_connect (and general discovery)

2011-06-29 Thread Arjen de Korte
Citeren "Stuart D. Gathman" : That is a very good idea. Use some other port scanning code to narrow down ports to try instead of corrupting upscli_connect with complications not needed for normal operation. This still leaves me with one question - being able to auto-detect the upsd servers

Re: [Nut-upsdev] [nut-commits] svn commit r3104 - branches/apcsmart-dev/drivers

2011-06-29 Thread Arjen de Korte
Citeren Michal Soltys : Those two commands happen only once before the actual loop is in effect, during the initialization stage - in upsdrv_initinfo(). It's the only place where such large delay is used. Note this is only the max possible delay, the read will return as quickly as possible

Re: [Nut-upsdev] Changes to upscli_connect (and general discovery)

2011-06-29 Thread Arjen de Korte
Citeren Charles Lepple : For the purpose of auto-detecting servers I'd propose to resurrect the UDP code and broadcast the servers presence once every 10 seconds or so. Yes, this has its drawbacks too (to make sure the broadcasts reach the potential clients), but this has the advantage to

Re: [Nut-upsdev] Changes to upscli_connect (and general discovery)

2011-06-29 Thread Arjen de Korte
Citeren Charles Lepple : I guess I see the scanning code as a stopgap way to contact "legacy" servers (or what would be legacy after some discovery protocol like mDNS is set up), and either timeouts or non-blocking is just a kludge to make that work a little better. And isn't opening a no

Re: [Nut-upsdev] Changes to upscli_connect

2011-06-29 Thread Arjen de Korte
Citeren Stuart D Gathman : Your test is with localhost - so any non-existent socket would get immediately rejected. The nut scanner has to deal with hosts on the network. If they send an ICMP reject, then there is no need for a timeout. But it is very common for a host to simply "eat" at

Re: [Nut-upsdev] [nut-commits] svn commit r3104 - branches/apcsmart-dev/drivers

2011-06-28 Thread Arjen de Korte
Citeren Michal Soltys : @@ -417,10 +414,12 @@ if (flags & SER_CC) { iset = IGN_CCCHARS; aset = ""; + sec = 6; usec = 0; } if (flags & SER_CS) { iset = IGN_CSCHARS; aset = ""; + sec

Re: [Nut-upsdev] [nut-commits] svn commit r3081 - branches/apcsmart-dev/drivers

2011-06-28 Thread Arjen de Korte
Citeren Michal Soltys : @@ -251,14 +251,14 @@ if (do_lock_port) { errno = 0; ret = 0; -#ifdef HAVE_UU_LOCK + #ifdef HAVE_UU_LOCK ret = uu_lock(xbasename(device_path)); -#elif defined(HAVE_FLOCK) + #elif defined(H

Re: [Nut-upsdev] [nut-commits] svn commit r3071 - branches/apcsmart-dev/drivers

2011-06-28 Thread Arjen de Korte
Citeren Michal Soltys : Log: apcsmart: allow tearing down/setting up serial connection during normal activity; If this is needed at all (why?), I don't think this should be handled at driver level, but this would need to be in the serial.c library. Opening/closing a serial port is indepe

Re: [Nut-upsdev] Changes to upscli_connect

2011-06-28 Thread Arjen de Korte
Citeren Frédéric Bohé : I am currently working on the nut scanner. For detecting available upsd on the network, I rely on upscli_connect. The problem with this function is that it calls a blocking "connect" function. This is a serious problem, not only for the nut-scanner but for basically

Re: [Nut-upsdev] [nut-commits] svn commit r3048 - branches/nut-scanner/tools/nut-scanner

2011-06-21 Thread Arjen de Korte
Citeren Frederic BOHE : Modified: branches/nut-scanner/tools/nut-scanner/scan_snmp.c == --- branches/nut-scanner/tools/nut-scanner/scan_snmp.c Fri Jun 17 08:12:00 2011 (r3047) +++ branches/nut-scanner/tools/nut-scanner

Re: [Nut-upsdev] UPS driver for Online USV-Systeme Zinto A

2011-06-13 Thread Arjen de Korte
Citeren "Christian \"Eddie\" Dost" : The basic differences in protocol are: There is no "I" command, but a "FW?" command to request firmware version. "Q1" and "F" are there. Is the reply format the same? If so, this is trivial to add in the blazer.c global 'command' structure, by appendin

Re: [Nut-upsdev] on Ubuntu Developer Summit (Oneiric), NUT and 2.8.0

2011-06-09 Thread Arjen de Korte
Citeren Charles Lepple : This seems ambitious for a few months. Then again, there's the old quote about the person saying it can't be done shouldn't get in the way of the person who is making it happen :-) Full ack. I'm not sure how much time I can spend on NUT, but especially the Windows p

Re: [Nut-upsdev] UPS driver for Online USV-Systeme Zinto A

2011-06-06 Thread Arjen de Korte
Citeren Arnaud Quette : I have received documentation about the protocol of the Zinto A UPSs by Online USV-Systeme and wrote a driver to monitor and configure my UPS. This is based heavily on the blazer driver, Arjen, the blazer* author, will probably jump on this thread when he has some spare

Re: [Nut-upsdev] Environment Variables

2011-05-27 Thread Arjen de Korte
Citeren "Keven L. Ates" : Rewrite anyone? Just a quick question, do you have a clue what PID files are used for? Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsdev mailing list Nut-upsde

Re: [Nut-upsdev] NUT: new blazer_usb subdriver proposal

2011-05-27 Thread Arjen de Korte
Citeren Arnaud Quette : apart if I've missed something, I've not seen this 'upsilon' patch (well, a reworked version) make its way in the trunk... It's definitly not going to be named upsilon, since that's another name for the underlying protocol (Q1, Megatec, whatever). The subdrivers in

Re: [Nut-upsdev] NUT: new blazer_usb subdriver proposal

2011-05-20 Thread Arjen de Korte
Citeren Aurélien Grenotton : After some investigation, they almost use the krauler-type communication already supported in the blazer_usb driver. However, the UPS won't reply if the language ID is not 0x4095... Therefore, I cloned the krauler_command, adding the language ID and unicode to ASCII

Re: [Nut-upsdev] [nut-commits] svn commit r2972 - trunk/drivers

2011-04-18 Thread Arjen de Korte
Citeren Arnaud Quette : Log: Trim extraneous end-of-line, in buggy HID string tables, which results in upsc breaking the communication pipe (Ubuntu bug #753661) We have 'rtrim' to do this: - return buf; + return rtrim(buf, '\n'); Best regards, Arjen -- Please keep list traffic on the list

Re: [Nut-upsdev] RFC: adding new data "ups.efficiency"

2011-04-16 Thread Arjen de Korte
Citeren Arnaud Quette : we (Eaton) have created a new data to expose efficiency of the UPS (basically it is the ratio of the output current on the input current). I know that at least APC should also provide it on some units, since I've seen evidence in an EPA presentation [1]. So I'd like to c

Re: [Nut-upsdev] Patch to support GE EP series

2011-04-16 Thread Arjen de Korte
Citeren Danilo Godec : If the UPS really only uses the RX and TX pins, the setting of 'cablepower' is irrelevant. Yes, the supplied RS232 cable only has three connected pins. Without setting 'cablepower=none', the driver didn't detect the UPS. Again, the driver itself doesn't care about this

Re: [Nut-upsdev] Patch to support GE EP series

2011-04-14 Thread Arjen de Korte
Citeren Danilo Godec : The UPS has both RS232 and USB connection. To use the RS232 connection, I had to use the 'cablepower = none' as the UPS is using only RX, TX and GND pins. If the UPS really only uses the RX and TX pins, the setting of 'cablepower' is irrelevant. So my 'usp.conf' was

Re: [Nut-upsdev] Static code analysis (was: SSL test regression)

2011-03-31 Thread Arjen de Korte
Citeren Arnaud Quette : just to revive the static code analysis thread... It would be nice if you could expose your ideas and the results of your tests. Also, apart from Splint, have you tested any other systems? From what I see, Splint and Frama-C are probably the most interesting. Well, the

Re: [Nut-upsdev] HP-UX compilation warnings

2011-03-22 Thread Arjen de Korte
Citeren Arnaud Quette : @Arjen: if you want to test some possible fixes, you can commit on the HPUX branch, so that Chetan can test it without the need for buildbot slaves. The problem has already been fixed in the trunk, by removal of the AX_CREATE_STDINT_H macro and relying on either or

[Nut-upsdev] Remove AX_CREATE_STDINT_H

2011-03-18 Thread Arjen de Korte
I doubt we still need to create our own fixed width integer types. We already expect IEEE Std 1003.1-2001 compliance, so the availability of either or is implied. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) __

Re: [Nut-upsdev] [nut-commits] svn commit r2946 - in branches/windows_port/scripts/Windows/Installer: . ImageFiles/Others

2011-03-18 Thread Arjen de Korte
Citeren Frederic BOHE : +REM copy DLL files from system +copy /Y c:\mingw\msys\1.0\bin\msys-1.0.dll .\ImageFiles\Others +copy /Y c:\mingw\msys\1.0\bin\msys-crypto-1.0.0.dll .\ImageFiles\Others +copy /Y c:\mingw\msys\1.0\bin\msys-ssl-1.0.0.dll .\ImageFiles\Others +copy /Y c:\mingw\bin\libgnurx-0.

[Nut-upsdev] HP-UX compilation warnings

2011-03-18 Thread Arjen de Korte
Chetan, Could you check the contents of the include/nut-stdint.h file, to see why there are compilation warnings on the HP-UX buildbot? Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsdev

Re: [Nut-upsdev] Initialising UPS variables from ups.conf

2011-03-07 Thread Arjen de Korte
Citeren John Bayly : I'll look into how that works, thanks. These look like they do exactly the job for specifying the delays for the switched outlets (outlet.1.delay.start). I don't think so. Why don't you just use 'upsrw' to change these values? These are supposed to be R/W values in th

Re: [Nut-upsdev] Initialising UPS variables from ups.conf

2011-03-07 Thread Arjen de Korte
Citeren John Bayly : Are there any plans to allow us to specify UPS variables in ups.conf, eg: We already support this (as a hidden feature) since nut-2.4.0, where it is possible to set default. = value (default to value if UPS doesn't report this) override. = value (same, but over

Re: [Nut-upsdev] [RFC apcsmart V3 08/18] drivers/dstate: add dstate_getflags()

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : The only "problematic" case is #3, and the only way I see currently is through checking the flag - as checking if the variable already exists (which implies being present in .conf file) is not enough. And if I poll such variable either way, user's override is lost -

Re: [Nut-upsdev] [RFC apcsmart V3 18/18] drivers/apcsmart: use STAT_INSTCMD_{HANDLED, FAILED} for sdcmd_*()

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : As we want the user to be able do issue all shutdown methods manually, adjust sdcmd_*() to use STAT_INSTCMD_{HANDLED,FAILED}, so they can be used directly. The above is a good idea. Also minor text corrections, and APC specific command renames. This isn't. You reall

Re: [Nut-upsdev] [RFC apcsmart V3 16/18] drivers/apcsmart.c: don't overuse UPSDELAY

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : This delay is meant for multicharacter commands, besides we always guarantee delay by other means - so do the stuff properly. [...] upsdebugx(1, "On-line - forcing OB temporarily"); ser_send_char(upsfd, 'U'); - usleep(UPSD

Re: [Nut-upsdev] [RFC apcsmart V3 13/18] drivers/apcsmart.c: update in-driver help information

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : Signed-off-by: Michal Soltys --- drivers/apcsmart.c | 93 +++- 1 files changed, 84 insertions(+), 9 deletions(-) Committed with changes. Note that we prefer to have explanations of variables in the manual pages, r

Re: [Nut-upsdev] [RFC apcsmart V3 01/18] drivers/apcsmart.h: comsetics - adjust tabs and add basic modeline

2011-03-06 Thread Arjen de Korte
Citeren Chuck Anderson : On Sat, Mar 05, 2011 at 11:38:18AM +0100, Michal Soltys wrote: Signed-off-by: Michal Soltys --- drivers/apcsmart.h | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) Could you please integrate my minor compat additions with your

Re: [Nut-upsdev] [RFC apcsmart V3 09/18] drivers/apcsmart: add APC_USERCTRL and APC_CRUCIAL

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : APC_USERCTRL - allows permanent overriding of the variable. Meaning even if the ups supports reading and/or writing it, the driver will not allow it (actually it will behave as if the variable wasn't supported at all). This guarantees that the value set by the user in the

Re: [Nut-upsdev] [RFC apcsmart V3 08/18] drivers/dstate: add dstate_getflags()

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : In cases such as immutable flag over readable value, we have to be able to acquire this info at driver level (to e.g. avoid polling, if user defined a variable with 'override' prefix). I'm not sure I like this. While it may seem a waste of effort to poll for a variabl

Re: [Nut-upsdev] [RFC apcsmart V3 00/18] apcsmart driver updates

2011-03-06 Thread Arjen de Korte
Citeren Michal Soltys : Follow up from previous thread: http://www.mail-archive.com/nut-upsdev@lists.alioth.debian.org/msg02331.html Main differences is that V3 is split into many small patches, so the reviewing changes should be much easier. There're also a few additional changes in late

[Nut-upsdev] Fwd: "Ever" Company UPS drivers

2011-02-21 Thread Arjen de Korte
Please use the mailinglist to ask for support. - Forwarded message from siwin...@ever.com.pl - Date: Mon, 21 Feb 2011 13:21:28 +0100 From: Szymon Iwiński Subject: "Ever" Company UPS drivers To: nut-upsdev-ow...@lists.alioth.debian.org Dear NUT Developers, First o

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-02-20 Thread Arjen de Korte
Citeren Michal Soltys : the likely options are: - handle this at driver level - e.g. preserve the immutable flag if already set without setting rw (if necessary, e.g. in apcsmart if ignorelb is set), ignore polling, adjust the code so it works fine, etc. - go back to minbatt/mintime - ad

Re: [Nut-upsdev] [PATCH/RFC v2 0/3] Updates to ACP smart driver

2011-02-18 Thread Arjen de Korte
Citeren Michal Soltys : So, any +/- comments about this approach ? The reason why it is taking me so long to adopt this, is the reason that (although you separated this is three chunks) the changes to the apcsmart driver require to change the LB processing at the same time. I'd prefer to

Re: [Nut-upsdev] Bug/Patch for NUT 2.6.0 ; usbhid-ups (libhid.c)

2011-02-13 Thread Arjen de Korte
Citeren Richard Gerth : I'd be happy to do testing. Just let me know when... In order to get some useful feedback for the -pre versions may I suggest to subscribe people that are willing to test upcoming releases to 'nut-upsannounce'? Currently, there seems to be nothing but spam in the

Re: [Nut-upsdev] Bug/Patch for NUT 2.6.0 ; usbhid-ups (libhid.c)

2011-02-11 Thread Arjen de Korte
Citeren Richard Gerth : Thank you for looking into this. And thank you (to you and the other developers) for NUT -- it's fantastic to have such a great open source UPS application. Would you be willing/able to test future releases of NUT? One thing that we're currently lacking is a group o

Re: [Nut-upsdev] Bug/Patch for NUT 2.6.0 ; usbhid-ups (libhid.c)

2011-02-11 Thread Arjen de Korte
Citeren Richard Gerth : I'm using openSUSE 11.2 My usblibs are thus: bach:/usr/lib # ls -l libusb* lrwxrwxrwx 1 root root19 Jan 11 2010 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4* -rwxr-xr-x 1 root root 17940 Oct 23 2009 libusb-0.1.so.4.4.4* lrwxrwxrwx 1 root root19 Jan 11 2010 libusb-1.

Re: [Nut-upsdev] Getting started generating new MIB-to-NUT mapping for unsupported interface

2011-02-10 Thread Arjen de Korte
Citeren Philip Tait : Would appreciate guidance on getting started generating a MIB-to-NUT mapping (tools, etc): OS: CentOS 5.5 NUT version 2.6.0 Assuming that you're able to successfully build NUT from sources, you're all set. Unlike USB HID PDC subdrivers, we have no automated tools av

Re: [Nut-upsdev] Bug/Patch for NUT 2.6.0 ; usbhid-ups (libhid.c)

2011-02-10 Thread Arjen de Korte
Citeren Richard Gerth : I have a Cyberpower 850AVRLCD ups, and I'm running NUT 2.6.0 (and also tried 2.4.1 and 2.4.3). I suspect that the problem I was having would affect anyone using the usbhid-ups driver, but since I have only the one UPS, I don't know for sure. It doesn't affect anyone.

Re: [Nut-upsdev] SNMP And SuSE

2011-01-30 Thread Arjen de Korte
Citeren Eric Wilde : Fair enough. The germane portion of the config.log file is: configure:7703: checking for init_snmp configure:7703: gcc -o conftest -DINET6 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -fstack-protector-all -Dlinux -I/usr/include/rpm -I/u

Re: [Nut-upsdev] SNMP And SuSE

2011-01-29 Thread Arjen de Korte
Citeren Eric Wilde : Attempting to install the SNMP driver on Enterprise SuSE 10.0. The version of NUT is 2.6.0. [...] The claim that the library doesn't exist is incorrect. The script is not able to find the required libraries, it doesn't say they don't exist. In order to find out what

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-01-27 Thread Arjen de Korte
Citeren Michal Soltys : Then, the other options, that is if: - additional LB checks are to remain in main.c - new apcsmart's "ignorelb" option to have the desired effect - the checks are to use well known battery.{runtime,charge}.low, and be universal at the same time the likely options are

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-01-26 Thread Arjen de Korte
Citeren Michal Soltys : The point is about override.* values, as they are implemented through immutable flag. If I added for example [apctest] override.battery.minutes.low = 0 or override.battery.minutes.low = -1 How is this supposed to work? I can imagine shutting down earl

Re: [Nut-upsdev] [nut-commits] svn commit r2854 - branches/windows_port/common

2011-01-26 Thread Arjen de Korte
Citeren Frederic BOHE : - res = w32_serial_read(fd,buf,buflen,timeout); + res = w32_serial_read((serial_handler_t *)fd,buf,buflen,timeout); Rather than casting away the const (which may not be possible with certain strict compiler flags), it is better to modify the prototype an

Re: [Nut-upsdev] [nut-commits] svn commit r2853 - in branches/windows_port: drivers include

2011-01-26 Thread Arjen de Korte
Citeren Frederic BOHE : Modified: branches/windows_port/include/wincompat.h == --- branches/windows_port/include/wincompat.h Wed Jan 26 15:05:16 2011 (r2852) +++ branches/windows_port/include/wincompat.h Wed Jan 26 15:

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-01-26 Thread Arjen de Korte
Citeren Michal Soltys : I think I found one bug with flag handling though: dstate_setflags() uses = when setting new flags. This has a side effect, that any later setflags() call will override earlier flags (as expected), but that also includes the immutable flag (and that we don't want,

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-01-26 Thread Arjen de Korte
Citeren rasengan rootish : So basically what you have in mind is putting such checks in main.c's loop somewhere after upsdrv_updateinfo() call, and then updating ups.status ? Yes. That would also warrant adding options enabling such functionality (separately for charge and runtime), as n

Re: [Nut-upsdev] [PATCH/RFC 1/1] APC smart driver update and new features.

2011-01-25 Thread Arjen de Korte
Citeren Michal Soltys : Summary: - new driver options: ignorelb, minbatt, mintime, wugrace, advorder - expanded: sdtype - few more types in compatibility table - minor fixes and adjustments First of all, thanks for the effort of working on this driver. The lack of an active developer for AP

Re: [Nut-upsdev] [nut-commits] svn commit r2845 - branches/windows_port/common

2011-01-19 Thread Arjen de Korte
Citeren Frédéric Bohé : Thanks for the clarification. I just tried to compile and I have an error on this line, not sure how to fix that. common.c: In function 'confpath': common.c:443:2: error: initializer element is not constant common.c: In function 'dflt_statepath': common.c:454:2: error: i

Re: [Nut-upsdev] [nut-commits] svn commit r2845 - branches/windows_port/common

2011-01-19 Thread Arjen de Korte
Citeren Frédéric Bohé : + static const char *path = getfullpath(PATH_ETC); getfullpath is allocating memory with xstrdup. Doesn't this line produce a memory leak ? Nope. Whenever you do an assignment to a static variable, this is only done once. So the getfullpath() function will be

Re: [Nut-upsdev] apcsmart.c question

2011-01-18 Thread Arjen de Korte
Citeren Michal Soltys : - in upsdrv_shutdown(), there're loads of printfs - they kinda look like a leftover from older debug times. Shouldn't they be changed into upsdebugx() or upslogx() ? This is pointless. The part of the code is typically run near the end of the system halt script. By

Re: [Nut-upsdev] [nut-commits] svn commit r2839 - branches/windows_port/scripts/Windows

2011-01-18 Thread Arjen de Korte
Citeren Frederic BOHE : --- branches/windows_port/scripts/Windows/wininit.c Tue Jan 18 08:57:03 2011 (r2838) +++ branches/windows_port/scripts/Windows/wininit.c Tue Jan 18 10:05:01 2011 (r2839) @@ -285,8 +285,11 @@ charfn[SMALLBUF]; FILE*nutf; charbuf[SMAL

Re: [Nut-upsdev] Client certificates

2011-01-16 Thread Arjen de Korte
Citeren "Stuart D. Gathman" : One advantage to client certs is that it avoids weak passwords - but the client could protect their private key with a weak password. In case of upsmon, this is a huge waste of effort. The upsmon client has very little (master) or none at all (slave) influence o

Re: [Nut-upsdev] SSL certificate verification with OpenSSL in NUTtrunk

2011-01-13 Thread Arjen de Korte
Citeren emilien...@eaton.com: Reverting commit r2819 seems fixing the problem. Index: /trunk/clients/upsclient.c === --- /trunk/clients/upsclient.c (revision 2724) +++ /trunk/clients/upsclient.c (revision 2819) @@ -387,5 +387,5 @@

Re: [Nut-upsdev] SSL certificate verification with OpenSSL in NUT trunk

2011-01-13 Thread Arjen de Korte
Citeren emilien...@eaton.com: With a clean trunk checkout, compile and installation; and with the following config : upsmon.conf: CERTPATH /usr/local/ups/etc/cert/ CERTVERIFY 1 FORCESSL 1 First off, you're not supposed to use both CERTVERIFY and FORCESSL. FORCESSL is intended to be used in

Re: [Nut-upsdev] Client certificates

2011-01-12 Thread Arjen de Korte
Citeren emilien...@eaton.com: If you think that login/password is enought to authenticate clients, I can remove SSL client authentication parts. It is not a problem. Well, I don't think it adds something, other than another option that we'll get loads of questions about. [...] I'm still

Re: [Nut-upsdev] Client certificates

2011-01-12 Thread Arjen de Korte
Citeren emilien...@eaton.com: I have added client certificate checking mainly to avoid man-in-the-middle attacks or identity usurpation. A man-in-the-middle attack is impossible if you verify the server certificate (CERTVERIFY 1). If someone manages to stage a man-in-the-middle attack by

[Nut-upsdev] Client certificates

2011-01-11 Thread Arjen de Korte
While browsing the sources of the nss-ssl-port sources I noticed that client certificates were added. What is the reason behind this? As far as I can see, using a server certificate and validating it in the upsmon client should provide us with a secure channel. Authorizations for the server

Re: [Nut-upsdev] [nut-commits] svn commit r2809-branches/ssl-nss-port/server

2011-01-11 Thread Arjen de Korte
Citeren emilien...@eaton.com: What about CERTPATH in upsmon.conf ? Don't touch that. This is indeed a path... :-) This is where the upsmon client looks for the CA that signed the certificate presented by the server. So unlike the server, this is indeed a directory that holds the trusted C

Re: [Nut-upsdev] snmp-ups suicides on UPS unreachable

2011-01-10 Thread Arjen de Korte
Citeren Turronix : If snmp-ups is started when the UPS is not reachable (e.g. we have a slow switch that drops the first 30 seconds of communication at computer boot or interface startup) the snmp-ups suicides (or crashes?) and apparently there is nothing to re-launch it automatically so

Re: [Nut-upsdev] [nut-commits] svn commit r2804 - in branches/ssl-nss-port: clients server

2011-01-10 Thread Arjen de Korte
Citeren emilien...@eaton.com: - netssl.c provides some configuration function, one per directive, CERTREQUEST argument parsing is done in conf.c:parse_upsd_conf_args() and the dedicated nss configuration function is called with the corresponding value (IMHO best way because best decoupli

Re: [Nut-upsdev] [nut-commits] svn commit r2809 -branches/ssl-nss-port/server

2011-01-10 Thread Arjen de Korte
Citeren Arnaud Quette : I would also add that documentation will also be in that way: UPGRADING will inform existing users to move to CERTPATH, and user documentation will note CERTFILE as deprecated in favor of CERTPATH. I couldn't disagree more. Using CERTPATH would hint users that they ne

Re: [Nut-upsdev] [nut-commits] svn commit r2809 -branches/ssl-nss-port/server

2011-01-10 Thread Arjen de Korte
Citeren emilien...@eaton.com: The main reason is to homogenize directive names between apps (mainly upsmon which uses CERTPATH and upsd which uses CERTNAME) to set the same property. Why? The use of CERTFILE (OpenSSL only) and CERTPATH/CERTIDENT/CERTREQUEST (NSS only) is completely differ

Re: [Nut-upsdev] [nut-commits] svn commit r2804 - in branches/ssl-nss-port: clients server

2011-01-07 Thread Arjen de Korte
Citeren Emilien Kia : Modified: branches/ssl-nss-port/server/conf.c == --- branches/ssl-nss-port/server/conf.c Wed Jan 5 21:12:03 2011(r2803) +++ branches/ssl-nss-port/server/conf.c Thu Jan 6 10:27:55 2011

Re: [Nut-upsdev] [nut-commits] svn commit r2809 - branches/ssl-nss-port/server

2011-01-07 Thread Arjen de Korte
Citeren Emilien Kia : Author: emilienkia-guest Date: Fri Jan 7 14:44:25 2011 New Revision: 2809 URL: http://trac.networkupstools.org/projects/nut/changeset/2809 Log: Deprecate CERTFILE conf var to the benefit of CERTPATH : homogenize conf directive names. Modified: branches/ssl-nss-port

Re: [Nut-upsdev] iDowell subdriver added

2011-01-06 Thread Arjen de Korte
Citeren Arnaud Quette : I would be grateful if another developer can pick this up. I'll check that Arjen. Never mind, I found the time today to make the necessary changes. I just committed the updated driver. Best regards, Arjen -- Please keep list traffic on the list (off-list replies wi

[Nut-upsdev] iDowell subdriver added

2011-01-04 Thread Arjen de Korte
I've just committed a rough version of the idowell-hid subdriver to the trunk. It is already integrated in the usbhid-ups, but I lack the time to complete the NUT to HID mapping in it. The following message on the nut-upsuser mailinglist should provide enough clues to add most of them:

Re: [Nut-upsdev] Blazer upsdrv_shutdown function

2011-01-01 Thread Arjen de Korte
Citeren Kjell Claesson : Arjen can you enlighten me about the function of the blazer upsdrv_shutdown function. We first stop any pending shutdowns and then send it a shutdown with delay command. I think they are in the wrong order. What makes you think so? This has been like this for qu

Re: [Nut-upsdev] HP T1500 INTL

2010-12-28 Thread Arjen de Korte
Citeren Rafael JesúsAlcántaraPérez : Obviously, it is not supported (at least not today). Do you know if it is "compatible" with yours? See 'man 8 usbhid-ups' for a solution to use the usbhid-ups driver. If the driver detects the UPS, post the output of 'upsc' here, so that we can make thi

Re: [Nut-upsdev] [nut-commits] svn commit r2748 - trunk

2010-12-18 Thread Arjen de Korte
Citeren Arnaud Quette : Author: aquette Date: Fri Dec 17 23:32:20 2010 New Revision: 2748 URL: http://trac.networkupstools.org/projects/nut/changeset/2748 Log: --with-doc=auto now behave depending on AsciiDoc presence Instead of building whatever can be build (depending on the versions foun

Re: [Nut-upsdev] svn commit r2732

2010-12-13 Thread Arjen de Korte
Citeren John Bayly : I've discovered an issue (which may be unique to my UPS) with this commit. init_communication now returns -1, instead of 0 if it failed to read the manufacturer info, this makes sense after all. Not entirely. Previously, the init_communication() function would try to r

Re: [Nut-upsdev] [nut-commits] svn commit r2731 - in trunk/docs: . man website website/scripts

2010-12-12 Thread Arjen de Korte
Citeren Arnaud Quette : Author: aquette Date: Sat Dec 11 12:31:21 2010 New Revision: 2731 URL: http://trac.networkupstools.org/projects/nut/changeset/2731 Log: Complete the list of Subversion ignored files, with AsciiDoc generated contents (no functional changes) Is there a particular reaso

Re: [Nut-upsdev] [nut-commits] svn commit r2726 - in branches/windows_port: common drivers include

2010-12-12 Thread Arjen de Korte
Citeren Arnaud Quette : Date: Thu, 09 Dec 2010 14:01:14 + Subject: svn commit r2726 - in branches/windows_port: common drivers include Author: fbohe-guest Date: Thu Dec 9 14:01:07 2010 New Revision: 2726 URL: http://trac.networkupstools.org/projects/nut/changeset/2726 Log: More work on ser

Re: [Nut-upsdev] libusb usage

2010-12-07 Thread Arjen de Korte
Citeren Charles Lepple : If you are trying to eliminate direct dependencies on the old libusb-0.1 package, there is always the libusb-0.1-compat package. I believe that FreeBSD 8+ has incorporated that into their libusb-1.0 API for the new USB stack, and aside from some changes in our con

Re: [Nut-upsdev] libusb usage

2010-12-07 Thread Arjen de Korte
Citeren Michal Hlavinka : I've been asked to find out some answers from libusb maintainer, so I'm forwarding them: - Why nut uses legacy libusb-0.1 api and not libusb 1.0 ? Well, mostly because at the time we started adding USB support to NUT, libusb-0.1 was all there is. - Is there any

Re: [Nut-upsdev] APC nominal power patch

2010-12-06 Thread Arjen de Korte
Citeren vasos : i just want to share a quick n dirty patch to support nominal power in APC ups's. I was not sure about the name of the nut key and put it to ups.power.nominal Thanks for your patch. The naming scheme of NUT can be found in 'docs/new-names.txt', where you'll find that the co

Re: [Nut-upsdev] AsciiDoc merge

2010-12-05 Thread Arjen de Korte
For everybody wondering about the following warning message in all buildbots (except openSUSE): ../../server/ssl.c:134: warning: passing argument 1 of 'SSL_CTX_new' discards qualifiers from pointer target type This was changed between 0.9.8n and 1.0.0 [29 Mar 2010]: *) Let the TLSv1_met

Re: [Nut-upsdev] [PATCH] upsd tcp_wrappers parsing and logging

2010-12-03 Thread Arjen de Korte
Citeren Stephen Beahm : Parsing bug summary --- working /etc/hosts.allow: upsd127.0.0.1 [::1] : ALLOW broken in /etc/hosts.allow: upsdlocalhost : ALLOW It looks like upsd originally intended to match nut username with system username? No. We want

Re: [Nut-upsdev] [nut-commits] svn commit r2708 - in branches/ssl-nss-port: clients m4 server

2010-12-01 Thread Arjen de Korte
Citeren Arnaud Quette : It also seems, after an update round on my side, that the standardization on nss pushed by Fedora and Suse has not yet made its way. I can't speak for Fedora, but on the latest released version of openSUSE, there is very little progress towards standardization on NS

Re: [Nut-upsdev] [nut-commits] svn commit r2708 - in branches/ssl-nss-port: clients m4 server

2010-11-30 Thread Arjen de Korte
Citeren Arnaud Quette : just to clearly disambiguate the situation: as from now, we'll be abandoning the nss-compat work. After playing with it for a couple of days, I fully agree. Arjen: if you however want to continue testing this approach (which IMHO would be a waste of time), could you p

Re: [Nut-upsdev] [nut-commits] svn commit r2706 - in branches/ssl-nss-port: . clients docs m4 server

2010-11-29 Thread Arjen de Korte
Citeren Arnaud Quette : dnl -- -dnl Check for --with-ssl +dnl Check for with-ssl, and --with-nss or --with-openssl +dnl Only one can be enabled at a time, with a preference for Mozilla NSS +dnl if both are available Having lo

Re: [Nut-upsdev] [nut-commits] svn commit r2708 - in branches/ssl-nss-port: clients m4 server

2010-11-28 Thread Arjen de Korte
Citeren Arjen de Korte : I don't recall that we ever discussed the possibility of adding NSS support by using the 'nss_compat_ossl' OpenSSL compatibility layer. Just to be sure, I added this to see if this is a workable solution. On my (openSUSE) system this seems to build w

Re: [Nut-upsdev] [nut-commits] svn commit r2708 - in branches/ssl-nss-port: clients m4 server

2010-11-28 Thread Arjen de Korte
Citeren Arjen de Korte : Log: Use the 'nss_compat_ossl' compatibility layer to use the Mozilla NSS library instead of OpenSSL (we might want to include native support in the future, but this will at least allow a quick migration for testing purposes) I don't reca

Re: [Nut-upsdev] [nut-commits] svn commit r2705 - branches/windows_port/drivers

2010-11-28 Thread Arjen de Korte
Citeren Frederic BOHE : Author: fbohe-guest Date: Fri Nov 26 14:01:35 2010 New Revision: 2705 URL: http://trac.networkupstools.org/projects/nut/changeset/2705 Log: Add regex library for drivers (by Arnaud Quette) Modified: branches/windows_port/drivers/Makefile.am Why is this needed? The

Re: [Nut-upsdev] udev versions (was Re: [Nut-upsuser] still no nut at reboot)

2010-11-17 Thread Arjen de Korte
Citeren Charles Lepple : The one thing I'm still not sure about is when the kernels changed over - it seems like udev changed to ATTRS first. I'm not sure that is really relevant if we know the udev version that was used for building the kernel. Also, I didn't know that udev had a pkg-con

Re: [Nut-upsdev] udev versions (was Re: [Nut-upsuser] still no nut at reboot)

2010-11-16 Thread Arjen de Korte
Citeren Charles Lepple : Looks like Ubuntu changed to the udev which supports ATTRS sometime between 6.06 and 8.04 (2006 and 2008), but I haven't tracked down when the kernels changed over. If the system supports pkg-config, checking if the version is < 098 should be able to tell if we mu

Re: [Nut-upsdev] AsciiDoc 8.6.3 release redux

2010-11-14 Thread Arjen de Korte
Citeren Arnaud Quette : FYI (mostly Charles and Arjen), a2x version has just been bumped to 8.6.3 in their trunk. So we will be able revert r2686 The released version is now also available, so I upped the required versions for both asciidoc and a2x to 8.6.3. I installed the latest version

Re: [Nut-upsdev] [nut-commits] svn commit r2671 - branches/AsciiDoc/m4

2010-11-07 Thread Arjen de Korte
Citeren Arnaud Quette : Log: Exclude -I. and extra developer warning flags with Net-SNMP support enabled (using them is the responsibility of the NUT developers) Modified: branches/AsciiDoc/m4/nut_check_libnetsnmp.m4 Arjen, was this really intended to target the AsciiDoc branch? Yes.

Re: [Nut-upsdev] segmentation fault in blazer_status().

2010-11-05 Thread Arjen de Korte
Citeren Pawel Sikora : (gdb) up #1 blazer_status (cmd=) at blazer.c:214 (gdb) p val $1 = 0x0 Excellent, I missed checking for a NULL pointer somewhere in the code. Good catch! 199| for (i = 0, val = strtok_r(buf+1, " ", &last); status[i].var; i++, val = strtok_r(NULL, " \r\n",

Re: [Nut-upsdev] [nut-commits] svn commit r2669 - in branches/AsciiDoc: . m4

2010-11-05 Thread Arjen de Korte
Citeren Arnaud Quette : we could consider a slightly more complex approach where older asciidoc detection would only enable the single page html, and pdf version (if dblatex is also present). I'll see what I can do. I already noticed that at least some of the documentation will build with t

Re: [Nut-upsdev] Patch blazer_usb.c from Brian R. Smith REALLY WORKS (UPSilon 2000 replacement)

2010-11-05 Thread Arjen de Korte
Citeren trantore : With my system I don't have any problem. Please, ask for patch acceptance. I belive that is better to fix any bug after several users begin to use NUT. It might be included in future versions, but definitely not before we have evaluated if this doesn't break existing syste

Re: [Nut-upsdev] [nut-commits] svn commit r2669 - in branches/AsciiDoc: . m4

2010-11-05 Thread Arjen de Korte
Citeren Arnaud Quette : indeed, asciidoc / a2x return the version in the form " ", which implies that we have to strip the part. That indeed is the problem. As long as the appname doesn't contain numerals, the AX_COMPARE_VERSION macro will strip it for us (so this isn't a problem), but th

Re: [Nut-upsdev] [nut-commits] svn commit r2669 - in branches/AsciiDoc: . m4

2010-11-05 Thread Arjen de Korte
Citeren Arjen de Korte : Most likely we'll need to strip the initial part of the return from the 'a2x 8.6.1' version string, since that will probably be treated as '2.8.6.1' now (it works when I lower the requirement to 1.0.0). I'll see what I can do... Wel

Re: [Nut-upsdev] [nut-commits] svn commit r2669 - in branches/AsciiDoc: . m4

2010-11-05 Thread Arjen de Korte
Citeren Charles Lepple : Log: Add checking minimum required version for AsciiDoc tools I noticed that somewhere around this commit, the documentation stopped being built by default in BuildBot. Before I go digging too far, should I just add "--with-doc=auto" to the configure parameters,

Re: [Nut-upsdev] [nut-commits] svn commit r2600 - in trunk: . clients common docs m4 server

2010-11-04 Thread Arjen de Korte
Citeren Frédéric Bohé : I am trying to merge the windows_port branch with trunk and I have some issues. I'm not sure if that's a good idea at the moment. If I'm not mistaken, we're about to release a new stable version soon. First, getaddrinfo seems to be supported on Win32 platforms only

  1   2   3   4   5   6   7   >