From owner-freebsd-questions Sat Apr 6 7:27: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by hub.freebsd.org (Postfix) with ESMTP id B410E37B404 for ; Sat, 6 Apr 2002 07:26:53 -0800 (PST) Received: from [62.98.219.188] (62.98.219.188) by mailrelay1.inwind.it (6.5.015) id 3CAA37A30026F1CD for freebsd-questions@freebsd.org; Sat, 6 Apr 2002 17:26:55 +0200 Received: (qmail 6192 invoked by uid 1001); 6 Apr 2002 15:20:58 -0000 Date: Sat, 6 Apr 2002 17:20:58 +0200 From: Francesco Casadei To: Sean O'Neill Cc: Francesco Casadei , FreeBSD Questions Subject: Re: UPS Message-ID: <20020406172058.A6153@junior.kasby> Mail-Followup-To: Sean O'Neill , Francesco Casadei , FreeBSD Questions References: <20020326104736.A2005@goku.kasby> <5.1.0.14.0.20020404102442.00abc6f8@postoffice.swbell.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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