Some (long) time ago, I wrote an article how to setup a Mustek PowerMust 1000 USB on Debian Sarge. Since then Etch, Lenny and now Squeeze were released and the machine the UPS was attached to was replaced.
Yesterday I have upgraded this machine from Lenny to Squeeze and of course nut has kicked me in the nuts, telling me it can't connect to the UPS.
When I replaced the old machine, I had to connect the UPS via USB instead of serial, as the new machine has only one serial port and that one is needed for the serial console to my Sun Netra T1. On Lenny, I was using the
megatec_usb driver which seems borked on Squeeze and is superseeded by the
blazer_usb one. So here is my
nut setup on Squeeze:
MODE=standalone UPSD_OPTIONS="" UPSMON_OPTIONS=""
[powermust] driver = blazer_usb port = schrank vendorid = 0665 productid = 5161 desc = "Mustek PowerMust 1000"
port has to be set, but can be any random string.
ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all
RUN_AS_USER nut MONITOR powermust@localhost 1 nut nut master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5
I hope this helps someone ;)