I have been searching and searching and have been unable to find anything even CLOSE to what I am looking for.

I need a batch script that will send an email out when the server's UPS is down to 50% battery power. We are using the Uninterruptible Power Supply Manager that is a service in most Windows platforms (Computer Manager -> Services -> Uniterruptible Power Supply). There is a setting in the manager in the Alarms tab that will allow you set the % that you want to be alerted to and then you click on Alarm Action, you have the option to run a program which you can configure.

So, I need a batch file that will run when the UPS is at 50% and it will send an email out to alert off-duty employees that the battery life is at a critical point.

ALL help is GREATLY appreciated!!!
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


I think you would be hard-pushed to create mail-sending batch file unless you locate an email client which has a command line interface. Use VBScript instead. There are many, many examples available for download but I've used an edited version of the script available here http://www.motobit.com/tips/detpg_send-email-from-asp/ before.
Answered 05/28/2009 by: VBScab
Red Belt

Please log in to comment