FENCE_AGENT(8)
π fence_rcd_serial, bestie π
okay so real talk, this is the man page for fence_rcd_serial β it lives in section 8 of the System Manager's Manual (that's FENCE_AGENT(8) for the citation girlies), and it's genuinely one of the most unhinged-little-gadget fence agents out there. sit down, hydrate, let's get into it π
β¨ NAME β¨
fence_rcd_serial β the rcd_serial fence agent. that's it, that's the name π¦
πΈ DESCRIPTION πΈ
fence_rcd_serial is a Power Fencing agent that operates a serial cable which toggles a reset of an opposing server by hitting the reset switch on its motherboard. the cable itself is simple β no power, no network, no moving parts. literally just vibes and copper. an example of the cable lives here: https://smcleod.net/rcd-stonith/, and the circuit design is available in the fence-agents src as SVG π
this fence agent accepts options on the command line as well as from stdin. fenced sends parameters through stdin when it execs the agent. but also, the agent can be run all by itself with command line options β which is super useful for testing and for turning outlets on or off from scripts. main character energy for a little serial cable, ngl π«Ά
Vendor URL: https://github.com/sammcj/fence_rcd_serial
π PARAMETERS π
one bullet per option, no skips, we don't do that here:
-o,--action=[action]β the fencing action. (Default Value:reboot)-m,--method=[method]β the method used to fence,onoff|cycle. (Default Value:cycle)--serial-port=[port]β the port of the serial device. (Default Value:/dev/ttyS0)-q,--quietβ disable logging to stderr. does not affect--verboseor--debug-fileor logging to syslog. (so don't come for the verbose girlies, they're still talking)-v,--verboseβ verbose mode. multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity. stack 'em like rings π--verbose-levelβ level of debugging detail in output. defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).-D,--debug-file=[debugfile]β write debug information to given file.-V,--versionβ display version information and exit.-h,--helpβ display help and exit.--plug-separator=[char]β separator for plug parameter when specifying more than 1 plug. (Default Value:,)--delay=[seconds]β wait X seconds before fencing is started. (Default Value:0)--disable-timeout=[true/false]β disable timeout (true/false). (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β wait X seconds for cmd prompt after login. (Default Value:5)--power-timeout=[seconds]β test X seconds for status change after ON/OFF. (Default Value:20)--power-wait=[seconds]β wait X seconds after issuing ON/OFF. (Default Value:2)--shell-timeout=[seconds]β wait X seconds for cmd prompt after issuing command. (Default Value:3)--stonith-status-sleep=[seconds]β sleep X seconds between status calls during a STONITH action. (Default Value:1)--retry-on=[attempts]β count of attempts to retry power on. (Default Value:1)
π₯ ACTIONS π₯
rebootβ reboot machine.monitorβ check the health of fence device.metadataβ display the XML metadata describing this resource.manpageβ the operational behavior of this is not known. (iconic honestly, we love a mystery π)validate-allβ validate if all required parameters are entered.
π STDIN PARAMETERS π
same energy, different delivery route β these are the ones that come in over stdin:
actionβ fencing action. (Default Value:reboot)methodβ method to fence,onoff|cycle. (Default Value:cycle)serial_portβ port of the serial device. (Default Value:/dev/ttyS0)quietβ disable logging to stderr. does not affect--verboseor--debug-fileor logging to syslog.verboseβ verbose mode. multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity.verbose_levelβ level of debugging detail in output. defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ write debug information to given file. Obsoletes:debugversionβ display version information and exit.helpβ display help and exit.plug_separatorβ separator for plug parameter when specifying more than 1 plug. (Default Value:,)delayβ wait X seconds before fencing is started. (Default Value:0)disable_timeoutβ disable timeout (true/false). (default:truewhen run from Pacemaker 2.0+)login_timeoutβ wait X seconds for cmd prompt after login. (Default Value:5)power_timeoutβ test X seconds for status change after ON/OFF. (Default Value:20)power_waitβ wait X seconds after issuing ON/OFF. (Default Value:2)shell_timeoutβ wait X seconds for cmd prompt after issuing command. (Default Value:3)stonith_status_sleepβ sleep X seconds between status calls during a STONITH action. (Default Value:1)retry_onβ count of attempts to retry power on. (Default Value:1)
ok that's the whole page bestie, every flag accounted for, no crumbs left behind π
sign-off time: this lil doc is fence_rcd_serial (Fence Agent) and it's dated 2009-10-20, filed under FENCE_AGENT(8). slay, go reset a server, ily πβ¨π
π¦ where this page comes from
- debian trixie: fence-agents-rcd-serial 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-rcd-serial 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-rcd-serial 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-rcd-serial 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-rcd-serial 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-rcd-serial 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-rcd-serial 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-rcd-serial 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms