5.0

Table Of Contents
VMware, Inc. 19
Chapter 2 Getting Started with vMA
Running vSphere CLI for the Targets
Ifyouhaveaddedmultipletargetservers,bydefault,vMAexecutescommandsonthefirstserverthatyou
added.Youshouldspecifytheserverexplicitlywhenrunningcommands.
To run vSphere CLI for the targets
1AddserversasvMAtargets.
vifp addserver <server1>
vifp addserver <server2>
2Verifythatthetargetserverhasbeenadded:
vifp listservers
3Runvifptarget.
vifptarget -s <server2>
Thecommandinitializesthespecifiedtargetserver.Now,thisserverwillbetakenasthedefaulttargetfor
thevSphereCLIorvSphereSDKforPerlscripts.
4RunvSphereCLIorvSphereSDKforPerlscripts,byspecifyingthetargetserver.Forexample:
esxcli --server server2 network nic list
Reconfigure a Target Server
Youcanreconfigureatargetserverifyouwanttoperformanyofthefollowingtasks:
ChangetheauthenticationmodeofavMAtargetfromvifastpasstoActive Directoryorviceversa.
ChangetheconfigureduserfortheActiveDirectorytarget.
Recoverusersforthevifastpasstarget.AuserneedstoberecoveredifthecredentialstoreonvMAis
corruptedor ifthecredentialsofuserscorrespondingtovMAusersaremodifiedandnotreflectedinvMA.
To change the authentication policy
1LogintovMAasviadmin.
2Runreconfigure
vifp reconfigure <servername> --authpolicy <authpolicy>
3Whenprompted,provideyourcredentials.
IfyoureconfigureanActiveDirectorytargettovifastpassauthentication,thenspecifytheroot
passwordforESXitargetsandtherootusernameandpasswordforvCentertargets.
IfyoureconfigureavifastpasstargettoActiveDirectoryauthentication,thenspecifytheroot
usernameforthetarget.
To change the configured user or to recover users
1LogintovMAasviadmin.
2Runreconfigure.
vifp reconfigure <servername>
3Whenprompted,provideyourcredentials.
IfyoureconfigureanActiveDirectorytarget,specifyausernameforthetarget.
Ifyoureconfigureavifastpasstarget,specifytherootpasswordoftheESXitarget,andthepassword
forusernameusedtoaddthevCenterServertarget.