VMware VMUG Community
oxment
Contributor
Contributor
Jump to solution

ESXI shell problem

Hello,

I just installed ESXI server and I wanted to run VMware-cmd commands on this server.

the problem is that I can run these commands by installing VCLI on my client(http://www.vmware.com/support/developer/vcli/) but I need to run these commands from ESXI shell, I just activated ESXI shell and ESXI ssh. Now, I am able to connect to ESXI shell but I am not able to run commands there and I just checked /usr/bin for commands and I couldn't find anything there.

Can you tell me what shoud I do? am I able to run these commands from ESXI shell ?

Reply
0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

Unfortuately, this command is only available from the vCLI.

from vmware-cmd Overview

Important   vmware-cmd is not available in the ESXi Shell. Run the vmware-cmd vCLI command instead.

André

View solution in original post

Reply
0 Kudos
7 Replies
a_p_
Leadership
Leadership
Jump to solution

Please take a look at e.g. http://www.amlehn.ch/index.php?option=com_content&view=article&id=23 to see whether this helps.

André

oxment
Contributor
Contributor
Jump to solution

thank you very much.

but are you sure that VMware-cmd doesn't exist in ESXI 5.0? because I can run those commands from my client(there is a client tool that I installed on my machine and can use those old commands) and I beilve it should be one way to use these vmware-cmd commands from ESXI. Because, I can use it from one client I should be able to run them in ESXI shell as well.

Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Unfortuately, this command is only available from the vCLI.

from vmware-cmd Overview

Important   vmware-cmd is not available in the ESXi Shell. Run the vmware-cmd vCLI command instead.

André

Reply
0 Kudos
oxment
Contributor
Contributor
Jump to solution

thank you Smiley Happy

is it possible to install this VCLI package on ESXI shell? I mean it is a client application but what will happen if we install it on the server?

Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

The ESXi shell is not built for installing this kind of software. The vCLI installer will not allow you to install it on the ESXi shell anyway. (see

André
oxment
Contributor
Contributor
Jump to solution

my main problem is that I wrote a program for VMware serve 1, and it uses VMware-cmd commands, and VMware-cmd uses VMX as input but here I need to use VMID, and I don't know how can I retrive VMID from VMX ?!

Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

I don't know your script, but you may use s.th. like

vim-cmd vmsvc/getallvms | grep "folder/vmname.vmx" | awk '{print $1}'

to get the VMID.

André

Reply
0 Kudos