how to use vsphere CLI to run esxcli to get information for a host with vCenter credential
Posted on 2011-10-13
I want to run a command like "esxcli swiscsi nic list -d vmhba35" to get some iSCSI information. I can run it directly on ESX host. Now there is a ESX host under a vCenter management, I have credential for the vCenter, but not the ESX hots directly.
I installed vsphere CLI on a Linux machine, I found I can do
esxcli --server=ESXHOST --username=ESXUSER --password=ESXPASSWORD swiscsi nic list -d vmhba35
But I don't know how to do it with vCenter credential only.