From: DaveC on
I'm installing the UPS (battery back-up) monitoring program apcupsd.

After basic configuration, I can't get apcupsd to run. It stops immediately,
reporting:

Cannot open UPS port tty.PL2303-000053FD: No such file or directory

yet when I list all devices it shows up exactly as "tty.PL2303-000053FD".

If another process is using this port, will this generate this error?

How do I determine if a port is being used by a process? Which process?

Thanks.
Dave

OS X 10.5.8
Mac Intel Mini 1.8 GHz
apcupsd 3.14.8

From: Geoffrey S. Mendelson on
DaveC wrote:

> How do I determine if a port is being used by a process? Which process?

Open a terminal window (terminal is in utilities which is in applications).

Then you can use the standard UNIX commands, lsof (list open files),
ps (display processes, lots of options) and so on.

Geoff.


--
Geoffrey S. Mendelson, Jerusalem, Israel gsm(a)mendelson.com N3OWJ/4X1GM
New word I coined 12/13/09, "Sub-Wikipedia" adj, describing knowledge or
understanding, as in he has a sub-wikipedia understanding of the situation.
i.e possessing less facts or information than can be found in the Wikipedia.
From: Jolly Roger on
In article
<0001HW.C7F0765700435E03B01AD9AF(a)news.eternal-september.org>,
DaveC <invalid(a)invalid.net> wrote:

> I'm installing the UPS (battery back-up) monitoring program apcupsd.
>
> After basic configuration, I can't get apcupsd to run. It stops immediately,
> reporting:
>
> Cannot open UPS port tty.PL2303-000053FD: No such file or directory
>
> yet when I list all devices it shows up exactly as "tty.PL2303-000053FD".
>
> If another process is using this port, will this generate this error?
>
> How do I determine if a port is being used by a process? Which process?

You're in luck. I've a decent amount of experience with apcupsd - great
utility!

How are you trying to "run" it? In normal operation, apcupsd runs
automatically at startup as a background daemon. You don't have much, if
any, direct interaction with it. To see if the daemon is already
running, issue this command:

/sbin/apcaccess

If it's running you will see a screen dump showing lots of juicy
information about your UPS - something like this:

APC : 001,037,0997
DATE : 2010-04-18 11:22:19 -0500
HOSTNAME : server.domain.net
VERSION : 3.14.8 (16 January 2010) darwin
UPSNAME : server
CABLE : USB Cable
MODEL : Back-UPS ES 725
UPSMODE : Stand Alone
STARTTIME: 2010-03-18 16:13:44 -0500
STATUS : ONLINE
LINEV : 122.0 Volts
LOADPCT : 33.0 Percent Load Capacity
BCHARGE : 100.0 Percent
TIMELEFT : 6.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
SENSE : High
LOTRANS : 088.0 Volts
HITRANS : 138.0 Volts
ALARMDEL : Always
BATTV : 13.5 Volts
LASTXFER : Automatic or explicit self test
NUMXFERS : 5
XONBATT : 2010-04-06 04:51:24 -0500
TONBATT : 0 seconds
CUMONBATT: 11 seconds
XOFFBATT : 2010-04-06 04:51:32 -0500
LASTSTEST: 2010-04-06 04:51:24 -0500
STATFLAG : 0x07000008 Status Flag
MANDATE : 2002-11-29
SERIALNO : QB0248162487
BATTDATE : 2002-11-29
NOMINV : 120 Volts
NOMBATTV : 12.0 Volts
FIRMWARE : 802.n2.D USB FW:n2
APCMODEL : Back-UPS ES 725
END APC : 2010-04-18 11:22:54 -0500

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
From: Tom Stiller on
In article
<0001HW.C7F0765700435E03B01AD9AF(a)news.eternal-september.org>,
DaveC <invalid(a)invalid.net> wrote:

> I'm installing the UPS (battery back-up) monitoring program apcupsd.
>
> After basic configuration, I can't get apcupsd to run. It stops immediately,
> reporting:
>
> Cannot open UPS port tty.PL2303-000053FD: No such file or directory
>
> yet when I list all devices it shows up exactly as "tty.PL2303-000053FD".
>
> If another process is using this port, will this generate this error?
>
> How do I determine if a port is being used by a process? Which process?
>


You don't say what UPS you're installing but doesn't the Mac's Energy
Saver Pref Panel do everything you need?

--
Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
From: Jolly Roger on
In article <tom_stiller-71F01B.12324218042010(a)news.individual.net>,
Tom Stiller <tom_stiller(a)yahoo.com> wrote:

> You don't say what UPS you're installing but doesn't the Mac's Energy
> Saver Pref Panel do everything you need?

Good point. For most people, the built-in Mac OS X UPS support will do.

My Mac Pro is the only machine connected to one of my UPSs; I just use
the built-in Mac OS X UPS support for it.

I also have multiple Mac minis and a Mac SE/30 in a server closet, all
of which are connected to the same UPS device. I use apcupsd there
because I want to shut them all down when needed.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR