disconnect / reconnect UPS

xigloo

Member
May 25, 2021
35
1
8
hello, what do you think about this ?
i am installing the NUT on proxmox VE 6x and i need to disconnect / reconnect the usb cable to the Proxmox server but not in that place. Can I simulate it with a remote command?
 
I looked that up a year ago. There wasn't a command to simulate a real cable unplugging. But this section of the documentation might help you to start a forced shutdown:

Testing shutdowns​

UPS equipment varies from manufacturer to manufacturer and even within model lines. You should test the shutdown sequence on your systems before leaving them unattended. A successful sequence is one where the OS halts before the battery runs out, and the system restarts when power returns.

The first step is to see how upsdrvctl will behave without actually turning off power. To do so, use the -t argument:

/usr/local/ups/bin/upsdrvctl -t shutdown
It will display the sequence without actually calling the drivers.

You can finally test a forced shutdown sequence (FSD) using:

/usr/local/ups/sbin/upsmon -c fsd
This will execute a full shutdown sequence, as presented in Shutdown design, starting from the 3rd step.

If everything works correctly, the computer will be forcibly powered off, may remain off for a few seconds to a few minutes (depending on the driver and UPS type), then will power on again.

If your UPS just sits there and never resets the load, you are vulnerable to a power race and should add the "reboot after timeout" hack at the very least.

Also refer to the section on power races in the FAQ.
 
  • Like
Reactions: xigloo
I looked that up a year ago. There wasn't a command to simulate a real cable unplugging. But this section of the documentation might help you to start a forced shutdown:
good, i try these steps , thank you :]
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!