FENCE_AGENT(8)
π FENCE_AGENT(8) β the fence_sanbox2 era π
okay bestie, sit down, hydrate, because we're about to talk about fence_sanbox2 from the System Manager's Manual, section 8. yes it's a fencing agent. no it's not about swords. well. kind of about swords. π‘οΈβ¨
πΈ NAME πΈ
fence_sanbox2 β the fence agent for QLogic SANBox2 FC switches, and she is serving. π
π¦ DESCRIPTION π¦
so fence_sanbox2 is an I/O Fencing agent, right, and she's built to hang out with QLogic SANBox2 FC switches. what she does is she logs into a SANBox2 switch via telnet and then disables a specified port. and the way that disabling the port a machine is connected to effectively fences that machine β like, that's the whole thing, that's the vibe. π
real talk though: lengthy telnet connections to the switch should be avoided while a GFS cluster is running, because that connection will block any necessary fencing actions. so don't be extra about it. π
the fence agent accepts options on the command line as well as from stdin, which is very main character of her. Fenced sends parameters through stdin when it execs the agent. but you can also run the agent by itself with command line options, and that's lowkey useful for testing and for turning outlets on or off from scripts. iykyk. π«Ά
Vendor URL: http://www.qlogic.com β go say hi. π
β¨ PARAMETERS β¨
here's the lineup, every single one, no skips, periodt:
-o,--action=[action]β the fencing action, bestie. (Default Value:off)-c,--command-prompt=[prompt]β force a Python regex for the command prompt. yes, a regex. (Default Value:[' #> '])-a,--ip=[ip]β IP address or hostname of the fencing device. This parameter is always required. no ip, no service. π-u,--ipport=[port]β the TCP/UDP port used to connect with the device. (Default Value:23)-p,--password=[password]β login password or passphrase. secrets stay secrets. π-S,--password-script=[script]β a script to run to go retrieve that password.-n,--plug=[id]β physical plug number on the device, UUID, or identification of the machine. This parameter is always required.-l,--username=[name]β login name. This parameter is always required. hello, it's me. π-q,--quietβ disable logging to stderr. and just so we're clear: this does not affect--verboseor--debug-fileor logging to syslog. she's selective. π-v,--verboseβ verbose mode. and you can stack multiple-vflags on the command line (e.g.,-vvv) to crank the verbosity up. more v's, more words. π₯--verbose-levelβ the level of debugging detail in the output. defaults to the number of--verboseflags you specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).-D,--debug-file=[debugfile]β write debug information into the given file. π-V,--versionβ display version information and exit. bye!-h,--helpβ display help and exit. also bye!--plug-separator=[char]β the separator for the plug parameter when you're specifying more than 1 plug. (Default Value:,)-C,--separator=[char]β the separator for the CSV created by thelistoperation. (Default Value:,)--delay=[seconds]β wait X seconds before the fencing is started. (Default Value:0)--disable-timeout=[true/false]β disable the timeout (true/false). (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β wait X seconds for the cmd prompt after login. (Default Value:5)--power-timeout=[seconds]β test X seconds for a 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 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]β the count of attempts to retry power on. (Default Value:1)--telnet-path=[path]β the path to the telnet binary. (Default Value:/usr/bin/telnet)
π ACTIONS π
the moves she can make. pick your fighter:
onβ power on the machine. βoffβ power off 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. returnsN/Aotherwise. sometimes the answer is just N/A and that's okay. π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. wellness check. π©Ίmetadataβ display the XML metadata describing this resource.manpageβ the operational behavior of this is not known. (yes, really, that's the note. we're being honest here. π)validate-allβ validate whether all required parameters are entered.
π STDIN PARAMETERS π
same energy, snake_case edition. Fenced sends these through stdin:
actionβ fencing action (Default Value:off)command_promptβ force Python regex for command prompt (Default Value:[' #> ']). Obsoletes:cmd_promptipβ 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:23)passwordβ 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. 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:,)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:truewhen 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)telnet_pathβ path to telnet binary (Default Value:/usr/bin/telnet)
okay that's the whole page, you ate it, no crumbs left. π and for the record, this little masterpiece is fence_sanbox2 (Fence Agent), dated 2009-10-20, living its best life under FENCE_AGENT(8). iconic behavior, honestly. mwah. π«Άβ¨
π¦ where this page comes from
- debian trixie: fence-agents-sanbox2 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-sanbox2 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-sanbox2 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-sanbox2 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-sanbox2 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-sanbox2 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-sanbox2 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-sanbox2 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