@@ -292,6 +292,7 @@ but appear via `govc $cmd -h`:
292
292
- [ vapp.destroy] ( #vappdestroy )
293
293
- [ vapp.power] ( #vapppower )
294
294
- [ vcsa.log.forwarding.info] ( #vcsalogforwardinginfo )
295
+ - [ vcsa.net.proxy.info] ( #vcsanetproxyinfo )
295
296
- [ version] ( #version )
296
297
- [ vm.change] ( #vmchange )
297
298
- [ vm.clone] ( #vmclone )
@@ -2303,14 +2304,20 @@ The guest.run command starts a program in the VM with i/o redirected, waits for
2303
2304
propagates the exit code to the govc process exit code. Note that stdout and stderr are redirected by default,
2304
2305
stdin is only redirected when the '-d' flag is specified.
2305
2306
2307
+ Note that vmware-tools requires program PATH to be absolute.
2308
+ If PATH is not absolute and vm guest family is Windows,
2309
+ guest.run changes the command to: 'c:\\Windows\\System32\\cmd.exe /c "PATH [ARG]..."'
2310
+ Otherwise the command is changed to: '/bin/bash -c "PATH [ARG]..."'
2311
+
2306
2312
Examples:
2307
2313
govc guest.run -vm $name ifconfig
2308
2314
govc guest.run -vm $name ifconfig eth0
2309
2315
cal | govc guest.run -vm $name -d - cat
2310
2316
govc guest.run -vm $name -d "hello $USER" cat
2311
2317
govc guest.run -vm $name curl -s :invalid: || echo $? # exit code 6
2312
2318
govc guest.run -vm $name -e FOO=bar -e BIZ=baz -C /tmp env
2313
- govc guest.run -l root:'mypassword' -vm my_vm_hostname "ntpdate -u pool.ntp.org"
2319
+ govc guest.run -vm $name -l root:mypassword ntpdate -u pool.ntp.org
2320
+ govc guest.run -vm $name powershell C:\\network_refresh.ps1
2314
2321
2315
2322
Options:
2316
2323
-C= The absolute path of the working directory for the program to start
@@ -4917,6 +4924,19 @@ Examples:
4917
4924
Options:
4918
4925
```
4919
4926
4927
+ ## vcsa.net.proxy.info
4928
+
4929
+ ```
4930
+ Usage: govc vcsa.net.proxy.info [OPTIONS]
4931
+
4932
+ Retrieve the VC networking proxy configuration
4933
+
4934
+ Examples:
4935
+ govc vcsa.net.proxy.info
4936
+
4937
+ Options:
4938
+ ```
4939
+
4920
4940
## version
4921
4941
4922
4942
```
0 commit comments