VMware Cloud Community
Partridge
Contributor
Contributor

VpxClient.exe Command line

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.

Tags (2)
7 Replies
Troy_Clavell
Immortal
Immortal

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

Partridge
Contributor
Contributor

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.

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

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.

http://communities.vmware.com/thread/190569

Reply
0 Kudos
Partridge
Contributor
Contributor

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.

OscarSchoof
Contributor
Contributor

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

Reply
0 Kudos
gschirinzi
Contributor
Contributor

Great hint !!!

Thanks for sharing.

Reply
0 Kudos
admin
Immortal
Immortal

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.

Reply
0 Kudos