FENCE_AGENT(8)
π FENCE_NETIO β okay bestie, let's talk power fencing π
So this is a page from the Fence Agent manual (section 8, system manager's manual, iykyk), and the star of the show is fence_netio. Grab a snack, we're doing this. π
β¨ NAME β¨
fence_netio β the Power Fencing agent for the Koukaam NETIO-230B. That's it, that's the name. π
πΈ DESCRIPTION πΈ
Okay so fence_netio is a Power Fencing agent, and it's the one you pair with a Koukaam NETIO-230B Power Distribution Unit. The way it works: it logs into the device over telnet and reboots whichever outlet you point at. No cap. π₯
π¨ Real talk though: do not leave lengthy telnet connections hanging around while a GFS cluster is running. Because that connection will block any necessary fencing actions, and blocking fencing is likeβ¦ the whole opposite of the vibe. π
This agent takes options on the command line and from stdin, bestie β both. 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 perfect for testing and for flipping outlets on or off from scripts. Main character energy for a shell script. π
Vendor URL: http://www.koukaam.se/ π
π PARAMETERS π
One bullet per option, no skipping, we're thorough in this house. π
-o,--action=[action]β the fencing action. (Default Value:reboot)-a,--ip=[ip]β IP address or hostname of the fencing device. This parameter is always required. Like, always. π-u,--ipport=[port]β TCP/UDP port used for the connection with the device. (Default Value:1234)-p,--password=[password]β the login password or passphrase. π€«-S,--password-script=[script]β a script to run to go retrieve that password for you.-n,--plug=[id]β physical plug number on the device, or the UUID, or the identification of the machine. This parameter is always required. fr fr.-l,--username=[name]β the login name. This parameter is always required. periodt.-q,--quietβ disables logging to stderr. It does not affect--verbose,--debug-file, or logging to syslog. So don't get it twisted. π-v,--verboseβ verbose mode. You can stack multiple-vflags on the command line (like-vvv, go off) to crank the verbosity up. β¨--verbose-levelβ how much debugging detail lands in the output. It 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. π«Ά--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 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 the 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 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]β how many attempts to retry power on. (Default Value:1)--telnet-path=[path]β path to the telnet binary. (Default Value:/usr/bin/telnet)
π₯ ACTIONS π₯
Here's the menu of things it can do, bestie. Pick your fighter. π₯
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. Otherwise it returnsN/A. Sorry babe. π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. (Yeah, that's literally what it says. We're just the messenger. π)validate-allβ validate if all required parameters are entered. β
π¦ STDIN PARAMETERS π¦
Same energy, but for when fenced is feeding params in through stdin. Note the underscore names, they're the stdin twins of the flags above. π
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:1234)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 exit.helpβ display help and exit.plug_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 thing, you ate it, I'm so proud of you. π«Ά This lil' beauty is the fence_netio (Fence Agent) page, dated 2009-10-20, and it lives in the Fence Agent manual, section 8. Go fence something responsibly, bestie. πβ¨
π¦ where this page comes from
- debian trixie: fence-agents-netio 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-netio 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-netio 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-netio 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-netio 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-netio 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-netio 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-netio 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