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
On Mon, Jun 03, 2002 at 02:32:14PM -0400, 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.
I have two different sets of cables to work with; 940-0020B and 940-0024C.
Well, in my recollection, the 20B is the grey "dumb" cable, and the 24C is the black "smart" cable. The Matrix is, I believe, essentially just a big SmartUPS. I would try using the 24C cable, then downloading PowerChute from the APC website (www.apcc.com). I'm currently using it on a SM700 and it works pretty well. Never messed around with a MatrixUPS before, so ... YMMV. -- Randomly Generated Tagline: DOS: n., A small annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS. (from David Vicker's .plan)
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.
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
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.
Karl, I've done the testing you suggested... I hooked up a null modem cable to another linux box that was configured to allow serial port logins. After using minicom to configure the port (9600 bps), I was able to log in. I could also exit minicom and, using 2 terminal windows: term 1: cat > /dev/ttyS0 term 2: cat /dev/ttys0 I was able to get the login and password prompts with the above, so I have some indication that the serial port is working, although I don't know if it's right for the UPS. My next test is to scrounge a signal analyzer (and someone who knows how to use it) to see if the upsd daemon is sending signals out the port. more below... On Tue, 4 Jun 2002, Karl Hiramoto wrote:
Date: Tue, 4 Jun 2002 12:16:23 -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
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.
Since I'm getting communications going, I don't think I need to dig deeper in the serial port (BIOS, IRQ, IO address). Do you agree?
Does a mouse work on the port?
Didn't try. Do I still need this?
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.
This worked.
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.
I'm running the kernel from the 7.2 distro.
Try chmod 666 /dev/ttyS0
Yes, I did this.
Serial HOWTO: http://tldp.org/HOWTO/Serial-HOWTO.html
I looked at some of this. Thanks.
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.
Oooohhh. DOS to help debug linux? Yeouch. :-) Thanks, Bill <snip>
Ok. Obvously the serial port is working fine if you can login to it. I'd try the UPS software agin. If it still doesn work. Maybee try the windows software out. That would at least verify that your cable is wired correctly to the UPS.. John Stoffel earlier mentioned using the apcupsd. I'd give that a shot too. I use that to monitor some APC smart UPS's On Tue, 4 Jun 2002, Bill Mills-Curran wrote:
Karl,
I've done the testing you suggested... I hooked up a null modem cable to another linux box that was configured to allow serial port logins. After using minicom to configure the port (9600 bps), I was able to log in. I could also exit minicom and, using 2 terminal windows:
term 1: cat > /dev/ttyS0 term 2: cat /dev/ttys0
I was able to get the login and password prompts with the above, so I have some indication that the serial port is working, although I don't know if it's right for the UPS.
My next test is to scrounge a signal analyzer (and someone who knows how to use it) to see if the upsd daemon is sending signals out the port.
more below...
On Tue, 4 Jun 2002, Karl Hiramoto wrote:
Date: Tue, 4 Jun 2002 12:16:23 -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
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.
Since I'm getting communications going, I don't think I need to dig deeper in the serial port (BIOS, IRQ, IO address). Do you agree?
Does a mouse work on the port?
Didn't try. Do I still need this?
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.
This worked.
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.
I'm running the kernel from the 7.2 distro.
Try chmod 666 /dev/ttyS0
Yes, I did this.
Serial HOWTO: http://tldp.org/HOWTO/Serial-HOWTO.html
I looked at some of this. Thanks.
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.
Oooohhh. DOS to help debug linux? Yeouch. :-)
Thanks, Bill <snip>
_______________________________________________ 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 ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø The worst part of valor is indiscretion.
Also, can you use either of those cables you have and make it work with a PC and M$ windows? That would close in on if you have a cable problem. 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.
Bill> I sent the message below to the UPS mailing list, but it's a pretty Bill> slow list, so I thought I'd see if anyone on WLUG might have an idea. Bill> I'm beginning to suspect a serial line configuration issue. I'm using apcupsd at home with a Matrix SmartUPS and it works just great. Have you tried that package? Also, making sure the cable and serial ports are working first is a good thing too. I may be able to find a cable or two since we've stopped using Matrix 3k/5k here now that we have a generator. Life is trully good now. John John Stoffel - Senior Unix Systems Administrator - Lucent Technologies stoffel@lucent.com - http://www.lucent.com - 978-399-0479
participants (4)
-
Bill Mills-Curran
-
Karl Hiramoto
-
stoffel@lucent.com
-
Theo Van Dinter