1
2FENCE_AGENT(8)              System Manager's Manual             FENCE_AGENT(8)
3
4
5

NAME

7       fence_vmware - Fence agent for VMWare
8

DESCRIPTION

10       fence_vmware  is an I/O Fencing agent which can be used with the VMware
11       ESX, VMware ESXi or VMware Server to fence virtual machines.
12
13       Before you can use this agent, it must be installed VI Perl Toolkit  or
14       vmrun command on every node you want to make fencing.
15
16       VI  Perl  Toolkit  is preferred for VMware ESX/ESXi and Virtual Center.
17       Vmrun command is only solution for VMware Server 1/2 (this command will
18       works  against ESX/ESXi 3.5 up2 and VC up2 too, but not cluster aware!)
19       and is available as part of VMware VIX API SDK package. VI Perl and VIX
20       API  SDK are both available from VMware web pages (not int RHEL reposi‐
21       tory!).
22
23       You can specify type of VMware you are connecting to with -d switch (or
24       vmware_type   for   stdin).   Possible  values  are  esx,  server2  and
25       server1.Default value is esx, which will use VI Perl. With server1  and
26       server2, vmrun command is used.
27
28       After  you  have successfully installed VI Perl Toolkit or VIX API, you
29       should be able to run fence_vmware_helper (part of this agent) or vmrun
30       command.  This  agent  supports  only vmrun from version 2.0.0 (VIX API
31       1.6.0).
32
33       fence_vmware accepts options on the command line as well as from stdin.
34       Fenced  sends  parameters  through  stdin  when  it  execs  the  agent.
35       fence_vmware can be run by itself with command line options.   This  is
36       useful for testing and for turning outlets on or off from scripts.
37
38       Vendor URL: http://www.vmware.com
39

PARAMETERS

41
42
43       -o, --action=[action]
44              Fencing action (Default Value: reboot)
45
46       -e, --exec=[command]
47              Command to execute
48
49       -k, --identity-file=[filename]
50              Identity file (private key) for SSH
51
52       -4, --inet4-only
53              Forces agent to use IPv4 addresses only
54
55       -6, --inet6-only
56              Forces agent to use IPv6 addresses only
57
58       -a, --ip=[ip]
59              IP address or hostname of fencing device
60
61       -u, --ipport=[port]
62              TCP/UDP  port  to use for connection with device (Default Value:
63              22)
64
65       -p, --password=[password]
66              Login password or passphrase
67
68       -S, --password-script=[script]
69              Script to run to retrieve password
70
71       -n, --plug=[ip]
72              IP address or hostname of fencing device (together with  --port-
73              as-ip)
74
75       -x, --ssh
76              Use SSH connection (Default Value: 1)
77
78       --ssh-options=[options]
79              SSH options to use
80
81       -l, --username=[name]
82              Login name This parameter is always required.
83
84       -d, --vmware_type=[type]
85              Type of VMware to connect (Default Value: esx)
86
87       -s, --vmware-datacenter=[dc]
88              VMWare datacenter filter
89
90       -q, --quiet
91              Disable logging to stderr. Does not affect --verbose or --debug-
92              file or logging to syslog.
93
94       -v, --verbose
95              Verbose mode. Multiple -v flags can be stacked  on  the  command
96              line (e.g., -vvv) to increase verbosity.
97
98       --verbose-level
99              Level  of  debugging detail in output. Defaults to the number of
100              --verbose flags specified on the command line, or to 1  if  ver‐
101              bose=1  in  a  stonith  device  configuration  (i.e., on stdin).
102
103
104       -D, --debug-file=[debugfile]
105              Write debug information to given file
106
107       -V, --version
108              Display version information and exit
109
110       -h, --help
111              Display help and exit
112
113       --delay=[seconds]
114              Wait X seconds before fencing  is  started  (Default  Value:  0)
115
116
117       --disable-timeout=[true/false]
118              Disable  timeout (true/false) (default: true when run from Pace‐
119              maker 2.0+)
120
121       --login-timeout=[seconds]
122              Wait X seconds for cmd prompt after  login  (Default  Value:  5)
123
124
125       --port-as-ip
126              Make "port/plug" to be an alias to IP address
127
128       --power-timeout=[seconds]
129              Test  X  seconds  for status change after ON/OFF (Default Value:
130              20)
131
132       --power-wait=[seconds]
133              Wait X seconds after issuing ON/OFF (Default Value: 0)
134
135       --shell-timeout=[seconds]
136              Wait X seconds for cmd prompt  after  issuing  command  (Default
137              Value: 3)
138
139       --retry-on=[attempts]
140              Count of attempts to retry power on (Default Value: 1)
141
142       --ssh-path=[path]
143              Path to ssh binary (Default Value: /usr/bin/ssh)
144
145

ACTIONS

147
148
149       on     Power on machine.
150
151       off    Power off machine.
152
153       reboot Reboot machine.
154
155       status This returns the status of the plug/virtual machine.
156
157       monitor
158              Check the health of fence device
159
160       metadata
161              Display the XML metadata describing this resource.
162
163       manpage
164               The operational behavior of this is not known.
165
166       validate-all
167              Validate if all required parameters are entered.
168
169

STDIN PARAMETERS

171
172
173       action Fencing action (Default Value: reboot)
174
175       exec   Command to execute
176
177       identity_file
178              Identity file (private key) for SSH
179
180       inet4_only
181              Forces agent to use IPv4 addresses only
182
183       inet6_only
184              Forces agent to use IPv6 addresses only
185
186       ip     IP address or hostname of fencing device Obsoletes: ipaddr
187
188
189       ipport TCP/UDP port to use for connection with device  (Default  Value:
190              22)
191
192       password
193              Login password or passphrase Obsoletes: passwd
194
195       password_script
196              Script  to  run  to  retrieve  password Obsoletes: passwd_script
197
198
199       plug   IP address or hostname of fencing device (together with  --port-
200              as-ip) Obsoletes: port
201
202       ssh    Use SSH connection (Default Value: 1) Obsoletes: secure
203
204       ssh_options
205              SSH options to use
206
207       username
208              Login  name  This parameter is always required. Obsoletes: login
209
210
211       vmware_type
212              Type of VMware to connect (Default Value: esx)
213
214       vmware_datacenter
215              VMWare datacenter filter
216
217       quiet  Disable logging to stderr. Does not affect --verbose or --debug-
218              file or logging to syslog.
219
220       verbose
221              Verbose  mode.  Multiple  -v flags can be stacked on the command
222              line (e.g., -vvv) to increase verbosity.
223
224       verbose_level
225              Level of debugging detail in output. Defaults to the  number  of
226              --verbose  flags  specified on the command line, or to 1 if ver‐
227              bose=1 in a  stonith  device  configuration  (i.e.,  on  stdin).
228
229
230       debug_file
231              Write debug information to given file Obsoletes: debug
232
233       version
234              Display version information and exit
235
236       help   Display help and exit
237
238       delay  Wait  X  seconds  before  fencing  is started (Default Value: 0)
239
240
241       disable_timeout
242              Disable timeout (true/false) (default: true when run from  Pace‐
243              maker 2.0+)
244
245       login_timeout
246              Wait  X  seconds  for  cmd prompt after login (Default Value: 5)
247
248
249       port_as_ip
250              Make "port/plug" to be an alias to IP address
251
252       power_timeout
253              Test X seconds for status change after  ON/OFF  (Default  Value:
254              20)
255
256       power_wait
257              Wait X seconds after issuing ON/OFF (Default Value: 0)
258
259       shell_timeout
260              Wait  X  seconds  for  cmd prompt after issuing command (Default
261              Value: 3)
262
263       retry_on
264              Count of attempts to retry power on (Default Value: 1)
265
266       ssh_path
267              Path to ssh binary (Default Value: /usr/bin/ssh)
268
269
270
271fence_vmware (Fence Agent)        2009-10-20                    FENCE_AGENT(8)
Impressum