Bill, I've had problems with serial ports in the past. Usually a really dumb reasion for it not working. Verify the BIOS has the port turned on. With the default IO address and IRQ settings. Does a mouse work on the port? If you have a null modem cable. (Switches RX and TX lines) you can hook two computers together. Run terminal programs on each (with the same baud rate settings, no flow control). You should be able to type chars between the two boxes. Have minicom installed? can it open the port without an error? If you don't have a null modem cable/connector you can pick them up at most radio shacks. Or you could try communicating with an external modem. Running a redhat default kernel? Should work fine. If you compiled your own make sure you have the serial port setup correctly in your kernel config. Try chmod 666 /dev/ttyS0 Serial HOWTO: http://tldp.org/HOWTO/Serial-HOWTO.html Serial Laplink howto: http://tldp.org/HOWTO/Serial-Laplink-HOWTO/index.html Have a DOS bootdisk? You could try running an old skool terminal program like procomm or something like that. Or hypertermainal in M$ Windowz. Good luck. On Tue, 4 Jun 2002, Bill Mills-Curran wrote:
Karl,
I agree that the serial port is the prime suspect. (I'm working the serial port test you suggested) Can you give any hints as to what might need to be configured? Note that this is a new installation, and I've done nothing to set up the port.
Any suggestions what configuration changes or module loads I might need to enable traffic on ttyS0 and ttyS1?
Thanks, Bill
On Mon, 3 Jun 2002, Karl Hiramoto wrote:
Date: Mon, 3 Jun 2002 15:53:02 -0400 (EDT) From: Karl Hiramoto <karl@zoop.org> Reply-To: wlug@mail.wlug.org To: Worcester Linux Users Group <wlug@mail.wlug.org> Subject: Re: [Wlug] monitoring a Matrix 3000
Eliminate the basic stuff. Is the Serial port working? Hookup a null modem to another box and verify that.
On Mon, 3 Jun 2002, Bill Mills-Curran wrote:
I sent the message below to the UPS mailing list, but it's a pretty slow list, so I thought I'd see if anyone on WLUG might have an idea. I'm beginning to suspect a serial line configuration issue.
Any ideas?
Thanks, Bill Mills-Curran
---------- Forwarded message ---------- Date: Mon, 3 Jun 2002 08:29:56 -0400 (EDT) To: Ups mailing list <ups@lists.exploits.org> Subject: monitoring a Matrix 3000
Hi,
I've installed the nut rpm's from the RedHat 7.2 distribution:
nut-cgi-0.45.0-3 nut-0.45.0-3 nut-client-0.45.0-3
I am attempting to monitor the state of 2 APC Matrix UPS's; a model 3000 and a model 5000.
I have two different sets of cables to work with; 940-0020B and 940-0024C.
In short, I can't get any indication of communication between my linux box and the UPS. I've looked through the FAQ's and other documentation pretty carefully, but I must be missing something. Any direction anyone can give would be appreciated.
Documentation for these UPS's can be found at:
http://sturgeon.apcc.com/techref.nsf/docID/3BF5FC2524F090888525675200631528/...
There's a description of the pinouts on p. 39.
**************** Basic setup:
I have a couple of racks of inter-dependent equipment powered from 2 UPS's. The interdependence forces me to shut down all machines before either UPS fails.
I plan to use a single linux box to monitor the state of the UPS's and to send shutdown signals (via small private network) to the servers when the battery gets low.
The linux box is old hardware, but the linux software installation is new.
In an effort to simplify the problem, I've dropped back to monitoring a single UPS.
Below are the config files and results for using the two different cable types. For both config's, I set the permissions on /dev/ttyS0 to 666.
**************** Using the 940-0020B cables.
Config files (without the comments):
**** # /etc/sysconfig/ups SERVER=yes MODEL=genericups DEVICE=/dev/ttyS0 OPTIONS="-t 2" **** # /etc/ups/upsd.conf
UPS tls01 /usr/bin/genericups-ttyS0 -t 2 /dev/ttyS0 ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCESS grant monitor localhost password ACCESS deny all all **** # /etc/ups/upsmon.conf
MONITOR tls01@localhost 1 password slave MINSUPPLIES 1 SHUTDOWNCMD "/root/bin/ups.pl shutdown" NOTIFYCMD "/root/bin/ups.pl notify" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 ******* Results:
1. The services (genericups, upsd, upsmonitor) started ok. I do get the message: UPS tls01@localhost is unavailable
2. upsc tls01@localhost gives the following:
host: tls01@localhost No variables available! Check your upsd.conf entry for this UPS
**************** Using the 940-0024C cables.
Config files (without the comments):
**** # /etc/sysconfig/ups SERVER=yes MODEL=apcsmart DEVICE=/dev/ttyS0 OPTIONS= **** # /etc/ups/upsd.conf
UPS tls01 /usr/bin/apcsmart-ttyS0 /dev/ttyS0 ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCESS grant monitor localhost password ACCESS deny all all **** # /etc/ups/upsmon.conf
MONITOR tls01@localhost 1 password slave MINSUPPLIES 1 SHUTDOWNCMD "/root/bin/ups.pl shutdown" NOTIFYCMD "/root/bin/ups.pl notify" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 ******* Results:
1. The services (apcsmart, upsd, upsmonitor) started ok. I do get the message: UPS tls01@localhost is unavailable
2. upsc tls01@localhost gives the following:
host: tls01@localhost No variables available! Check your upsd.conf entry for this UPS
****************
What am I doing wrong?
TIA, Bill
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
--
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
Facts are stubborn, but statistics are more pliable.
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-- ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø If life is a stage, I want some better lighting.