fence_vmware(8)fence_vmware(8)NAMEfence_vmware - I/O Fencing agent for VMware virtual machines
SYNOPSISfence_vmware [OPTION]...
DESCRIPTIONfence_vmware is an I/O Fencing agent which can be used with the VMware
ESX or VMware Server to fence virtual machines. It logs via ssh to a
VMware ESX (or Server) physical machine and there run vmware-cmd, which
does all work.
By default, VMware ESX has disabled root account so you must create
annother user account with limited permissions on VMWare ESX machine.
Better idea is install right version of vmware-cmd (with same API) to
any other machine in network and use it for fencing.
fence_vmware accepts options on the command line as well as from stdin.
Fenced sends parameters through stdin when it execs the agent.
fence_vmware can be run by itself with command line options. This is
useful for testing and for turning outlets on or off from scripts.
OPTIONS-a IPaddress
IP address or hostname of machine where is vmware-cmd.
-A IPAdress
IP adress or hostname of machine where is runing vmware. Default
is localhost.
-h Print out a help message describing available options, then
exit.
-l login
Login name of machine with vmware-cmd.
-L login
Login name to VMware administration interface.
-o action
The action required. Reboot (default), Status, Off or On.
-p password
Password for login or for passphrase for machine with vmware-
cmd.
-P password
Password for login to VMware administration interface.
-B script
Script to run to retrieve password for machine with vmware-cmd.
-R script
Script to run to retrieve password for VMware administration
interface.
-n name
Name of virtual machine to fence (ie. /vmfs/vol‐
umes/48bfcbd1-4624461c-8250-0015c5f3ef0f/Rhel/Rhel.vmx)
-x Use secure connection over ssh (this is default, and can't be
disabled)
-k filename
Identity file (private key) for ssh
-T Test only. Answer NO to the confirmation prompt instead of YES.
-v Verbose. Record session to stdout, or debug file if specified
(see -D).
-D Specifies file, where will be written debug messages from ses‐
sion.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by
fence_vmware.
ipaddr = < hostname | ip >
IP address or hostname of machine where is vmware-cmd.
vmipaddr = < hostname | ip >
IP adress or hostname of machine where is runing vmware. Default
is localhost.
login = < param >
Login name of machine with vmware-cmd.
vmlogin = < param >
Login name to VMware administration interface.
option = < param >
The action required. Reboot (default), Off or On.
passwd = < param >
Password for login or for passphrase for machine with vmware-
cmd.
vmpasswd = < param >
Password for login to VMware administration interface.
passwd_script = < param >
Script to run to retrieve password for machine with vmware-cmd.
vmpasswd_script = < param >
Script to run to retrieve password for VMware administration
interface.
port = < param >
Name of virtual machine to fence (ie. /vmfs/vol‐
umes/48bfcbd1-4624461c-8250-0015c5f3ef0f/Rhel/Rhel.vmx)
secure = < param >
Use secure connection over ssh (this is default, and can't be
disabled)
identity_file = < param >
Identity file (private key) for ssh
test = < param >
Test only. Answer NO to the confirmation prompt instead of YES.
verbose = < param >
Verbose. Record session to stdout, or debug file if specified
(see debug).
debug = < param >
Specifies file, where will be written debug messages from ses‐
sion.
SEE ALSOfence(8), fence_node(8)fence_vmware(8)