FENCE_AGENT(8)
π¦ 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--verboseor--debug-fileor logging to syslog, just so you know-v,--verboseβ verbose mode. Multiple-vflags 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--verboseflags specified on the command line, or to1ifverbose=1in 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:truewhen 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 thegnutls-clibinary (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:ipaddripportβ TCP/UDP port to use for connection with device (Default Value:443)passwordβ Login password or passphrase. Obsoletes:passwdpassword_scriptβ Script to run to retrieve password. Obsoletes:passwd_scriptplugβ IP address or hostname of fencing device (together with--port-as-ip). Obsoletes:portredfish_uriβ Base or starting Redfish URI (Default Value:/redfish/v1). Obsoletes:redfish-urisslβ Use SSL connection with verifying certificate (Default Value:1)ssl_insecureβ Use SSL connection without verifying certificatessl_secureβ Use SSL connection with verifying certificatesystems_uriβ Redfish Systems resource URI, i.e./redfish/v1/Systems/System.Embedded.1. Obsoletes:systems-uriusernameβ Login name. This parameter is always required. Obsoletes:loginquietβ Disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.verboseβ Verbose mode. Multiple-vflags 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--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ Write debug information to given file. Obsoletes:debugversionβ Display version information and exithelpβ Display help and exitplug_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:truewhen 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 addresspower_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 tognutls-clibinary (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
- centos-stream 10: fence-agents-redfish 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian trixie: fence-agents-redfish 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-redfish 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-redfish 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-redfish 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-redfish 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-redfish 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-redfish 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-redfish 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-redfish 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-redfish 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-redfish 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms