I have multiple VC servers on our private network that I connect to and I would like to automate the process somewhat. Are there any public command line options for VpxClient.exe to specify the server address, user name, and password, so I can script connecting to each server without entering credentials everytime?
Thanks.
see this
http://communities.vmware.com/docs/DOC-3300
if you feel this or any other answer was useful please consider marking it as "correct" or "helpful" to award points
This looks good, but I don't usually login as my self, I use an admin account. Is it possible to add my self as a user if I am on a different domain from the VC? Thanks.
I've only tested the pass through of current logged in user.
Check out this thread, as there is another link, it may work for what you are trying to accomplish.
Through a little trial and error I was able to determine some options to do what I needed. There are -s, -u, and -p options to log on to any VC/ESX as any user. So now people can script or modify shortcuts to connect to specific hosts, ex:
vpxclient.exe -s <address> -u <username> -p <password>
It was your post that indicated a -s option that put me on the right track, thanks a lot.
Great!
And if there would be a commandline option with which you could open up a console of a specific virtual machine directly, i would be very happy. That way i could create shortcuts to consoles of some virtual machines i often need to open.
Oscar Schoof
Great hint !!!
Thanks for sharing.
You can do that, but not with the classic vSphere Client.
You need to install the VMware vSphere Web Client (at least in 4.1 and 5.0). Using it you could get links directly to your VMs.
Example
https://<VC_IP>:9443/vsphere-client/vmrc/vmrc.jsp?vm=4F8247F4-8D0F-47F8-9838-F987A303AEEF:VirtualMachine:vm-332
Lab Manager allowed something similar off the box.