Добрый день. Подскажите, как можно управлять и забирать информацию с APC Back-ups RS c usb интерфейсом. В дебиане для COM-управления нашел, а для usb нет.
http://nix.ru/autocatalog/apc/2441822_24418.html
Usb UPS
Модератор: Bizdelnick
-
N-gusakov
- Сообщения: 302
- Статус: Ubuntuфил
- ОС: Ubuntu 7.10
Usb UPS
Apple Power book G4 (Mac OS X 10.4.11)
www.cCube.ru
www.cCube.ru
-
BaZilio
- Сообщения: 457
- Статус: Say оПХБЕР again!
Re: Usb UPS
Попробуйте apcupsd. Я скачал, собрал rpm, настроил - работает! 
У меня Back-UPS RS-1000 USB.
У меня Back-UPS RS-1000 USB.
Windows XP:
Netbook - Acer Aspire One A150.
Debian Squeeze amd64:
Laptop - Acer TravelMate 5520G.
Laptop_work - Toshiba Satellite C660.
Windows 7 x64:
Desktop - Core2Duo 6600 2.4GHz/6 GB/i965/GeForce 9500GT.
4 the lulz!
-
N-gusakov
- Сообщения: 302
- Статус: Ubuntuфил
- ОС: Ubuntu 7.10
Re: Usb UPS
спасибо, попробую
К стати она есть у меня в репозитарии!!!
А можно глянуть на Ваш /etc/acpupsd/acpupsd.conf ???
Apple Power book G4 (Mac OS X 10.4.11)
www.cCube.ru
www.cCube.ru
-
BaZilio
- Сообщения: 457
- Статус: Say оПХБЕР again!
Re: Usb UPS
Код: Выделить всё
[root@*** ~]# cat /etc/apcupsd/apcupsd.conf |grep -v '#' |tr -s \\n
UPSCABLE smart
UPSTYPE usb
DEVICE
LOCKFILE /var/lock
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 4
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER off
NISIP 10.0.1.200
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
NETTIME 100
UPSCLASS netmaster
UPSMODE net
NETPORT 6666
SLAVE 10.0.1.221
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0Windows XP:
Netbook - Acer Aspire One A150.
Debian Squeeze amd64:
Laptop - Acer TravelMate 5520G.
Laptop_work - Toshiba Satellite C660.
Windows 7 x64:
Desktop - Core2Duo 6600 2.4GHz/6 GB/i965/GeForce 9500GT.
4 the lulz!
-
vintyara
- Сообщения: 71
- ОС: FreeBSD
Re: Usb UPS
Народ ! Помогите !
Установил (с поддержкой usb), запускаю apcaccess status и вижу ашибку:
Нашёл в мануалах:
у меня так всё и есть. Эти две строки включены.
Демон жив -
Вот апцтест:
Что делать и как быть ?
Установил (с поддержкой usb), запускаю apcaccess status и вижу ашибку:
root@pingvin:/etc/apcupsd# apcaccess status
FATAL ERROR in apcaccess.c at line 252
tcp_open: cannot connect to server 192.168.0.1 on port 3551.
ERR=Connection refused
Нашёл в мануалах:
If you see a message to the effect of:
APCACCESS FATAL ERROR in apcaccess.c at line 336
tcp_open: cannot connect to server localhost on port 3551.
It means that you have probably not enabled the Network Information Server in your configuration file for apcaccess to work. This is done by setting:
NETSERVER on
NISPORT 3551
in your apcupsd.conf file.
у меня так всё и есть. Эти две строки включены.
Демон жив -
root@pingvin:/home/vint# ps ax| grep apcupsd
20259 ? Ss 0:00 apcupsd
20261 pts/0 R+ 0:00 grep apcupsd
Вот апцтест:
root@pingvin:/home/vint# apctest
2006-12-13 16:14:36 apctest 3.12.4 (19 August 2006) slackware
Checking configuration ...
Attached to driver: usb
sharenet.type = DISABLE
cable.type = USB_CABLE
You are using a USB cable type, so I'm entering USB test mode
mode.type = USB_UPS
Setting up the port ...
apctest FATAL ERROR in linux-usb.c at line 649
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
apctest FATAL ERROR in linux-usb.c at line 649
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see <http://www.apcupsd.com/support.html>.
apctest error termination completed
Что делать и как быть ?