[Nut-upsuser] Some questions
Arjen de Korte
nut+users at de-korte.org
Fri Feb 8 11:34:27 UTC 2008
> 1. Does upscmd provide only device-specific commands?
Usually, yes. See also 'man 8 upscmd'.
> Or commands
> like shutdown.stayoff are general and good for all ups models?
No.
> When i see output of 'upscmd -l' - is this general commands
> that supported by given device or this is unique commands of this device?
Usually drivers attempt to determine if a command is valid, before
registering it.
> For example, i have APC SmartUPS-750 and it shows me that it have
> command shutdown.stayoff.
> Is this APC command or NUT one?
This is a NUT command.
> 2. Same question about UPS properties shown by upsc
See 'man 8 upsc'.
> 3. Question about ACP SmartUPS-750: what does shutdown.reset command does?
> resets UPS itself? resets power? something else?
> I need to reset device, connected to ups - is this possible?
This command doesn't exist, at least not in the trunk. Could it be you
made a typo?
> I tried to reset computer, connected to UPS with this command
> and it seem to work, but i have another problem here: ups.status
> which i get from upsc(usb driver) always returns me OK.
OK is not a valid status, so upsc should never report this.
> There
> is a timeout, which is big enough and UPS is fast enough to reboot during
> this timeout. So i push command to UPS from script, wait for fail
> status(ups is off or reset)
> and this event never happens. Is it possible to control timeout someway?
> I wanted to use this UPS as a STONITH device, but in this case it does not
> have required 'reset' action.
I'm not sure what you're trying to do here. Please explain. Chances are,
that calling 'upsmon -c fsd' is what you need (if you want to reboot the
UPS).
> 4. I was able to test 2 APC UPSes and found that they are slowly
> responding to commands: one of them needs about 100 seconds to turn off.
> At first i thought that upsc just didn`t work. Other is faster - about
> 25 seconds to respond.
The timers in UPS'es are notoriously unreliable. There may be nothing we
can do about this.
> Do have any information about mean times to respond for such UPSes?
No. This depends on the UPS. You'd have to ask the manufacturer for this.
> Is this UPS itself problem or maybe my USB connection/PC problems?
Most probably, the UPS.
Best regards, Arjen
--
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
More information about the Nut-upsuser
mailing list