FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 3 versions
, in debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 type lxc or qemu. (Default: qemu) (Default Value: qemu)
  • --nodename β€” replaced by --pve-node
  • -q, --quiet β€” disable logging to stderr. does not affect --verbose or --debug-file or logging to syslog.
  • -v, --verbose β€” verbose mode. multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in 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 to gnutls-cli binary. (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. returns N/A otherwise.
  • 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: ipaddr
  • ipport β€” 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: passwd
  • password_script β€” script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” Id of the virtual machine. this parameter is always required. Obsoletes: port
  • 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
  • username β€” login name. (Default Value: root@pam) Obsoletes: login
  • pve_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 type lxc or qemu. (Default: qemu) (Default Value: qemu)
  • nodename β€” replaced by --pve-node. Obsoletes: node_name
  • quiet β€” disable logging to stderr. does not affect --verbose or --debug-file or logging to syslog.
  • verbose β€” verbose mode. multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in 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 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 to gnutls-cli binary. (Default Value: /usr/bin/gnutls-cli)

⚠️ real talk: --ssl-insecure and ssl_insecure mean no certificate verification. that's the vibes, and they are risky vibes. also --nodename / nodename are 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