Re: Need help with software to run my APC UPS
>did you comment out > >#ttyd0 "/usr/libexec/getty std.9600" dialup off secure >or >#ttyd0 "/usr/libexec/getty std.9600" dialup off secure > in /etc/ttys? this was my problem. Tried this and it didn't work. This is where I stand now: 1. Two computers each with a APC Back-UPS Pro 650 and cable attached (one has a 940-0095A and the other has a 940-0095B). 2. One computer runs FreeBSD4.6 and the other runs FreeBSD4.4 3. *Neither* computer will work with "bkpupsd" or "apcupsd" from the ports collection. A) type: bkpupsd /dev/cuaa0 result: on one computer it starts the daemon, but won't perform when power plug is pulled, on the other computer it starts the daemon, but immediately annouces the power has failed and shuts down B) type: apcupsd start result: one computer hangs, the other complains it can't communicate with UPS. Note: A guy on the apcupsd mail-list has the same exact UPS+cable and runs FreeBSD4.6 and sent me his "apcupsd.conf" file. I had the same result with it. 4. Tried installing "upsd" from the ports collection on one computer and the computer hung on booting -- isn't this one needed for NUT to work? (Also installed NUT, BTW.) 5. Totally baffled at this point. According to apcupsd.com, one possible source of error in a situation like this one is: "Chosen serial port has logins enabled. You must disable logins on that port, otherwise, the system prevents apcupsd from using it. Normally, the file /etc/inittab specifies the ports for which a getty process is started. You must disable getty for the port which you wish to use." I'm not sure I disabled logins for the device correctly. Not sure what to do now. Important note: Several years ago one of these UPSs worked with "bkpupsd" with the exact same hardware -- but after I upgraded that very old version of FreeBSD it won't work. Any ideas? :) --- Dr. Joseph A. Bentley Professor of Chemistry Dept. of Physical SciencesPhone: (662) 846-4482 P.O. Box 3255-DSU FAX: (662) 846-4486 Delta State UniversityE-mail: [EMAIL PROTECTED] Cleveland, MS 38733 E-mail: [EMAIL PROTECTED] "It is not enough to succeed. Others must fail." -- Gore Vidal --- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Need help with software to run my APC UPS
I'm keeping the freebsd-questions on these emails in case someone needs to know this stuff, too. :) At 04:03 PM 7/15/02 -0700, you wrote: >--- [EMAIL PROTECTED] wrote: >> >> >did you comment out >> > >> >#ttyd0 "/usr/libexec/getty std.9600" dialup off >> secure >> >or >> >#ttyd0 "/usr/libexec/getty std.9600" dialup off >> secure >> > in /etc/ttys? this was my problem. >> >> Tried this and it didn't work. >> >> This is where I stand now: >> >> 1. Two computers each with a APC Back-UPS Pro 650 >> and cable >> attached (one has a 940-0095A and the other has a >> 940-0095B). >> >> 2. One computer runs FreeBSD4.6 and the other runs >> FreeBSD4.4 >> >> 3. *Neither* computer will work with "bkpupsd" or >> "apcupsd" >> from the ports collection. >> >> A) type: bkpupsd /dev/cuaa0 >> result: on one computer it starts the daemon, >> but won't perform >> when power plug is pulled, >> on the other computer it starts the >> daemon, but immediately >> annouces the power has failed and >> shuts down >> >> B) type: apcupsd start >> result: one computer hangs, the other >> complains it can't communicate >> with UPS. >> >> Note: A guy on the apcupsd mail-list has the same >> exact UPS+cable >> and runs FreeBSD4.6 and sent me his "apcupsd.conf" >> file. I had >> the same result with it. >> >> 4. Tried installing "upsd" from the ports >> collection on one computer >> and the computer hung on booting -- isn't this one >> needed for NUT to work? >> (Also installed NUT, BTW.) >> >> 5. Totally baffled at this point. >> >> According to apcupsd.com, one possible source of >> error in a >> situation like this one is: >> >> "Chosen serial port has logins enabled. You must >> disable logins on that >> port, otherwise, the system prevents apcupsd from >> using it. Normally, the >> file /etc/inittab specifies the ports for which a >> getty process is started. >> You must disable getty for the port which you wish >> to use." >> >> I'm not sure I disabled logins for the device >> correctly. >> Not sure what to do now. >> >> Important note: Several years ago one of these UPSs >> worked with >> "bkpupsd" with the exact same hardware -- but after >> I upgraded that very >> old version of FreeBSD it won't work. >> >> Any ideas? >> >> :) >> > >the first suggestion i sent was to to make the changes >to /etc/tty that should disable logins via serial ;) Yeah, this didn't seem to change anything. >are the ports enabled in the bios? cuaa0 (serial 1 ) >should be port 0x3f8-0x3ff irq 4. I checked and one computer had serial 1 disabled. So, obviously this is a problem. I tried to change it to enabled but then I had some kind of conflict. I don't really know about this stuff. The other computer has: serial port 1 3F8/IRQ4 serial port 2 2F8/IRQ3 Thanks, Joe B. --- Dr. Joseph A. Bentley Professor of Chemistry Dept. of Physical SciencesPhone: (662) 846-4482 P.O. Box 3255-DSU FAX: (662) 846-4486 Delta State UniversityE-mail: [EMAIL PROTECTED] Cleveland, MS 38733 E-mail: [EMAIL PROTECTED] "It is not enough to succeed. Others must fail." -- Gore Vidal --- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Need help with software to run my APC UPS
At 02:20 PM 7/16/02 +0200, you wrote: >I have the same UPS and I will check tonight if I have the same cable >(sounds right from memory). >I have one question. Actually 2.. > >Did you buy the cable or build it? I tried for weeks to build a cable >from the plans I found on the net. In the end I bought one from APC and >guess what? Worked out of the box.. No, I didn't make it. The cable came with the UPS. >Also... Do you have 2 UPS's or are you testing with one on two >machines? Yes, I have two UPS's. One on each computer. I'm using the cables that came with each UPS. I just posted a response to a guy who figured out one problem which was that a serial port on one of the machines wasn't enabled. Thanks, Joe B. > >-D > >:-Original Message- >:From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >:Sent: Monday, July 15, 2002 11:23 PM >:To: [EMAIL PROTECTED]; jon >:Subject: Re: Need help with software to run my APC UPS >: >: >: >:>did you comment out >:> >:>#ttyd0 "/usr/libexec/getty std.9600" dialup off secure >:>or >:>#ttyd0 "/usr/libexec/getty std.9600" dialup off secure >:> in /etc/ttys? this was my problem. >: >:Tried this and it didn't work. >: >:This is where I stand now: >: >:1. Two computers each with a APC Back-UPS Pro 650 and cable >:attached (one has a 940-0095A and the other has a 940-0095B). >: >:2. One computer runs FreeBSD4.6 and the other runs FreeBSD4.4 >: >:3. *Neither* computer will work with "bkpupsd" or "apcupsd" >:from the ports collection. >: >:A) type: bkpupsd /dev/cuaa0 >:result: on one computer it starts the daemon, but won't perform >: when power plug is pulled, >: on the other computer it starts the daemon, but >:immediately >: annouces the power has failed and shuts down >: >:B) type: apcupsd start >:result: one computer hangs, the other complains it can't >:communicate >: with UPS. >: >:Note: A guy on the apcupsd mail-list has the same exact UPS+cable >:and runs FreeBSD4.6 and sent me his "apcupsd.conf" file. I had >:the same result with it. >: >:4. Tried installing "upsd" from the ports collection on one computer >:and the computer hung on booting -- isn't this one needed for >:NUT to work? >:(Also installed NUT, BTW.) >: >:5. Totally baffled at this point. >: >:According to apcupsd.com, one possible source of error in a >:situation like this one is: >: >:"Chosen serial port has logins enabled. You must disable logins on that >:port, otherwise, the system prevents apcupsd from using it. >:Normally, the >:file /etc/inittab specifies the ports for which a getty >:process is started. >:You must disable getty for the port which you wish to use." >: >:I'm not sure I disabled logins for the device correctly. >:Not sure what to do now. >: >:Important note: Several years ago one of these UPSs worked with >:"bkpupsd" with the exact same hardware -- but after I upgraded >:that very >:old version of FreeBSD it won't work. >: >:Any ideas? >: >::) >: >: >: >: >: >:--- >: >: Dr. Joseph A. Bentley >: Professor of Chemistry >: Dept. of Physical SciencesPhone: (662) 846-4482 >: P.O. Box 3255-DSU FAX: (662) 846-4486 >: Delta State UniversityE-mail: [EMAIL PROTECTED] >: Cleveland, MS 38733 E-mail: [EMAIL PROTECTED] >: >: >:"It is not enough to succeed. Others must fail." >: >:-- Gore Vidal >: >:--- >: >: >:To Unsubscribe: send mail to [EMAIL PROTECTED] >:with "unsubscribe freebsd-questions" in the body of the message >: >- >ATTENTION: >The information in this electronic mail message is private and >confidential, and only intended for the addressee. Should you >receive this message by mistake, you are hereby notified that >any disclosure, reproduction, distribution or use of this >message is strictly prohibited. Please inform the sender by >reply transmission and delete the message without copying or >opening it. > >Messages and attachments are scanned for all viruses known. >If this message contains password-protected attachments, the >files have NOT been scanned for viruses by the ING mail domain. >Always scan attachments before opening them. >- > > --- Dr. Joseph A. Bentley Professor of Chemistry Dept. of Physical SciencesPhone: (662) 846-4482 P.O. Box 3255-DSU FAX: (662) 846-4486 Delta State UniversityE-mail: [EMAIL PROTECTED] Cleveland, MS 38733 E-mail: [EMAIL PROTECTED] "It is not enough to succeed. Others must fail." -- Gore Vi