FENCE_AGENT(8)

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

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

ok so this is a page from the System Manager's Manual bestie, and it's literally all about fence_bladecenter πŸ¦‹ it's giving very much "sysadmin group chat at 3am" energy and I'm obsessed. it documents FENCE_AGENT(8), so yeah, that's the manual name, that's the vibe, we move πŸ’…


✨ NAME ✨

fence_bladecenter β€” the fence agent for IBM BladeCenter πŸŽ€ no cap, that's the whole name section, short and iconic


🌸 DESCRIPTION 🌸

fence_bladecenter is a Power Fencing agent that you can use with IBM Bladecenters β€” but like, only the ones with firmware recent enough that it ships with telnet support, ok? don't come for me if your firmware is ancient πŸ™ˆ it logs into a Brocade chasis via telnet or ssh and then uses the command line interface to power blades on and off ⚑

and the way this agent is flexible?? it accepts options on the command line and from stdin 🫢 like, when fenced execs the agent it sends the parameters through stdin. but you can also just run the agent by itself with command line options, which is lowkey so useful for testing and for turning outlets on or off from scripts πŸ’…

Vendor URL: http://www.ibm.com 🌐


πŸ‘‘ PARAMETERS πŸ‘‘

here's the whole menu bestie, every single one, I'm not skipping a thing πŸ’–

  • -o, --action=[action] β€” the fencing action (Default Value: reboot) πŸ”
  • -c, --command-prompt=[prompt] β€” forces a Python regex for the command prompt (Default Value: ['system>']) 🐍
  • -k, --identity-file=[filename] β€” identity file (private key) for SSH πŸ”‘
  • -4, --inet4-only β€” forces the agent to use IPv4 addresses only πŸ“
  • -6, --inet6-only β€” forces the agent to use IPv6 addresses only 🌈
  • -a, --ip=[ip] β€” IP address or hostname of the fencing device. This parameter is always required. ⚠️
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with the device (Default Value: 23) πŸšͺ
  • -p, --password=[password] β€” login password or passphrase πŸ”
  • -S, --password-script=[script] β€” script to run to retrieve the password πŸ“œ
  • -n, --plug=[id] β€” physical plug number on the device, UUID, or identification of the machine. This parameter is always required. ⚠️
  • -x, --ssh β€” use SSH connection 🧚
  • --ssh-options=[options] β€” SSH options to use πŸ› οΈ
  • -l, --username=[name] β€” login name. This parameter is always required. ⚠️
  • -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 πŸ“’
  • --verbose-level β€” level of debugging detail in the 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 the given file πŸ“
  • -V, --version β€” display version information and exit πŸ‘‹
  • -h, --help β€” display help and exit πŸ†˜
  • --plug-separator=[char] β€” separator for the plug parameter when you're specifying more than 1 plug (Default Value: ,) βœ‚οΈ
  • -C, --separator=[char] β€” separator for the CSV created by the list operation (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 the cmd prompt after login (Default Value: 5) πŸ•”
  • --missing-as-off β€” missing port returns OFF instead of failure 🚫
  • --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: 10) 😴
  • --shell-timeout=[seconds] β€” wait X seconds for the cmd prompt after issuing a 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) πŸ”„
  • --ssh-path=[path] β€” path to the ssh binary (Default Value: /usr/bin/ssh) πŸ›€οΈ
  • --telnet-path=[path] β€” path to the telnet binary (Default Value: /usr/bin/telnet) πŸ›€οΈ

πŸ”₯ ACTIONS πŸ”₯

every action this agent can do, and yes I'm listing all of them πŸ’–

  • on β€” power on the machine. ⚑
  • off β€” power off the machine. πŸ’€
  • reboot β€” reboot the machine. πŸ”
  • status β€” this returns the status of the plug/virtual machine. πŸ“Š
  • list β€” list available plugs with aliases/virtual machines, if there's support for more than one device. returns N/A otherwise. πŸ“‹
  • list-status β€” list available plugs with aliases/virtual machines and their power state, if it can be obtained without additional commands. 🧐
  • monitor β€” check the health of the fence device. 🩺
  • metadata β€” display the XML metadata describing this resource. πŸ“„
  • manpage β€” the operational behavior of this is not known. πŸ€·β€β™€οΈ
  • validate-all β€” validate if all required parameters are entered. βœ…
ngl bestie, that manpage action is giving mystery box energy, we genuinely do not know what it does 😭

πŸŽ€ STDIN PARAMETERS πŸŽ€

same energy, different naming convention β€” these are the stdin versions, and I'm keeping every single Obsoletes note because that's important fr fr πŸ’œ

  • action β€” fencing action (Default Value: reboot) πŸ”
  • command_prompt β€” force Python regex for command prompt (Default Value: ['system>']). Obsoletes: cmd_prompt 🐍
  • identity_file β€” identity file (private key) for SSH πŸ”‘
  • inet4_only β€” forces the agent to use IPv4 addresses only πŸ“
  • inet6_only β€” forces the agent to use IPv6 addresses only 🌈
  • ip β€” IP address or hostname of the fencing device. This parameter is always required. Obsoletes: ipaddr ⚠️
  • ipport β€” TCP/UDP port to use for connection with the device (Default Value: 23) πŸšͺ
  • password β€” login password or passphrase. Obsoletes: passwd πŸ”
  • password_script β€” script to run to retrieve the password. Obsoletes: passwd_script πŸ“œ
  • plug β€” physical plug number on the device, UUID, or identification of the machine. This parameter is always required. Obsoletes: port ⚠️
  • ssh β€” use SSH connection. Obsoletes: secure 🧚
  • ssh_options β€” SSH options to use πŸ› οΈ
  • username β€” login name. This parameter is always required. Obsoletes: login ⚠️
  • 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 the 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 the given file. Obsoletes: debug πŸ“
  • version β€” display version information and exit πŸ‘‹
  • help β€” display help and exit πŸ†˜
  • plug_separator β€” separator for the plug parameter when you're specifying more than 1 plug (Default Value: ,) βœ‚οΈ
  • separator β€” separator for the CSV created by the list operation (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 the cmd prompt after login (Default Value: 5) πŸ•”
  • missing_as_off β€” missing port returns OFF instead of failure 🚫
  • 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: 10) 😴
  • shell_timeout β€” wait X seconds for the cmd prompt after issuing a 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) πŸ”„
  • ssh_path β€” path to the ssh binary (Default Value: /usr/bin/ssh) πŸ›€οΈ
  • telnet_path β€” path to the telnet binary (Default Value: /usr/bin/telnet) πŸ›€οΈ

heads up bestie: the three parameters marked always required β€” ip, plug and username β€” are literally always required, no exceptions, no skipping, do not pass go πŸ’…

and that's the whole page!! this was fence_bladecenter (Fence Agent), dated 2009-10-20, from the FENCE_AGENT(8) manual πŸ¦‹ tysm for reading, go forth and fence responsibly, ily, bye bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from