FENCE_AGENT(8)
π FENCE_AGENT(8) π
okay bestie, welcome to the System Manager's Manual section, we're doing the fence agent thing today and honestly? it's giving iconic. β¨
πΈ NAME πΈ
fence_eps β Fence agent for ePowerSwitch
fence_epsr2 β Fence agent for ePowerSwitch R2 and newer (symlink)
π¦ DESCRIPTION π¦
So. fence_epsr2 is a Power Fencing agent that you can use with the ePowerSwitch 8M+ power switch to fence connected machines. And like, it ONLY works on 8M+ devices, because those are the ones that support the hidden page feature. no cap. π
The way it works is it connects to the hidden page and passes the appropriate arguments to a GET request. Which means β and this is important, bestie β the hidden page feature must be enabled and properly configured. it's not optional, it's not a vibe, it's a requirement. π«Ά
NOTE: In most cases you want to usefence_epsr2, becausefence_epsonly works with older hardware. like, legacy behavior, we love her but she's dated. π
The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. But you can also run the agent by itself with command line options β which is super useful for testing and for turning outlets on or off from scripts. main character energy fr fr. β¨
Vendor URL: https://www.neol.com
π PARAMETERS π
okay here's the whole roster, no skipping, every single one:
-o,--action=[action]β Fencing action (Default Value:reboot)-a,--ip=[ip]β IP address or hostname of fencing device. This parameter is always required.-u,--ipport=[port]β TCP/UDP port to use for connection with device (Default Value:80)-c,--page=[page]β Name of hidden page (Default Value:hidden.htm)-p,--password=[password]β Login password or passphrase-S,--password-script=[script]β Script to run to retrieve password-n,--plug=[id]β Physical plug number on device, UUID or identification of machine. This parameter is always required.-l,--username=[name]β Login name-q,--quietβ Disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.-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 plug parameter when specifying more than 1 plug (Default Value:,)-C,--separator=[char]β Separator for CSV created bylistoperation (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)--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)
β ACTIONS β
the whole menu of things this agent can do for you:
onβ Power on machine.offβ Power off machine.rebootβ Reboot machine.statusβ This returns the status of the plug/virtual machine.listβ List available plugs with aliases/virtual machines if there is support for more then one device. ReturnsN/Aotherwise.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 fence devicemetadataβ 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.
π STDIN PARAMETERS π
same energy, but now they're coming in through stdin instead of the command line. fenced does this when it execs the agent, iykyk. π
actionβ Fencing action (Default Value:reboot)ipβ IP address or hostname of fencing device. This parameter is always required. Obsoletes:ipaddripportβ TCP/UDP port to use for connection with device (Default Value:80)pageβ Name of hidden page (Default Value:hidden.htm) Obsoletes:hidden_pagepasswordβ Login password or passphrase Obsoletes:passwdpassword_scriptβ Script to run to retrieve password Obsoletes:passwd_scriptplugβ Physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes:portusernameβ Login name 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:,)separatorβ Separator for CSV created bylistoperation (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, we ate and left no crumbs π
this was fence_eps (Fence Agent), dated 2009-10-20, living inside the FENCE_AGENT(8) manual. go forth and fence responsibly π
β¨πΈ
π¦ where this page comes from
- centos-stream 10: fence-agents-eps 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian trixie: fence-agents-eps 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-eps 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-eps 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-eps 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-eps 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-eps 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-eps 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-eps 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