Adds a vCenter Server system or ESXi host as a vMA target server.
vifp addserver <server> [--authpolicy <fpauth | adauth>] [--protocol <http | https>] [--portnumber <portnum>] [--servicepath <servicepath>] [--username <username>] [--password <password>]
After a server is added as a vMA target, you must run vifptarget server before you run vSphere CLI commands or vSphere SDK for Perl scripts against that system. The system remains a vMA target across vMA reboots, but running vifptarget again is required after each logout. See vifptarget Command for vi-fastpass Initialization.
After you run vifptarget, you can run vSphere CLI or vSphere SDK for Perl commands and scripts and you are no longer prompted for authentication information, as follows:
■
|
If you add a vCenter Server system as a vMA target, you can run most commands on all ESXi hosts that the vCenter Server system manages using the vSphere CLI --vihost command. The vSphere CLI Installation and Reference Guide includes a table that shows which commands cannot target a vCenter Server system. |
■
|
If you add only one ESXi host, you can run commands without specifying the target. |
■
|
If you add multiple ESXi hosts, specify the target to avoid confusion. See Add Target Servers to vMA and Running vSphere CLI for the Targets. |