This is an old revision of the document!
Table of Contents
APC Smart-UPS 750 USB
Installare il pacchetto apcupsd. Per visualizzare convenientemente lo stato dell'UPS si può usare l'interfaccia web fornita dal pacchetto apcupsd-cgi oppure l'interfaccia gtk di gapcmon.
Il kernel dovrebbe riconoscere il device appena collegato il cavo USB:
usb 1-2: new low speed USB device using uhci_hcd and address 3 usb 1-2: configuration #1 chosen from 1 choice usbcore: registered new interface driver hiddev hiddev96: USB HID v1.10 Device [American Power Conversion Smart-UPS 750 FW:651.13.I USB FW:7.3] on usb-0000:00:1d.0-2 usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Il device dovrebbe essere /dev/usb/hiddev0
(con un kernel 2.6).
Per debug controllare
cat /proc/bus/usb/devices ls -l /sys/bus/usb/drivers/ ls -la /dev/usb/hiddev0
Se si è installato il pacchetto apcupsd-cgi si può puntare il browser su http://localhost/cgi-bin/apcupsd/multimon.cgi.
Configurazione di apcupsd
Editare opportunamente il file /etc/apcupsd/apcupsd.conf
, si specifica il tipo di cavo, il protocollo e si chiede di fare l'autodetect del device:
UPSCABLE usb UPSTYPE usb DEVICE
Monitoraggio
Se si ha il server web attivo si può puntare il browser su http://localhost/cgi-bin/apcupsd/multimon.cgi.
Altrimenti si esegue il programma gapcmon.
apcaccess e apctest
Con apcaccess è possibile interrogare da riga di comando lo stato dell'UPS, anche remoto:
apcaccess status apcaccess status host:3552
Il programma apctest consente di dialogare con l'UPS e permette di eseguire numerose operazioni, molto utile è impostare la data di installazione delle batterie:
1) Test kill UPS power 2) Perform self-test 3) Read last self-test result 4) Change battery date 5) View battery date 6) View manufacturing date 7) Set alarm behavior 8) Set sensitivity 9) Set low transfer voltage 10) Set high transfer voltage 11) Quit
New battery date MM/DD/YYYY |
---|
08/31/2006 |
11/15/2008 |
09/15/2010 |