[Nut-upsuser] upsd does not strt up

Zoltan Farkas zoly at daxtechnologies.com
Mon May 21 19:15:38 UTC 2007


No luck with upsc:

# ./upsc z2ups at localhost
Error: Unknown error

I have tried to telnet, abd server responds:

# telnet localhost 3493
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

ERR UNKNOWN-COMMAND

ERR UNKNOWN-COMMAND

ERR UNKNOWN-COMMAND
get ups.status
ERR INVALID-ARGUMENT

Now I have no clue about the protocol so ...


--zoly



-----Original Message-----
From: Arjen de Korte [mailto:nut+devel at de-korte.org] 
Sent: Monday, May 21, 2007 2:57 PM
To: Zoltan Farkas
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] upsd does not strt up

Zoltan Farkas wrote:

> Sorry about the truss output,

Thanks a lot for your help in resolving this matter! We really
appreciate this.

> Here is the return for point 1:
>
> # ./upsd -4 -DDD
> Network UPS Tools upsd 2.1.0
> listen_add: added 127.0.0.1:3493
> listen_add: added 192.168.1.8:3493
> setuptcp: try to bind to 127.0.0.1 port 3493
> setuptcp: protocol mismatch [0]
> not listening on 127.0.0.1 port 3493

OK, I more or less expected that. This doesn't seem to be the problem here.

> Point 2, made the changes and here is the result:
>
> # ./upsd -DDD
> Network UPS Tools upsd 2.1.0
> listen_add: added 127.0.0.1:3493
> listen_add: added 192.168.1.8:3493
> setuptcp: try to bind to 127.0.0.1 port 3493
> setuptcp: protocol mismatch [0]
> listening on 127.0.0.1 port 3493
> setuptcp: try to bind to 192.168.1.8 port 3493
> setuptcp: protocol mismatch [0]
> listening on 192.168.1.8 port 3493
> Connected to UPS [z2ups]: z2ups
> Pinging UPS [z2ups]
> UPS [z2ups]: dump is done
> Got PONG from UPS [z2ups]
> Pinging UPS [z2ups]
> Got PONG from UPS [z2ups]
> Pinging UPS [z2ups]
> Got PONG from UPS [z2ups]
> Pinging UPS [z2ups]
> Got PONG from UPS [z2ups]
> Pinging UPS [z2ups]
> Got PONG from UPS [z2ups]

This seems to fix things. Could you try running 'upsc z2ups at localhost'
to verify if you can still communicate through the listening sockets? We
probably already know the answer, so assuming you'll be able to
communicate through these sockets, I proactively committed the change
just a few minutes ago.

Best regards, Arjen




More information about the Nut-upsuser mailing list