pythontr.com
Öncelikle Digitech Eco 2000VA Ups cihazı için bu adresten [tuncmatik.com] Linux için gerekli olan paketleri indiriniz.
aptitude install libc6-i386 unrar
Kurulum işlemleri
vim install.linux.sh STARTUP=/etc/rc.local ${PROGRAM_DIR}ups_config ${PROGRAM_DIR}ups_config
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
./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.
./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.
./ups_manager stop
Not: Makinayı kapatıp açtığınız zaman sistem otamatik olarak devreye girecektir.
Yorumlar
merhaba. kurulumu yapıyorum ancak status izlerken sürekli olarak ups bağlantısının gelip gittiğini görüyorum, bu da yanlış sistem kapatma tetiklemelerine sebebiyet veriyor. Sizde de aynı sorun var mı acaba?
Merhaba, Mesajınızı yeni gördüm bizde sıkıntı olmuyor ama install scriptini çalıştırınca oluşan hata varsa o hataları gidermenizi ve ardından kurulum yapmanızı tafsiye ederiz.