Slackware 9.1 + genpower + APC SmartUPS + kabel 940-0020C - delsi

NOVOGEAR administrator@novogear.cz administrator na novogear.cz
Čtvrtek Prosinec 4 20:15:11 CET 2003


Nedari se mi rozjet tuto konfiguraci, dokumentace
i zakladni nastaveni startovacich scriptu se mi zda
zastarale - napr. je v nich genpowerd spousten jako
genpowerd /dev/usb apc-linux
, ale program to to nebere a chce to spoustet
genpowerd -d /dev/usb -t apc-linux
to same je v dokumentaci - je tam uveden prvni priklad
pro muj typ kabelu jsem pouzival volbu -t apc-20b -
ktera je nejpodobnejsi kabelu 940-0020c.
genpowerd se mi normalne spusti, v souboru /etc/upsstatus
je "OK", ale po odpojeni UPS ze site je tam porad OK
Kdyz zkusim schvalne nastavit schvalne jiny typ kabelu
tak v souboru upsstatus se objevi "CABLE" - nekomunikuje
s kabelem.
zkousel jsem i volby apc-linux apc-advanced
V adresari /etc je i soubor genpowerd.conf - ale nejak nema
vliv na spousteni genpowerd i s volbou -c vypis viz nize

Nemate nekdo zkusenosti s touto konfiguraci?
Hledal jsem i jine demony pro UPS a Slackware, ale
vse se musi kompilovat a tomu bych se chtel vyhnout,
a baliky jsem nenasel

Predem dekuji za odpoved

S pozdravem

Ondrej Prokop


Moje nastaveni
*************************************************************
Soubor /etc/rc.d/rc.M
if [ -x /sbin/genpowerd ]; then
   echo "Starting genpowerd daemon..."
   /sbin/genpowerd -d /dev/ups apc-20b
fi
*************************************************************
Soubor /etc/rc.d/rc.6
if [ -x /sbin/genpowerd ]; then
   # See if this is a powerfail situation:
   if egrep "FAIL|SCRAM" /etc/upsstatus 1> /dev/null 2> /dev/null ; then
     # Signal UPS to shut off the inverter:
     /sbin/genpowerd -k -d /dev/ups -t apc-20b
     if [ ! $? = 0 ]; then
       echo
       echo "There was an error signaling the UPS."
       echo "Perhaps you need to edit /etc/rc.d/rc.6 to configure"
       echo "the serial line and UPS type."
       # Wasting 15 seconds of precious power:
       sleep 15
     fi
   fi
fi
*************************************************************
Soubor /etc/inittab
# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop
*************************************************************
Soubor /etc/genpowerd.conf
# The port and device used can be configured here.

ENABLED=true
UPSPORT=/dev/ups
UPSSTAT=/etc/upsstatus
UPSTYPE=apc-20b
#RCPOWERFAIL=/etc/rc.powerfail

# UPS types. You can add your own using the same syntax.
# Inverted lines are preceded with '/'.

#<ups-type>      cablep. kill  t powerok battok cableok
#------------------------------------------------------
# Miquel's powerd cable
powerd            RTS    /DTR  0  CAR     ---    DSR

# Classic TrippLite
tripp-class       RTS    /ST   5  CAR     ---    ---

# TrippLite WinNT
tripp-nt          RTS    /DTR  5 /CTS    /CAR    ---

# 2001-02-05 Tripplite Omnismart 450 PNP
# John  H. Caicedo <jhcaiced na osso.org.co> O.S.S.O
omnismart-pnp    /RTS    /RTS  5  CTS     CAR    ---

# Lam's APC Back-UPS, Victron Lite WinNT
apc1-nt           RTS    /DTR  5  CTS     CAR    ---

# Jim's APC Back-UPS WinNT
apc2-nt           RTS    /DTR  5 /CTS     CAR    ---

# Marek's APC Back-UPS
# 2001-04-16 Fiskars PowerServer 10 Morten Johansen <morten na datasys.org>
apc-linux         DTR    /ST   5 /CAR     DSR    ---

# 2001-12-24 OneUPS+
oneups            ---    /ST   5 /CTS     CAR    CAR

# Adrian's TrippLite OmniSmart 675 PNP
tripp-omni       /RTS    /RTS  5  CTS     CAR    ---

# Brian's APC Back-UPS Pro
apc-advanced      DTR    /RTS  5  CAR     RNG    DSR

# Chris Hansen's APC Back-UPS Pro PNP, APC cable #940-0095A
apc-pnp           DTR    /RTS  5 /RNG    /CAR    DSR

# TrippLite PNP with furnished cable
tripp-pnp         DTR    /RTS  5  CTS     CAR    ---

# Blackout Buster UPS, standard cable
blackout-buster   DTR    /ST   0  CTS     CAR    DSR

# USV 500P Massimiliano Giorgi <ma.giorgi na flashnet.it>
usv               DTR    /RTS  5  CAR     CTS    DSR

# Trust Energy Protector 400/650, as found in the UPS HOWTO
trust-energy      DTR    /ST   5  CAR     CTS    DSR

# APC Back-UPS w/940-0020B cable
apc-20b           RTS    /DTR  5 /CTS     CAR    CAR

# CyberPower SL w/stock cable
cyber-sl          RTS    /DTR 75  CTS     CAR    ---




Další informace o konferenci Linux