Google Answers Logo
View Question
Q: Detecting Switch to Battery Power in a .NET Web App ( No Answer,   0 Comments )
Subject: Detecting Switch to Battery Power in a .NET Web App
Category: Computers > Operating Systems
Asked by: e2canoe-ga
List Price: $22.00
Posted: 26 Jul 2006 12:44 PDT
Expires: 26 Jul 2006 13:43 PDT
Question ID: 749811
I am shopping for an Uninterruptable Power Supply for a two-server web
app in my small office.  The app is a Windows ASP.NET 2.0 web app. 
The first server runs IIS 6 and the web app.  The second server runs a
MS SQL Server 2005 database used by the app.  Both servers are
co-located (and so could be plugged into the same UPS).

I know that I want to use an APC UPS product.

My question is about how to detect, from within a custom app (or
service) running on my web server, the following events:

1) That the servers have been switched to battery backup.
2) What the current estimated time left on battery power is.
3) How to initiate a shutdown of the database server from within the web server.

I need to do this so that this custom app or service can inform the
web app so that it, in turn, can notify remotely logged in users to
finish their work and log out and tell them how much time they have
left before shutdown.

APC has PowerChute software but I cannot find any detailed API
information about it online.  Also, I see that PowerChute comes in
different versions (Persons, Plus, Business, etc) and I don't know
whether I need one in particular to do what I want).  Or maybe I don't
need PowerChute and this is handled by the OS?  The OS for both
servers is Win Server 2003 Standard.
There is no answer at this time.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy