I have had this one post sitting around for a while and I figured I should get it written before it gets lost.
Earlier I was working on getting vMA stood up in my lab environment and I figured that I should do a post about how to configure vMA to connect to a target. Adding a Target Server in vMA is a faster way for you to be able to issue commands. Rather than having to specify which server you want to run commands against (especially if you are running several commands on the same box) you should set the server as a target. In this instance I will run through the steps of setting a target for an AD Authenticated host or vCenter.
From the vMA console you will type the following command out:
vifp addserver <vcenter server name.domain.local> –authpolicy adauth –username <AD DOMAINUserName>
and press Enter and you will be prompted for the Password of the AD account that you referenced.
To verify that the server is connected you can use the following command:
vifp listservers –long
This will tell you the server name as well as the method of authentication. Now anytime you want to run a command against that host you will be able to do so without having to re-authenticate every time.
To set your Target server you can use the following command prior to running your actual command or script.
vifptarget -s <servername>