VincentSaelzler / hyper-homelab

A foray into hyper-converged architecture.
GNU General Public License v3.0
0 stars 0 forks source link

test UPS configuration #119

Closed VincentSaelzler closed 2 years ago

VincentSaelzler commented 2 years ago

physically unplug / replug the power and monitor syslogs

VincentSaelzler commented 2 years ago

https://networkupstools.org/docs/man/upsmon.html

SIMULATING POWER FAILURES

To test a synchronized shutdown without pulling the plug on your UPS(es), you need only set the forced shutdown (FSD) flag on them. You can do this by calling upsmon again to set the flag, i.e.:

upsmon -c fsd

After that, the master and the slaves will do their usual shutdown sequence as if the battery had gone critical. This is much easier on your UPS equipment, and it beats crawling under a desk to find the plug.

VincentSaelzler commented 2 years ago

UPS does not turn off using USB cable. everything else seems to turn off perfectly!

Will try serial cable to see if UPS can be shut off

VincentSaelzler commented 2 years ago

managed to make a serial cable, but still not working

VincentSaelzler commented 2 years ago

will use raspberry pi

VincentSaelzler commented 2 years ago

i found a way to make it work. installed the windows client on a machine and plugged the UPS into that.

the problem the whole time was passing invalid parameters related to the shutdown command, so the UPS always remained on.

marking as won't do though because ditching the idea of keeping the server rack anyways.

may eventually purchase a new UPS but we will see.