FENCE_AGENT(8)
π fence_pve β the FENCE_AGENT(8) glow-up π
okay bestie, welcome to the manual page for fence_pve, from the FENCE_AGENT(8) family, living in the System Manager's Manual section. grab a strawberry π and let's get into it.
β¨ NAME β¨
fence_pve β a fencing agent for the Proxmox Virtual Environment π«Ά
πΈ DESCRIPTION πΈ
fence_pve is a Power Fencing agent for virtual machines acting as nodes in a virtualized cluster. it's giving "i decide who's on and who's off" energy, and honestly? iconic. π
here's the vibe: the fence agent accepts options on the command line as well as from stdin. when fenced execs the agent, it sends parameters through stdin. but also β and this is the fun part β the agent can be run by itself with command line options. that's lowkey so useful for testing and for turning outlets on or off from scripts. no cap. π₯
Vendor URL: http://www.proxmox.com/
π PARAMETERS π
every single one, bestie. no skipping. that's the rule. π
-o,--action=[action]β the fencing action. (Default Value:reboot)-a,--ip=[ip]β IP Address or Hostname of a node within the Proxmox cluster. this parameter is always required. like, always always. π-u,--ipport=[port]β TCP/UDP port to use for connection with device. (Default Value:8006)-m,--method=[method]β method to fence (onoff|cycle). (Default Value:onoff)-p,--password=[password]β login password or passphrase π-S,--password-script=[script]β script to run to retrieve password-n,--plug=[id]β Id of the virtual machine. this parameter is always required. yeah, again. required required. π-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-l,--username=[name]β login name. (Default Value:root@pam)-N,--pve-node=[node_name]β Proxmox node name on which machine is located. (Must be specified if not using--pve-node-auto)-A,--pve-node-autoβ automatically select proxmox node. (this option overrides--pve-node)--vmtypeβ virtual machine typelxcorqemu. (Default:qemu) (Default Value:qemu)--nodenameβ replaced by--pve-node-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. go off, stack them. β¨--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 by 'list' operation. (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)--gnutlscli-path=[path]β path tognutls-clibinary. (Default Value:/usr/bin/gnutls-cli)
π¦ ACTIONS π¦
the things it can do. main character behavior, fr fr. β¨
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 device πmetadataβ display the XML metadata describing this resource.manpageβ the operational behavior of this is not known. (bestie. nobody knows. it's a mystery. π« )validate-allβ validate if all required parameters are entered.
π STDIN PARAMETERS π
same energy, snake_case edition. everything arrives through stdin when fenced execs the agent. π§
actionβ fencing action. (Default Value:reboot)ipβ IP Address or Hostname of a node within the Proxmox cluster. this parameter is always required. Obsoletes:ipaddripportβ TCP/UDP port to use for connection with device. (Default Value:8006)methodβ method to fence (onoff|cycle). (Default Value:onoff)passwordβ login password or passphrase. Obsoletes:passwdpassword_scriptβ script to run to retrieve password. Obsoletes:passwd_scriptplugβ Id of the virtual machine. this parameter is always required. Obsoletes:portsslβ use SSL connection with verifying certificate. (Default Value:1)ssl_insecureβ use SSL connection without verifying certificate π¨ssl_secureβ use SSL connection with verifying certificateusernameβ login name. (Default Value:root@pam) Obsoletes:loginpve_nodeβ Proxmox node name on which machine is located. (Must be specified if not using--pve-node-auto)pve_node_autoβ automatically select proxmox node. (this option overrides--pve-node)vmtypeβ virtual machine typelxcorqemu. (Default:qemu) (Default Value:qemu)nodenameβ replaced by--pve-node. Obsoletes:node_namequietβ 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 by 'list' operation. (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)gnutlscli_pathβ path tognutls-clibinary. (Default Value:/usr/bin/gnutls-cli)
β οΈ real talk:--ssl-insecureandssl_insecuremean no certificate verification. that's the vibes, and they are risky vibes. also--nodename/nodenameare replaced by--pve-node, so use the new one, bestie. π«Ά
and that's the whole page!! this one is fence_pve (Fence Agent), dated 2009-10-20, and it lives at the bottom of FENCE_AGENT(8). π thanks for reading, you ate this up, periodt. πβ¨π
π¦ where this page comes from
- debian trixie: fence-agents-pve 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-pve 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-pve 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-pve 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-pve 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-pve 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-pve 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-pve 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