Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2002 17:20:58 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        Sean O'Neill <sean@seanoneill.info>
Cc:        Francesco Casadei <fcasadei@inwind.it>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: UPS
Message-ID:  <20020406172058.A6153@junior.kasby>
In-Reply-To: <5.1.0.14.0.20020404102442.00abc6f8@postoffice.swbell.net>; from sean@seanoneill.info on Thu, Apr 04, 2002 at 10:26:10AM -0600
References:  <OE68E7F9GRnAIZUnv6q0001f1ba@hotmail.com> <OE68E7F9GRnAIZUnv6q0001f1ba@hotmail.com> <20020326104736.A2005@goku.kasby> <5.1.0.14.0.20020404102442.00abc6f8@postoffice.swbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 04, 2002 at 10:26:10AM -0600, Sean O'Neill wrote:
> At 10:47 AM 3/26/2002 +0100, Francesco Casadei wrote:
>=20
>=20
> >APC BackUPS Pro and nut work well for me.
> >
>=20
> I have this same unit.  What kind of cable to you have connecting your=20
> FreeBSD machine to the APC unit?  I've asked this question on some other=
=20
> areas but I never get a clear answer.
>=20
>=20
> --
> ........................................................
> ......... ..- -. .. -..- .-. ..- .-.. . ... ............
> .-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...
>=20
> Sean O'Neill
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>=20
> end of the original message

I've used the cable I found in the box with the APC BackUPS Pro 650. After a
little experimenting I found that the option cable=3D940-0095B work with the
apcsmart driver, i.e. put the following in the ups.conf file:

[Back-UPS_PRO_650]
    driver =3D apcsmart
    port =3D /dev/cuaa1
    cable =3D 940-0095B

and then modify the startup script in /usr/local/etc/rc.d to:

#!/bin/sh

if [ "x$1" =3D "xstart" ]; then
    env - su ups -c '/usr/local/libexec/nut/apcsmart -a Back-UPS_PRO_650'
    env - su ups -c '/usr/local/sbin/upsd'
    env - /usr/local/sbin/upsmon localhost
    env - su ups -c '/usr/local/bin/upslog localhost /var/log/ups.log 300'
elif [ "x$1" =3D "xstop" ]; then
    /usr/bin/killall upslog upsmon upsd apcsmart \
        && echo -n 'upslog upsmon upsd apcsmart'
fi

I'ce created the user and group ups to run the demon processes.

	Francesco Casadei
--=20
You can download my public key from http://digilander.iol.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B


--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8rxJafsM3XxZOsXsRAtJiAKCVbZ02nugLTQtHYXHN1MsIiIU3vwCgjV6t
adjjGgT2QIP4Xrap/3FviCM=
=v4kh
-----END PGP SIGNATURE-----

--FL5UXtIhxfXey3p5--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020406172058.A6153>