I’ve installed an APC BX950MI-GR and connected it to my Proxmox server via USB. It works: it turns off the server after x minutes after the power loss and it gets turned off by the command upsdrvctl shutdown, when the powers come back on, the UPS turns on and so does the server. The problem is if the power comes back after the server receive the power off signal and before the UPS powers off, in this case the UPS simply goes back in the normal state and the server…stays off. How can I turn it back on? Thanks!

  • DigitalDilemma@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 days ago

    You would need a third device monitoring both for this edge case. Once the server has been told to shut down, it’s going to shut down.

    The third device (also on the UPS, like an Rpi or ESP) can then check for power availability through the UPS and whatever logic you want to apply, can then use wake on lan to the server to power it up once it shuts down.

    • peregus@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      6 days ago

      I did think about that option, but the onboard NIC is connected to the ONT (fiber connection) and the SFP+ is off when the server is off so it can’t receive WOL packets. By the way, thanks.

      • Darkassassin07@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        If you use an RPI as the third device, you can use one of the GPIO pins to trigger a transistor connected in parallel with the servers power button. The pi can then (re)start the server on command.

        • peregus@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 day ago

          I think that I’ll go this way, thanks. I don’t have transistors, but I have a 2 relay Ethernet board.

          • Darkassassin07@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            I ran a setup like this for a couple years. Super handy being able to literally press the power button remotely; especially when/if the system hangs and becomes unresponsive.

            • peregus@lemmy.worldOP
              link
              fedilink
              arrow-up
              1
              ·
              1 day ago

              I’ve just bought and connected to it a JetKVM, when I saw an RJ11 port, I thought that it could have been used to “push” those buttons, but instead it’s a serial port ☹️

      • bri@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        If you’ve got SFP+ onboard it sounds like you have a relatively serious server. Does it have IPMI? You could have a low power device like a Pi issue and IPMI command to power on.

      • DigitalDilemma@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        You have no local network access to it at all? (WOL will work across the subnet, you don’t need to connect directly to it)

        If genuinely not (and I’d be surprised if that is the case) add another nic of any sort (cheap) for WOL, or use something like Switchbot?

      • dan@upvote.au
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        6 days ago

        Can you add a second NIC? Should be able to find a Gigabit one for less than $15 or a 2.5Gbps one for $25-40.