FENCE_AGENT(8)

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

✨ FENCE_AGENT(8) ✨

okay bestie, so this is fence_dummy β€” the Dummy fence agent, from the System Manager's Manual, section 8 (that's the sysadmin-y one πŸ’…). buckle up, it's giving very unserious energy but the facts are 100% real.


πŸŽ€ NAME πŸŽ€

fence_dummy β€” Dummy fence agent. yeah. that's the whole name. iconic of her honestly.


🌸 DESCRIPTION 🌸

so like, fence_dummy. that's it. that's the agent.

the fence agent is flexible like that β€” it takes options on the command line and from stdin. when fenced execs the agent, it sends parameters through stdin. but you can also just run the agent all by yourself with command line options, which is lowkey so useful for testing and for turning outlets on or off from scripts. no cap. 🫢

Vendor URL: http://www.example.com


πŸ’– PARAMETERS πŸ’–

  • -o, --action=[action] β€” the fencing action you want. (Default Value: reboot)
  • --random_sleep_range=[seconds] β€” throws in a sleep somewhere between 1 and X seconds. this one's for testing, bestie. 🧚
  • --status-file=[file] β€” the file that holds the status. (Default Value: /tmp/fence_dummy.status)
  • --type=[type] β€” which flavour of dummy fence agent you want. (Default Value: file)
  • -q, --quiet β€” kills logging to stderr. heads up though: it does not affect --verbose, --debug-file, or logging to syslog. she's specific like that. πŸ’…
  • -v, --verbose β€” verbose mode, babes. you can stack multiple -v flags on the command line (like, -vvv) to crank the verbosity up. go off. πŸ”₯
  • --verbose-level β€” how much debugging detail shows up in the output. defaults to the number of --verbose flags you dropped on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • -D, --debug-file=[debugfile] β€” writes debug info to the file you give it.
  • -V, --version β€” shows version info and dips. ✌️
  • -h, --help β€” shows help and dips.
  • --plug-separator=[char] β€” the separator used for the plug parameter when you're specifying more than 1 plug. (Default Value: ,)
  • --delay=[seconds] β€” waits X seconds before fencing even starts. (Default Value: 0)
  • --disable-timeout=[true/false] β€” disables the timeout, true/false style. (default: true when run from Pacemaker 2.0+)
  • --login-timeout=[seconds] β€” waits X seconds for the cmd prompt after login. (Default Value: 5)
  • --power-timeout=[seconds] β€” tests for X seconds waiting for the status to change after ON/OFF. (Default Value: 20)
  • --power-wait=[seconds] β€” waits X seconds after issuing ON/OFF. (Default Value: 0)
  • --shell-timeout=[seconds] β€” waits X seconds for the cmd prompt after issuing a command. (Default Value: 3)
  • --stonith-status-sleep=[seconds] β€” sleeps X seconds between status calls during a STONITH action. (Default Value: 1)
  • --retry-on=[attempts] β€” how many attempts to retry power on. (Default Value: 1)

⭐ ACTIONS ⭐

  • on β€” Power on machine. let there be light. ✨
  • off β€” Power off machine. bye bestie. πŸ’€
  • reboot β€” Reboot machine. the classic glow-up-and-restart.
  • status β€” This returns the status of the plug/virtual machine.
  • monitor β€” Check the health of fence device. doing a little vibe check on it. 🩺
  • metadata β€” Display the XML metadata describing this resource.
  • manpage β€” The operational behavior of this is not known. (not me finding out mid-rewrite 😭)
  • validate-all β€” Validate if all required parameters are entered. a little homework check. πŸ“

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

  • action β€” Fencing action (Default Value: reboot)
  • random_sleep_range β€” Issue a sleep between 1 and X seconds. Used for testing.
  • status_file β€” File with status (Default Value: /tmp/fence_dummy.status)
  • type β€” Type of the dummy fence agent (Default Value: file)
  • 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: 0)
  • 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)

and that's the whole page, bestie!! πŸŽ€

this absolute baddie of a manpage comes to you courtesy of fence_dummy (Fence Agent), dated 2009-10-20, living its best life in FENCE_AGENT(8). she's been iconic since 2009 and she's not stopping. periodt. πŸ‘‘πŸ’œ