VMware Cloud Community
morgenstern
Contributor
Contributor
Jump to solution

Basic usage of ESXCLI

Hi guys,

Sorry for being a dummy, but I am really struggling with making the esxcli work in my environment. I have two PC's with esxcli installed. On the Win7 machine I don't even know how to start the CLI and on the Ubuntu machine I do know how to start it but I am struggling with the command syntax. Basically I wanted to try to force a shutdown of a vm on one of our three hosts, but I do not know how to specify the one I want to connect to.

I started to follow the instructions here: VMware KB:    Powering off a virtual machine on an ESXi host 

But when I type:

esxcli vm process list

it asks me to specify the host.

So I tried:

esxcli vm process list 10.3.0.72

and then it complains about syntax.

Can you please point me to the right direction?


I have two 5.5 hosts and one 5.0 host.


Cheers,

Martin

1 Solution

Accepted Solutions
djswarm
Contributor
Contributor
Jump to solution

The syntax you ar using would require you to first ptty/ssh into the server and then run the command.

If you want to run it remote you need the --server <taget> switch like:

esxcli --server 10.0.0.1 <some command>

View solution in original post

4 Replies
weinstein5
Immortal
Immortal
Jump to solution

Welcome to the Community - I have moved your question to a more appropriate forum -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
morgenstern
Contributor
Contributor
Jump to solution

Well, thanks Smiley Happy

0 Kudos
djswarm
Contributor
Contributor
Jump to solution

The syntax you ar using would require you to first ptty/ssh into the server and then run the command.

If you want to run it remote you need the --server <taget> switch like:

esxcli --server 10.0.0.1 <some command>

morgenstern
Contributor
Contributor
Jump to solution

Hey thanks! That's exactly the answer I've been looking for! Nice one!

0 Kudos