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) β€” fence_redfish, bestie edition ✨

okay so hi!! welcome to the System Manager's Manual section 8, where we're talking about fence_redfish β€” a power fencing agent, and yes it's exactly as iconic as it sounds πŸ’…


πŸ’– NAME πŸ’–

fence_redfish β€” Power Fencing agent for Redfish 🐟✨ (no, not the fish, the API, but honestly? equally powerful)


🌸 DESCRIPTION 🌸

so basically, fence_redfish is a Power Fencing agent that you pair up with Out-of-Band controllers that speak Redfish APIs. What do those controllers do? They give you remote access so you can control the power on a server. From, like, anywhere. main character energy honestly πŸ”₯

The fence agent takes options from the command line and from stdin β€” both!! Fenced sends its parameters through stdin when it execs the agent. But also, you can just run the agent by itself with command line options, which is super handy for testing and for turning outlets on or off from scripts. no cap 🫢

Vendor URL: http://www.dmtf.org


✨ PARAMETERS ✨

here's the whole menu, and I do mean the whole menu β€” every single one of them, periodt:

  • -o, --action=[action] β€” the fencing action (Default Value: reboot)
  • -a, --ip=[ip] β€” IP address or hostname of the fencing device
  • -u, --ipport=[port] β€” TCP/UDP port to use for the connection with the device (Default Value: 443)
  • -p, --password=[password] β€” login password or passphrase
  • -S, --password-script=[script] β€” script to run to retrieve the password
  • -n, --plug=[ip] β€” IP address or hostname of the fencing device (this one works together with --port-as-ip)
  • --redfish-uri=[uri] β€” base or starting Redfish URI (Default Value: /redfish/v1)
  • -z, --ssl β€” use SSL connection with verifying certificate (Default Value: 1)
  • --ssl-insecure β€” use SSL connection without verifying certificate
  • --ssl-secure β€” use SSL connection with verifying certificate
  • --systems-uri=[uri] β€” Redfish Systems resource URI, i.e. /redfish/v1/Systems/System.Embedded.1
  • -l, --username=[name] β€” login name. This parameter is always required. like, always always πŸ™ˆ
  • -q, --quiet β€” disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog, just so you know
  • -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 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 the 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)
  • --port-as-ip β€” make "port/plug" 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: 0)
  • --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)
  • --gnutlscli-path=[path] β€” path to the gnutls-cli binary (Default Value: /usr/bin/gnutls-cli)

πŸŽ€ ACTIONS πŸŽ€

the whole vibe check of things you can ask it to do:

  • 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 the fence device 🩺
  • metadata β€” Display the XML metadata describing this resource.
  • manpage β€” The operational behavior of this is not known. (yeah, that's literally all it says, I'm not making it up πŸ™ˆ)
  • validate-all β€” Validate if all required parameters are entered. βœ…
  • diag β€” Pulse a diagnostic interrupt to the processor(s).

🌈 STDIN PARAMETERS 🌈

same energy, different delivery method β€” these come in over stdin, and some of them have obsoletes, which we are not hiding:

  • 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: 443)
  • password β€” Login password or passphrase. Obsoletes: passwd
  • password_script β€” Script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” IP address or hostname of fencing device (together with --port-as-ip). Obsoletes: port
  • redfish_uri β€” Base or starting Redfish URI (Default Value: /redfish/v1). Obsoletes: redfish-uri
  • ssl β€” Use SSL connection with verifying certificate (Default Value: 1)
  • ssl_insecure β€” Use SSL connection without verifying certificate
  • ssl_secure β€” Use SSL connection with verifying certificate
  • systems_uri β€” Redfish Systems resource URI, i.e. /redfish/v1/Systems/System.Embedded.1. Obsoletes: systems-uri
  • 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 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)
  • 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: 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)
  • gnutlscli_path β€” Path to gnutls-cli binary (Default Value: /usr/bin/gnutls-cli)

okay that's the whole page bestie, you ate it πŸ’…βœ¨ and for the cute sign-off: this is the fence_redfish (Fence Agent) page, dated 2009-10-20, living in FENCE_AGENT(8). iconic, timeless, obsessed πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from