Hi folks First posting to this list. I discovered NUT yesterday, and as sysadmin of a wide collection of Unix and windows boxes hanging off APC Smart-UPSs I think it could help me a lot. Using NUT version 2.0.4 running on HP Unix 11.00 - it compiled and installed fine, and all the basic checks in the INSTALL instructions work fine. However, I'd like to bring the information into our main intranet so it can be compiled together, and that involves the perl UPS::Nut interface. I'm having problems making initial connections from the perl interface to upsd on another machine - the debug output looks as follows: DEBUG: Attempting login to upsd. DEBUG: Received OK from upsd. DEBUG: Login error: upsd reports ERR INVALID-ARGUMENT DEBUG: Sending "LISTVARS apcbelsambar" to upsd DEBUG: Received "ERR UNKNOWN-COMMAND" from upsd. DEBUG: Object destroyed. DEBUG: Sent LOGOUT to upsd DEBUG: Received "OK Goodbye" from upsd Looking at the syslog on the machine running upsd, I can see the connection come in and close again, but no errors. Is anyone else making use of the perl UPS::Nut interface and managing to get a connection? Thanks Martin GK
On 8/11/06, Martin GK NUT mailling list <nutmailinglist@orionltd.co.uk> wrote:> I'm having problems making initial connections from the perl interface > to upsd on another machine - the debug output looks as follows: > > DEBUG: Attempting login to upsd. DEBUG: Received OK from upsd. DEBUG: > Login error: upsd reports ERR INVALID-ARGUMENT DEBUG: Sending "LISTVARS > apcbelsambar" to upsd DEBUG: Received "ERR UNKNOWN-COMMAND" from upsd. > DEBUG: Object destroyed. DEBUG: Sent LOGOUT to upsd DEBUG: Received "OK > Goodbye" from upsdApproximately when were the Perl bindings last updated? Prior to the 2.0 series, there was a non-hierarchical list of variables, and I believe some other aspects of the protocol changed as well. Details are in docs/protocol.txt. If there is sufficient interest, we could use SWIG to generate Perl/Python/language-du-jour bindings from libupsclient. -- - Charles Lepple
Apparently Analagous Threads
- Obtaining variable's names from a list of variables
- [klibc:update-dash] dash: eval: Replace with listsetvar with mklocal/setvareq
- lapply to list of variables
- Patch to always install libupsclient-config
- 2.7.4 make install fails: libnutclient.so.0.0.0 missing