> Citeren Rene Bartsch <[email protected]>: > >> I used the SVN trunk version from about 20 hours ago. > > Good. At least we know it is something recent... > >> The upper output is from upsc, other commands: >> >> >> The command "upscmd -l su9...@localhost" just returns >> "Instant commands supported on UPS [su900i]:" >> >> >> The command "upcmd -u admin -p <password> su9...@localhost >> test.panel.start" does not do or return >> anything. >> >> >> The command "upsrw -u admin -p <password> su9...@localhost" does not >> return anything. >> >> >> The command "upsrw -s test.panel.start -u admin -p <password> >> su9...@localhost" returns >> "Enter new value for test.panel.start: >> Unexpected response from upsd: ERR VAR-NOT-SUPPORTED" > > All of the above is a waste of effort. Commands and variables that are > not reported as supported by the driver, won't make it past the > server. Please have a look at the man pages for upscmd and upsrw on > how to make them report the list of supported variables. > >> When I send an 'A' to the UPS with a quick-hacked-PHP-Script on the >> serial port (Prolific 2303 USB >> adapter), the UPS correctly starts beeping. >> >> How can I do the driver debug trace? > > Fire up the driver directly (*not* through upsdrvctl) and add -DDDDD > to the startup command line, something along the lines of > > /path/to/apcsmart -a su900i -DDDDD > > This will run until you kill it with Ctrl-C. Please post the first 15 > seconds worth of output here.
Command: "/lib/nut/apcsmart -a su900i -DDDDD" ----------------------------------------- snip ------------------------------------------------- Network UPS Tools - APC Smart protocol driver 2.00 (2.4.1) APC command table version 2.0 debug level is '5' send_to_all: SETINFO ups.mfr "APC" Attempting firmware lookup Attempting to contact older Smart-UPS version Firmware: [7QI] APC - Attempting to find command set send_to_all: SETINFO ups.model "Smart-UPS" send_to_all: SETINFO ups.serial "00016325" send_to_all: SETINFO input.voltage "228.1" update_status send_to_all: SETINFO ups.status "OL" send_to_all: DATAOK Detected Smart-UPS [00016325] on /dev/ttyUSB0 update_status update_info_all: starting update_info_all: done dstate_init: sock /var/lib/nut/apcsmart-su900i open on fd 5 send_to_all: SETINFO driver.version "2.4.1" send_to_all: SETINFO driver.version.internal "2.00" send_to_all: SETINFO driver.name "apcsmart" send_to_all: SETINFO driver.parameter.pollinterval "2" ----------------------------------------- snap ------------------------------------------------- After that it just repeats: update_status update_info_normal: starting update_info_normal: done There's only an additional 'send_to_all: SETINFO ups.status "OB"' and 'send_to_all: SETINFO ups.status "OB"' when I switch of the power supply or press the "Test"-Button, but nothing else. Best regards, Renne _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

