Previous Topic: CA VMware vCenter Server AutoShell CommandsNext Topic: dpmvc-addvmvdisk Command--Add Virtual Disk (Funclet)


dpmvc-addesxhost Command--Add an ESX Host (Funclet)

The dpmvc-addesxhost command adds an ESX host to a vCenter Server.

This command has the following format:

dpmvc-addesxhost
-esx_host_name esxhostname
-vc_server vcservername
-esx_host_user esxhostuser
-esx_host_password esxhostpassword
[-management_ip managementip]
[-host_connect_port hostconnectport]
[-folder_name foldername]
[-datacenter_name datacentername]
[-cluster_name clustername]
[-vim_account_user vimaccountuser]
[-vim_account_password vimaccountpassword]
-esx_host_name esxhostname

Specifies the name of the ESX server that hosts a VM.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-esx_host_user esxhostuser

(Optional) Specifies the user name to access the ESX host.

-esx_host_password esxhostpassword

Specifies the password used to access the ESX host.

-management_ip managementip

(Optional) Specifies the management IP.

-host_connect_port hostconnectport

(Optional) Specifies the port used by ESX host to communicate with vCenter Server.

-folder_name foldername

(Optional) Specifies the name of the folder where you can add the ESX host.

-datacenter_name datacentername

(Optional) Specifies the data center where the VM is located.

-cluster_name clustername

(Optional) Specifies the name of the cluster where you can add the ESX host.

-vim_account_user vimaccountuser

(Optional) Specifies the username of the VIM account.

-vim_account_password vimaccountpassword

(Optional) Specifies the password to access the VIM account.

Example: Add an ESX Host

This example adds an ESX host, "esx1" to the vCenter Server "myvcenter."

dpmvc-addesxhost -esx_host_name esx1 -vc_server myvcenter -esx_host_user admin
-esx_host_password topsecret