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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] wrote: > Send Perl-Win32-Admin mailing list submissions to > [EMAIL PROTECTED] > > 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 > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > 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 <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > 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" <[EMAIL PROTECTED]> > From: "Paul Popour" <[EMAIL PROTECTED]> > To: "Ron LEVER" <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> > Subject: Re: Lanman > Date: Wed, 23 May 2001 09:17:52 -0400 > > ----- Original Message ----- > From: "Ron LEVER" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>, > "Michael Mirman" <[EMAIL PROTECTED]> > Subject: Re: UPS, RS232 & perl > Date: Wed, 23 May 2001 12:27:39 -0400 > Organization: GWN Consultants Inc. > > ----- Original Message ----- > From: "Michael Mirman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > --__--__-- > > Message: 4 > From: "STAFF" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: UPS, RS232 & perl > Date: 23 May 2001 12:09:58 CDT > Reply-To: "STAFF" <[EMAIL PROTECTED]> > > 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" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > 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: [EMAIL PROTECTED] > > > > _______________________________________________ > > Perl-Win32-Admin mailing list > > [EMAIL PROTECTED] > > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin > > > > > > -- > Michael Wray > Network Administrator > FamilyConnect, Inc. > > --__--__-- > > Message: 5 > From: "Edward G. Orton" <[EMAIL PROTECTED]> > To: "STAFF" <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> > Subject: Re: UPS, RS232 & perl > Date: Wed, 23 May 2001 13:51:54 -0400 > Organization: GWN Consultants Inc. > > ----- Original Message ----- > From: "STAFF" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > --__--__-- > > _______________________________________________ > Perl-Win32-Admin mailing list > [EMAIL PROTECTED] > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin > > End of Perl-Win32-Admin Digest
begin:vcard n:Lorms;Alexander tel;fax:+49 30 639 594 33 tel;work:+49 30 639 594 29 x-mozilla-html:FALSE org:S+SE Software + Systeme Berlin GmbH adr:;;Gro�-Berliner Damm 73c;Berlin;;12487;Germany version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. (FH) fn:Alexander Lorms end:vcard
