VMware Cloud Community
vince91170
Contributor
Contributor
Jump to solution

Cannot run a command with the Vsphere Management Assistant

Hi all,

I have a little problem.

Soon i'll have to make a new iscsi infrastructure to access my SAN so I read "VMware-iSCSI-SAN-Configuration-Guide"

I saw that I have to use VSphere Cli, so I downloaded it

After installing the VMA in my Virtual Center I configured it like that.

"vifp addserver my esx server --username" in order to add one of my ESX then "vifptarget -s myesx server"to connect toit, it works.

The only problem I have is that the command esxcli swiscsi nic list -d vmhba33 does not work.

In fact it tells me to put a username and a password but I don't know which login and password to put

I tried to put the root password it did'nt work so can you help me ?

Reply
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

So as you can see, you're not being prompted for username/password which was the original question.

There is not error that you're currently hitting, your command most likely is outputting the correct information as there probably is no output for that command since your swiSCSI may not be setup correctly.

Take a look at this blog post regarding iSCSI multipathing and esxcli - http://www.yellow-bricks.com/2009/03/18/iscsi-multipathing-with-esxcliexploring-the-next-version-of-...

Please mark this question answered since your actual issue does not pertain to vi-fastpass as you can see it's working and post a new thread if you have further questions around iSCSI setup and using esxcli.

Thanks

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

Reply
0 Kudos
7 Replies
lamw
Community Manager
Community Manager
Jump to solution

With esxcli you actually need to specify --server even though you've initialized a target. You don't need to provide the credentials, just the server name and it'll use the vi-fastpass credentials.

e.g.

[vi-admin@tancredi ~][http://olga.primp-industries.com|http://olga.primp-industries.com]$ esxcli --server olga.primp-industries.com 

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
vince91170
Contributor
Contributor
Jump to solution

Ok,

So i run this command "esxcli --server servername swiscsi nic list -d vmhba33" but I didn't work (result in the attach file).

Maybe it shows me nothing because actually there is no network card associated with the vmhba

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

First off, I see you're logging into vMA using root, the vi-fastpass is only implemented under vi-admin user. Please try using that account

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
vince91170
Contributor
Contributor
Jump to solution

Same result

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

Do me a favor, run just the following:

esxcli --server <server>

If this works and provides back a list of esxcli namespaces, vi-fastpass is working else you would get prompted for a username/password, I suspect that is what is happening and the issue is with the command as it may not be valid if it's not configured.

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
vince91170
Contributor
Contributor
Jump to solution

It's done

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

So as you can see, you're not being prompted for username/password which was the original question.

There is not error that you're currently hitting, your command most likely is outputting the correct information as there probably is no output for that command since your swiSCSI may not be setup correctly.

Take a look at this blog post regarding iSCSI multipathing and esxcli - http://www.yellow-bricks.com/2009/03/18/iscsi-multipathing-with-esxcliexploring-the-next-version-of-...

Please mark this question answered since your actual issue does not pertain to vi-fastpass as you can see it's working and post a new thread if you have further questions around iSCSI setup and using esxcli.

Thanks

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware VCP3,4

VMware VCAP4-DCA

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos