FENCE_AGENT(8)

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

πŸ’– FENCE_AGENT(8) πŸ’–

okay so bestie, welcome to the FENCE_AGENT manual, section 8, straight out of the System Manager's Manual. this one's about fence_powerman and it's lowkey iconic, let's get into it ✨


🌸 NAME 🌸

fence_powerman β€” Fence Agent for Powerman 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so fence_powerman is a Power Fence Agent for the Powerman management utility, and it was literally designed for LLNL systems. no cap. it's giving specialized.

the fence agent is so flexible bestie β€” it accepts options on the command line as well as from stdin. when fenced execs the agent, it sends parameters through stdin. but the agent can also be run all by itself with command line options, which is highkey useful for testing and for turning outlets on or off from scripts. main character energy fr fr πŸ’…

Vendor URL: https://github.com/chaos/powerman


πŸŽ€ PARAMETERS πŸŽ€

  • -o, --action=[action] β€” the fencing action (Default Value: reboot)
  • -a, --ip=[ip] β€” IP address or hostname of fencing device
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with device (Default Value: 10101)
  • -n, --plug=[ip] β€” IP address or hostname of fencing device (together with --port-as-ip)
  • -q, --quiet β€” disable logging to stderr. does not affect --verbose or --debug-file or logging to syslog.
  • -v, --verbose β€” verbose mode. multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity. stack 'em like bracelets πŸ’œ
  • --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: 3)
  • --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)
  • --port-as-ip β€” make "port/plug" to be an alias to IP address
  • --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: 3)
  • --powerman-path=[path] β€” path to powerman binary (Default Value: /usr/bin/powerman)
  • --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 ⭐

  • on β€” power on machine. πŸ’‘
  • off β€” power off machine.
  • reboot β€” reboot machine.
  • status β€” this returns the status of the plug/virtual 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. πŸ™ˆ (not me putting that in a manual, but ok, we're being honest)
  • validate-all β€” validate if all required parameters are entered.

🌈 STDIN PARAMETERS 🌈

  • action β€” fencing action (Default Value: reboot)
  • ip β€” IP address or hostname of fencing device Obsoletes: ipaddr
  • ipport β€” TCP/UDP port to use for connection with device (Default Value: 10101)
  • plug β€” IP address or hostname of fencing device (together with --port-as-ip) Obsoletes: port
  • 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: 3)
  • 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)
  • port_as_ip β€” make "port/plug" to be an alias to IP address
  • 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: 3)
  • powerman_path β€” path to powerman binary (Default Value: /usr/bin/powerman)
  • 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, we ate and left zero crumbs πŸ’…βœ¨

this lil beauty is fence_powerman (Fence Agent), dated 2009-10-20, and it lives in section FENCE_AGENT(8) β€” she's been serving looks since 2009 and she's still here πŸ‘‘πŸ¦‹