i am new to powercli
i am trying to connect to vsphere center from my xp sp3 PC, i installed powershell and vsphere cli on my pc
when i am giving command as esxcli ipaddress
it is asking for username and password after entering credentials it is giving error as " connect to local host failed."
the command looks like
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli servername
Enter username: c-fqureshi
Enter password:
Connect to localhost failed
You need to specify the server you're connecting to using --server option your command should say
esxcli --server ipaddress
Hi scott,
Good Morning,
i hope you had a moring coffee.
it is saying esxcli can only be used with version 4.0 or newer servers
and even i cannot connect to ESX servers from my PC using same command.
i tried to connect after adding the command --server
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --server 192.168.1.3
Enter username: c-fqureshi
Enter password:
esxcli can only be used with version 4.0 or newer servers
Are you connecting to vCenter or directly to a host?
As far as I know esxcli is not able to connect to a vCenter server just directly to a host, in order to manage a vCenter server you may want to use PowerCLI with the Connect-VIServer command.
Scott
i am trying to connect to VC from vsphere cli only
i am running this command from the path of cli you can see the full path of the command
C:\Program Files\VMware\VMware vSphere CLI\bin>esxcli --server 192.168.1.3
Enter username: c-fqureshi
Enter password:
esxcli can only be used with version 4.0 or newer servers
In your example is 192.168.1.3 an ESX / ESXi host server, or a vCenter server?
You will be abple to use esxcli commands only against a host ESX server but not against a vCenter server