FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 3 versions
, in debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ 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 --verbose or --debug-file or logging to syslog. (so don't come for the verbose girlies, they're still talking)
  • -v, --verbose β€” verbose mode. multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in 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: true when 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 --verbose or --debug-file or logging to syslog.
  • verbose β€” verbose mode. multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • debug_file β€” write debug information to given file. Obsoletes: debug
  • version β€” 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: true when 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