XCP-NG and APC 15000 with AP9630 Management Card

I have searched the web, not found an answer.

How do I go about installing NUT on the XCP-NG server so that it will shutdown the server when UPS is on battery.

Watching this topic.

You don’t, you put together something that can monitor the UPS and then send shutdown commands to all the devices on your network based on the UPS having a power loss.