Pythontr

husonet | Tarih: 01.09.2015

Debian Wheezy İçin UPS Kurulumu

Digitech Eco 2000VA UPS Debian Wheezy Kurulumu

Öncelikle Digitech Eco 2000VA Ups cihazı için bu adresten Linux için gerekli olan paketleri indiriniz.


Gerekli Paketler
/lib/ld-linux.so.2 paketi kurulu değil ise
aptitude install libc6-i386 unrar

Kurulum işlemleri


Gerekli linux paketlerini indirelim
wget http://www.tuncmatik.com/__FILES__/dosyalar/dosya/PowerManagerII_Linux.rar
Rar dosyasını açalım
unrar x PowerManagerII_Linux.rar
Çalışma yapacağımız path içine gidelim.
cd Linux
Tar paketini açalım
tar xzvf upsmanager1T.0v.tar.gz
Oluşan klasör içine gidelim
cd upsmanagerinstall
install scriptini editleyip düzenlemelerimizi yapalım.
vim install.linux.sh
STARTUP=/etc/rc.local
${PROGRAM_DIR}ups_config
${PROGRAM_DIR}ups_config

Programı kaldırmak isteyebiliriz uninstall sript dosyasınıda düzenleyelim.
vim uninstall
#!/bin/bash
if [ -d /etc/ups_manager ];then
echo "Remove ups_manager files ..."
rm /etc/ups_manager -rf
fi
if grep "ups_manager" /etc/rc.local > /dev/null;then
sed '/ups_manager/d' /etc/rc.local > /tmp/rc.local
cat /tmp/rc.local > /etc/rc.local
rm /tmp/rc.local -f
echo "Uninstall Succeeded!"
fi

Kurulum dosyamızı çalıştıralım
./install.linux.sh

Kurulum işlemini hata almadan tamamlamanız gerekmektedir. Hata almadıysanız config işlemlerine başlayabiliriz.



cd /etc/ups_manager/

./ups_manager config

+-+==================+The Current Time Settings +===========================+-+
[F] System Shutdown Delay Time When AC Power Failed: [10] Sec.
[L] System Shutdown Delay Time When Battery Low: [10] Sec.
[U] System Shutdown Delay Time When UPS Bad: [180] Sec.
+---------------------------------------------------------------------------+-+
[M]The UPS Communicate Mode : [0]
[C]The UPS Communicate Ports : [1]
[I]The Interval of warning : [2573] Sec
[S] Save Configuration now!
[Q] Quit.
[T] Turn off UPS after System Shutdown: NO
[D] Turn off UPS Delay Time when system shutdown: 512 Min
+-+====================== +comment+ =======================================+-+
| Please input the 'F' to set the delay time when AC Power Failed.
| Please input the 'L' to set the delay time when Battery Low.
| Please input the 'U' to set the delay time When UPS Bad.
| Please input the 'I' to set the Interval of warning.
| The system shudown canceled if the delay time value is '-1'.
+-+==================Please input your command ===========================+-+
Your Command:

Yukarıdaki ekrandan sırasıyla L harfini seçelim ardından cihazımız USB üzerinden bağlanmış ise M harfine basıp 1 olarak değiştirelim seri port üzerinden bağlantı kurduysanız M -> 0 ardından C seçip hangi com portu ise onu belirtmelisiniz ayarlamalarınız bittikten sonra S harfi ile kaydedip Q harfi ile çıkış yapmalısınız.


Ayarlamalar bittikten sonra ./ups_manager start ile sistemi başlatabilirsiniz.


Durum sorgulama
./ups_manager status

----------===-----Welcome to Power Manager System!-----===-----
Copyright(C) 2004 Richcomm Technologies, Inc. Dec 27 2005 ver 1.1
+-----------------------------------------------------------------------------+
| UPS Factory: UPS Model: UPS Version: |
|---------------------------------++------------------------------------------|
| UPS Type : StandBY || UPS Input Voltage: 207.90 Volt |
| UPS Rating Voltage : 220.00 Volt|| |>>>>>>>>>>>>>-|----|----|----|----|----|
| UPS Rating Current : 4.00 || 180 190 200 210 220 230 240 250 |
| UPS Line Frequency : 50.00 Hz || |
| Communication Port : 1 || UPS Output Voltage: 207.90 Volt |
| || |>>>>>>>>>>>>>-|----|----|----|----|----|
| Input AC Power : Normal || 180 190 200 210 220 230 240 250 |
| Battery Status : Normal || |
| UPS Status : Normal || UPS Power Loading: 15.00 |
| Boost/Buck : Buck || |>>>-|----|----|----|----|----|----|----|
| UPS Temperature: 0.00 || 0 20 40 60 80 100 120 140 |
| UPS Self-Test : Normal || |
| Beeper Status : ON || UPS Battery Level: 80.56 |
| || |>>>>>>>>>>>>>>>>>>>>----|----|----|----|
| || 0 20 40 60 80 100 120 140 |
| || |
| || UPS Input Frequency : 50.10 Hz |
| ACfail Shutdown Delay : 300 s || |>>>>>>>>>>>>>>>>>>>>>>>>>----|----|----|
| UPS Turn Off Delay : 2 min|| 0 10 20 30 40 50 60 70 |
+---------------------------------++------------------------------------------+
|| Type 'Ctrl+C' to Quit.

Servisi kapatma
./ups_manager stop

Not: Makinayı kapatıp açtığınız zaman sistem otamatik olarak devreye girecektir.