FENCE_AGENT(8)
π FENCE_AGENT(8) π
okay bestie, welcome to the fence_ibm_powervs page β that's the agent name, and the whole thing lives in section 8 of the System Manager's Manual (yes, FENCE_AGENT(8), that's the manual name, we're folding it in right here at the top like a lil bow π). This is the page that tells you how to fence IBM Power Virtual Server instances. Let's get into it β¨
πΈ NAME πΈ
fence_ibm_powervs β the fence agent for IBM PowerVS, no cap π
π¦ DESCRIPTION π¦
So like, fence_ibm_powervs is a power fencing agent for IBM Power Virtual Server (aka IBM PowerVS) and its whole job is fencing virtual server instances. That's it, that's the gig. She's a specialist π
Here's the tea: the fence agent takes options on the command line and from stdin. 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 genuinely so useful for testing and for turning outlets on or off from scripts. Little DIY queen π«Ά
Vendor URL: https://www.ibm.com β go say hi π
β¨ PARAMETERS β¨
Every single flag, bestie, we're not skipping a one π
--api-type=[private|public]β the API type, and your choices are literallyprivateorpublic. Default value?private. π--crn=[crn]β the CRN. And heads up, this parameter is always required. Always. Periodt.--instance=[instance]β the PowerVS Instance. Also always required, no exceptions π--proxy=[http://<URL>:<PORT>]β the network proxy. Default value is empty, so like, nothing.--region=[region]β the Region. You guessed it: always required πΈ--token=[token]β the API Token. And yep, always required. You're seeing a pattern, right?-o,--action=[action]β the fencing action. Default value:reboot. π-m,--method=[method]β the method to fence, eitheronofforcycle. Default value:onoff.-n,--plug=[id]β the physical plug number on the device, or a UUID, or some identification of the machine. This parameter is always required. (Also it obsoletesporton the stdin side, keep reading bestie.)-q,--quietβ disables logging to stderr. And before you ask: no, it does not affect--verbose, or--debug-file, or logging to syslog. She's specific about her boundaries π-v,--verboseβ verbose mode! And you can stack multiple-vflags on the command line (like-vvv) to crank the verbosity up. Go off π--verbose-levelβ the level of debugging detail in the output. Defaults to however many--verboseflags you put on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin). π§-D,--debug-file=[debugfile]β write debug information to 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 fencing is started. Default value:0β³--disable-timeout=[true/false]β disable timeout,true/falsestyle. 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:120β‘--power-wait=[seconds]β wait X seconds after issuing ON/OFF. Default value:15β±οΈ--shell-timeout=[seconds]β wait X seconds for the cmd prompt after issuing a command. Default value:500π--stonith-status-sleep=[seconds]β sleep X seconds between status calls during a STONITH action. Default value:10π΄--retry-on=[attempts]β how many attempts to retry power on. Default value:1π
π₯ ACTIONS π₯
These are the moves she can make, bestie. Vibe check each one π
onβ power on the machine. β¨offβ power off the machine. πrebootβ reboot the machine. πstatusβ 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. π€·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 what it says. We're all just living with that π)validate-allβ validate if all required parameters are entered. β
π STDIN PARAMETERS π
Same energy, different door β these are the parameter names as they come in over stdin. Note the underscores, bestie, they matter πΈ
api_typeβ API-type (private|public). Default value:private. Obsoletes:api-typeπcrnβ the CRN. This parameter is always required.instanceβ PowerVS Instance. This parameter is always required.proxyβ network proxy. Default value is empty.regionβ Region. This parameter is always required.tokenβ API Token. This parameter is always required.actionβ fencing action. Default value:reboot.methodβ method to fence (onoff|cycle). Default value:onoff.plugβ physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes:portπquietβ 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: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:,separatorβ separator for CSV created bylistoperation. Default value:,delayβ wait X seconds before fencing is started. Default value:0disable_timeoutβ disable timeout (true/false). Default:truewhen run from Pacemaker 2.0+login_timeoutβ wait X seconds for cmd prompt after login. Default value:5power_timeoutβ test X seconds for status change after ON/OFF. Default value:120power_waitβ wait X seconds after issuing ON/OFF. Default value:15shell_timeoutβ wait X seconds for cmd prompt after issuing command. Default value:500stonith_status_sleepβ sleep X seconds between status calls during a STONITH action. Default value:10retry_onβ count of attempts to retry power on. Default value:1
and that's the whole page, bestie, you ate it π β¨
This wasfence_ibm_powervs(Fence Agent), dated2009-10-20, fromFENCE_AGENT(8). Love her, she's iconic ππ¦π
π¦ where this page comes from
- centos-stream 10: fence-agents-ibm-powervs 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-ibm-powervs 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-ibm-powervs 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu resolute: fence-agents-ibm-powervs 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-ibm-powervs 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