0

with win2k3 i used the ups service to monitor usb connected UPS and launch scripts when ups meets critical battery condition.

The ups service is no more available in win2k8 and power management seems to be minimalist : in fact i can only choose to shutdown server in the critical battery action. I dont have the option to send a mail nor run a script in that case. I dont want to install specific software like powerchute to handle battery's alerts.

How do you monitor your ups, and run specific actions when AC is down ? Is it good to use a wmi request each X seconds to get the win32_battery counters ?

Bart De Vos
  • 17,911
  • 6
  • 63
  • 82
Loïc MICHEL
  • 236
  • 3
  • 11
  • What brand UPS most manufacturers provide an application that is better than the Windows one anyway, but I see your preference to the simplicity. – SpacemanSpiff Dec 22 '11 at 14:05

2 Answers2

2

Best practice is to use the manufacturers app because windows support for them was only ever half arsed.

I don't know what answer you expect, when you acknowledge that windows doesn't do it but you don't want to install the 3rd party app that has the functionality? Option 3: Magic unicorn.

JamesRyan
  • 8,166
  • 2
  • 25
  • 36
  • well i don't want to be linked to a specific manufacturer, i would like something working with different models/brands of ups... – Loïc MICHEL Dec 22 '11 at 14:20
  • 2
    Don't want to be tied to a specific vendor? How often do you change UPS units, let alone vendors? – mfinni Dec 23 '11 at 13:44
  • we have an heterogeneous parc of UPS (different manufacturers and models) and i'd like to have a working solution for all of them – Loïc MICHEL Feb 13 '14 at 14:30
  • you need to consider when purchasing UPSs that there isn't a standard. So your choice is reduced functionality, buy UPSs all from the same manufacturer or live with multiple proprietary software – JamesRyan Feb 13 '14 at 14:39
1

There is nothing built in to take more specific action in battery status (other than notify and shutdown) for more granular action you would have to write a powershell script and monitor the win32_battery class

Jim B
  • 24,081
  • 4
  • 36
  • 60