Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Let's say I have a Windows Server 2012 R2 server with a UPS attached.

Is there a generic way to make Windows Server 2012 R2 shut down when power fails, i.e., the system switches to battery power?

I know that most UPS vendors provide proprietary software to do that, and there are lots of tutorials online on how to configure them. However, I want to create a generic server image that will run on a variety of servers with (possibly) different UPS systems. Is there some way to do that without installing vendor-specific software?

share|improve this question
    
Attached like"small setup, USV directly attached via USB / Serial and not network"? –  TomTom Jul 25 at 10:40
    
@TomTom: Yes, small setup. –  Heinzi Jul 25 at 10:43

1 Answer 1

up vote 2 down vote accepted

No, for the simple reason that the UPS provides the same power to the server regardless of whether it's on battery power or not. The UPS knows if it's on battery power, but thee server does not.

In order to get that information from the UPS, you have to connect to it and interrogate it for that information... but neither the queries nor the responses are standardized across UPS vendors, so you have the either use their custom software, or write up a custom script to handle the different commands and outputs for each vendor (and with some vendors, there are significant differences between models or product lines too).

share|improve this answer
    
Thanks. I was hoping that there was some standardized protocol, but alas... –  Heinzi Jul 25 at 13:16
    
@Heinzi The closest you'll find to that is SNMP, but that's networked rather than direct connected, and there doesn't seem to be much standardization among UPS vendors about what specific SNMP traps they send back in response to a given event... at least not to the point where you can make a reliable one-size-fits-all script (or whatever) to handle it. The much easier approach that I've been using in my current work environment was to settle on a single model of UPS that we can use everywhere wee need a UPS, and that's the only model we buy. –  HopelessN00b Jul 25 at 13:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.