Access vCenter or ESXi

The following command is used for accessing vCenter:

~]# ovftool --X:logFile=ovftool-log.txt --X:logLevel=verbose vi://[user[:pass]@]vCenter FQDN|IP/location/folder/
Error: Found wrong kind of object (Datacenter). Possible completions are:
  vm/
  host/

This error indicates it can connect to the vCenter but needs more information on the ‘datacenter.’ It suggests what you must use to complete the command. In this case, the suggestion is to add vm/ or host/ at the end of the center path.

Next Step

List all ESXi Hosts on a vCenter