[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-admin
Subject: Re: Perl-Win32-Admin digest, Vol 1 #325 - 5 msgs
From: "A. Lorms" <Alexander.Lorms () sse-berlin ! com>
Date: 2001-05-25 5:38:21
[Download RAW message or body]
Re: UPS, RS232 & perl
I like this idea. All i can tell you is to be careful. the serial cable
which APC used is not a standard cable. If you try to connect
an APC USV and a Server with an usual serial cable the
USV is "SWITCHED OFF" immediately.
Alex....
----- Original Message -----
From: "Michael Mirman" <mmirman@mathworks.com>
To: <perl-win32-admin@listserv.activestate.com>
Sent: Tuesday, March 06, 2001 12:21 AM
Subject: UPS, RS232 & perl
> I'm trying to connect my Win2000 to the RS232 of the Liebert PowerSure
> Personal UPS. My crazy idea is to take a serial cable, connect two ports
> and write a perl script that would read from that port.
> When the power goes out, the script would schedule a shutdown.
> If the power restores quickly, the script would cancel the shutdown.
>
> I've never written a script that would deal with a serial port and would
> appreciate any recommendations.
> Also, if someone has had experience with UPSs, that may help, too...
>
> TIA,
perl-win32-admin-request@listserv.ActiveState.com wrote:
> Send Perl-Win32-Admin mailing list submissions to
> perl-win32-admin@listserv.ActiveState.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> or, via email, send a message with subject or body 'help' to
> perl-win32-admin-request@listserv.ActiveState.com
>
> You can reach the person managing the list at
> perl-win32-admin-admin@listserv.ActiveState.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Perl-Win32-Admin digest..."
>
> Today's Topics:
>
> 1. Lanman (Ron LEVER)
> 2. Re: Lanman (Paul Popour)
> 3. Re: UPS, RS232 & perl (Edward G. Orton)
> 4. Re: UPS, RS232 & perl (STAFF)
> 5. Re: UPS, RS232 & perl (Edward G. Orton)
>
> --__--__--
>
> Message: 1
> From: Ron LEVER <ron@ansto.gov.au>
> To: perl-win32-admin@listserv.ActiveState.com
> Subject: Lanman
> Date: Wed, 23 May 2001 22:03:10 +1000
>
> Anybody
>
> Does anyone know if there is a lanman mailing list, if so could you let me
> know where it is? I am also interested in any material that is available on
> Lanman other than the lanman.html.
>
> Thanks
>
> --__--__--
>
> Message: 2
> Reply-To: "Paul Popour" <ppopour@coastalnow.net>
> From: "Paul Popour" <ppopour@coastalnow.net>
> To: "Ron LEVER" <ron@ansto.gov.au>,
> <perl-win32-admin@listserv.ActiveState.com>
> Subject: Re: Lanman
> Date: Wed, 23 May 2001 09:17:52 -0400
>
> ----- Original Message -----
> From: "Ron LEVER" <ron@ansto.gov.au>
> To: <perl-win32-admin@listserv.ActiveState.com>
> Sent: Wednesday, May 23, 2001 8:03 AM
> Subject: Lanman
>
> > Anybody
> >
> > Does anyone know if there is a lanman mailing list, if so could you let me
> > know where it is? I am also interested in any material that is available
> on
> > Lanman other than the lanman.html.
> >
>
> Look on news.roth.net
>
> --__--__--
>
> Message: 3
> From: "Edward G. Orton" <ego@gwn.com>
> To: <perl-win32-admin@listserv.activestate.com>,
> "Michael Mirman" <mmirman@mathworks.com>
> Subject: Re: UPS, RS232 & perl
> Date: Wed, 23 May 2001 12:27:39 -0400
> Organization: GWN Consultants Inc.
>
> ----- Original Message -----
> From: "Michael Mirman" <mmirman@mathworks.com>
> To: <perl-win32-admin@listserv.activestate.com>
> Sent: Tuesday, March 06, 2001 12:21 AM
> Subject: UPS, RS232 & perl
>
> > I'm trying to connect my Win2000 to the RS232 of the Liebert PowerSure
> > Personal UPS. My crazy idea is to take a serial cable, connect two ports
> > and write a perl script that would read from that port.
> > When the power goes out, the script would schedule a shutdown.
> > If the power restores quickly, the script would cancel the shutdown.
> >
> > I've never written a script that would deal with a serial port and would
> > appreciate any recommendations.
> > Also, if someone has had experience with UPSs, that may help, too...
> >
> > TIA,
> Why try to re-invent the wheel? Most of the UPS systems I have seen and/or
> used come with an application which will do the shutdown for you based on
> the power consumption and amount of power left.
>
> The UPS system I have here will not only shut down the system when the
> battery power is low (criteria are time remaining, or percentage of power
> remaining, and can be modified by the user) but will send email, pager
> message, voice message through the phone, or a number of other options if
> the power goes out, in order to alert the owner.
>
> Windows NT/2000 also have built-in UPS applications which will shut the
> system down if the power goes out. They're not nearly as flexible as some of
> the applications provided by the manufacturers.
>
> You could spend an awful lot of time doing all this, and it should be all
> there.
>
> ego
> Edward G. Orton, GWN Consultants Inc.
> Office: 613-860-3186, Home: 613-764-3186, Fax: 613-764-1721
> email: ego@gwn.com
>
> --__--__--
>
> Message: 4
> From: "STAFF" <michaelw@staff.familyconnect.com>
> To: perl-win32-admin@listserv.activestate.com
> Subject: Re: UPS, RS232 & perl
> Date: 23 May 2001 12:09:58 CDT
> Reply-To: "STAFF" <michaelw@staff.familyconnect.com>
>
> In all of the UPS applications I've seen, they REQUIRE MS_EXCHANGE to be your
> mail server, which is rediculous since an SMTP setup would be simpler....ALSO,
> I have tried APC's stuff as well as others...and most of them are using the
> WINAPI and take longer to shutdown than they ought, or don't respond to the
> cancel shutdown. However, if you can use a perl script to use the command line
> options to do it, then you could easily overcome these shortcomings....
>
> I've never used Perl to communicate directly with the UPS, but I instead used
> it to communciate with the UPS software.....unfortunately that was at a
> different company and they say they own the code I wrote....
>
> On Wed, 23 May 2001 12:27:39 -0400, Edward G. Orton said:
>
> >
> > ----- Original Message -----
> > From: "Michael Mirman" <mmirman@mathworks.com>
> > To: <perl-win32-admin@listserv.activestate.com>
> > Sent: Tuesday, March 06, 2001 12:21 AM
> > Subject: UPS, RS232 & perl
> >
> >
> > > I'm trying to connect my Win2000 to the RS232 of the Liebert PowerSure
> > > Personal UPS. My crazy idea is to take a serial cable, connect two ports
> > > and write a perl script that would read from that port.
> > > When the power goes out, the script would schedule a shutdown.
> > > If the power restores quickly, the script would cancel the shutdown.
> > >
> > > I've never written a script that would deal with a serial port and would
> > > appreciate any recommendations.
> > > Also, if someone has had experience with UPSs, that may help, too...
> > >
> > > TIA,
> > Why try to re-invent the wheel? Most of the UPS systems I have seen and/or
> > used come with an application which will do the shutdown for you based on
> > the power consumption and amount of power left.
> >
> > The UPS system I have here will not only shut down the system when the
> > battery power is low (criteria are time remaining, or percentage of power
> > remaining, and can be modified by the user) but will send email, pager
> > message, voice message through the phone, or a number of other options if
> > the power goes out, in order to alert the owner.
> >
> > Windows NT/2000 also have built-in UPS applications which will shut the
> > system down if the power goes out. They're not nearly as flexible as some of
> > the applications provided by the manufacturers.
> >
> > You could spend an awful lot of time doing all this, and it should be all
> > there.
> >
> > ego
> > Edward G. Orton, GWN Consultants Inc.
> > Office: 613-860-3186, Home: 613-764-3186, Fax: 613-764-1721
> > email: ego@gwn.com
> >
> > _______________________________________________
> > Perl-Win32-Admin mailing list
> > Perl-Win32-Admin@listserv.ActiveState.com
> > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> >
> >
>
> --
> Michael Wray
> Network Administrator
> FamilyConnect, Inc.
>
> --__--__--
>
> Message: 5
> From: "Edward G. Orton" <ego@gwn.com>
> To: "STAFF" <michaelw@staff.familyconnect.com>,
> <perl-win32-admin@listserv.activestate.com>
> Subject: Re: UPS, RS232 & perl
> Date: Wed, 23 May 2001 13:51:54 -0400
> Organization: GWN Consultants Inc.
>
> ----- Original Message -----
> From: "STAFF" <michaelw@staff.familyconnect.com>
> To: <perl-win32-admin@listserv.activestate.com>
> Sent: Wednesday, May 23, 2001 1:09 PM
> Subject: Re: UPS, RS232 & perl
>
> > In all of the UPS applications I've seen, they REQUIRE MS_EXCHANGE to be
> your
> > mail server, which is rediculous since an SMTP setup would be
> simpler....ALSO,
> > I have tried APC's stuff as well as others...and most of them are using
> the
> > WINAPI and take longer to shutdown than they ought, or don't respond to
> the
> > cancel shutdown. However, if you can use a perl script to use the command
> line
> > options to do it, then you could easily overcome these shortcomings....
> >
> That's funny. All the UPS units I've dealt with use SMTP, and the shutdowns
> only take place when necessary. The unit I currently have will cancel the
> shutdown itself (user configurable parameter) if power is restored before
> the shutdown is "engaged", i.e. during the count down sequence. Once the
> shutdown process is in progress, it is not advisable to try and cancel it,
> since there is no way of determining which processes, if any, are already
> stopped. Cancelling a shutdown at this point may leave the machine in an
> unknown, unstable, and inoperable state.
>
> ego
> Edward G. Orton, GWN Consultants Inc.
> Office: 613-860-3186, Home: 613-764-3186, Fax: 613-764-1721
> email: ego@gwn.com
>
> --__--__--
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> Perl-Win32-Admin@listserv.ActiveState.com
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>
> End of Perl-Win32-Admin Digest
["Alexander.Lorms.vcf" (text/x-vcard)]
_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic