<div dir="auto">Cheers all,<div dir="auto"><br></div><div dir="auto"> With PR <a href="https://github.com/networkupstools/nut/pull/2686">https://github.com/networkupstools/nut/pull/2686</a> I hope to allow one to configure (a generally comma-separated list of) <code>sdcommands</code>
option with arbitrary INSTCMD values supported by the device-specific
part of driver code (if any). In testing e.g. beeper commands can be
used instead of powering off the load.<p dir="auto">It also aliases the call to <code>upsdrv_shutdown()</code> as a <code>shutdown.default</code> for good measure (similar to <code>driver.killpower</code> but without a failsafe flag, and not necessarily exiting the driver).</p>
<p dir="auto">Shutdown implementations of some drivers got reshuffled into newly supported standard instant commands like <code>shutdown.return</code> or <code>shutdown.stayoff</code>
- sometimes guessing the name (testing wanted). For others, the method
code remains unique (e.g. when return/stayoff is chosen based on OL/OB
status).</p><p dir="auto">It started from discussion in issue <a href="https://github.com/networkupstools/nut/issues/2670">https://github.com/networkupstools/nut/issues/2670</a>, about drivers
hard-coding some operations as their late-shutdown implementation --
which may not be the best fit for a particular supported device model.</p><p dir="auto">Testing would be very welcome; see <a href="https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests">https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests</a> about making a custom build of NUT for experiments (can be run straight from build workspace):</p><p dir="auto">* non-regression by default</p><p dir="auto">* custom `sdcommands` setting actually working for your device/driver</p><p dir="auto"><br></p><p dir="auto">Thabks in advance,</p><p dir="auto">Jim Klimov</p><p dir="auto"><br></p><div dir="auto"><br></div><div dir="auto"><br></div></div></div>