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_AGENT(8) β€” like, the whole vibe πŸ’–

okay bestie, sit down, hydrate, and let me tell you about fence_vmware, from the System Manager's Manual. this one's the fence agent page, and we're gonna get through it together, no cap. πŸ¦‹


✨ NAME ✨

fence_vmware β€” Fence agent for VMWare. that's it, that's the name, short and iconic. πŸ‘‘


🌸 DESCRIPTION 🌸

okay so fence_vmware is a Power Fencing agent, and it's the one you use with VMware ESX, VMware ESXi, or VMware Server to fence virtual machines. it's giving "i control the vibes (and the power state) here." πŸ’…

Before you can even use this agent, you have to install VI Perl Toolkit or the vmrun command on every node you want to make fencing. every. single. one. no skipping, bestie. 🫢

VI Perl Toolkit is preferred for VMware ESX/ESXi and Virtual Center. vmrun command is the only solution for VMware Server 1/2 β€” and listen, this command will work against ESX/ESXi 3.5 up2 and VC up2 too, but heads up: it is not cluster aware! 😭 vmrun comes as part of the VMware VIX API SDK package. VI Perl and VIX API SDK are both available from VMware web pages β€” and ngl, not in RHEL repository! πŸ™ˆ

You can specify the type of VMware you're connecting to with the -d switch (or vmware_type for stdin). Possible values are esx, server2 and server1. Default value is esx, which will use VI Perl. With server1 and server2, the vmrun command is used. ✨

After you've successfully installed VI Perl Toolkit or VIX API, you should be able to run fence_vmware_helper (part of this agent) or the vmrun command. This agent supports only vmrun from version 2.0.0 (VIX API 1.6.0). periodt. πŸ’―

The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. The agent can be run by itself with command line options. This is useful for testing and for turning outlets on or off from scripts. lowkey the most useful thing ever. 🌈

Vendor URL: http://www.vmware.com


πŸŽ€ PARAMETERS πŸŽ€

  • -o, --action=[action] β€” the fencing action (Default Value: reboot) ⚑
  • -e, --exec=[command] β€” command to execute
  • -k, --identity-file=[filename] β€” identity file (private key) for SSH πŸ”‘
  • -4, --inet4-only β€” forces the agent to use IPv4 addresses only
  • -6, --inet6-only β€” forces the agent to use IPv6 addresses only
  • -a, --ip=[ip] β€” IP address or hostname of the fencing device
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with device (Default Value: 22)
  • -p, --password=[password] β€” login password or passphrase 🀫
  • -S, --password-script=[script] β€” script to run to retrieve password
  • -n, --plug=[ip] β€” IP address or hostname of fencing device (together with --port-as-ip)
  • -x, --ssh β€” use SSH connection (Default Value: 1)
  • --ssh-options=[options] β€” SSH options to use
  • -l, --username=[name] β€” login name. This parameter is always required. like, always. mandatory. πŸ’€
  • -d, --vmware_type=[type] β€” type of VMware to connect (Default Value: esx)
  • -s, --vmware-datacenter=[dc] β€” VMWare datacenter filter
  • -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. stack 'em like bracelets bestie 🫢
  • --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: ,)
  • --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)
  • --port-as-ip β€” make "port/plug" to be an alias to IP address
  • --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)
  • --ssh-path=[path] β€” path to ssh binary (Default Value: /usr/bin/ssh)

πŸ”₯ ACTIONS πŸ”₯

  • on β€” power on machine. ⚑
  • off β€” power off machine.
  • reboot β€” reboot machine.
  • status β€” this returns the status of the plug/virtual machine. πŸ‘€
  • monitor β€” check the health of fence device 🩺
  • metadata β€” display the XML metadata describing this resource.
  • manpage β€” the operational behavior of this is not known. πŸ’€ (fr fr, that's what it says, i'm not making this up)
  • validate-all β€” validate if all required parameters are entered. βœ…

🌈 STDIN PARAMETERS 🌈

  • action β€” fencing action (Default Value: reboot)
  • exec β€” command to execute
  • identity_file β€” identity file (private key) for SSH
  • inet4_only β€” forces agent to use IPv4 addresses only
  • inet6_only β€” forces agent to use IPv6 addresses only
  • ip β€” IP address or hostname of fencing device. Obsoletes: ipaddr
  • ipport β€” TCP/UDP port to use for connection with device (Default Value: 22)
  • password β€” login password or passphrase. Obsoletes: passwd
  • password_script β€” script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” IP address or hostname of fencing device (together with --port-as-ip). Obsoletes: port
  • ssh β€” use SSH connection (Default Value: 1). Obsoletes: secure
  • ssh_options β€” SSH options to use
  • username β€” login name. This parameter is always required. Obsoletes: login
  • vmware_type β€” type of VMware to connect (Default Value: esx)
  • vmware_datacenter β€” VMWare datacenter filter
  • 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: ,)
  • 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)
  • port_as_ip β€” make "port/plug" to be an alias to IP address
  • 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)
  • ssh_path β€” path to ssh binary (Default Value: /usr/bin/ssh)

okay that's the whole page bestie, you ate that. πŸ’…βœ¨ this was fence_vmware (Fence Agent), dated 2009-10-20 β€” yep, she's an elder but she still serves. πŸŽ€πŸ¦‹ go fence something, ily, bye! πŸ’–

πŸ“¦ where this page comes from