Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178776

No CLI command to reboot VM on ESX 6.5

$
0
0

Hi,

 

I am using the free version of ESX 6.5. I wanted to shut down and start VMs hosted on the single ESX 6.5 server remotely via the command line from a Windows Workstation on the network. I have installed the VMWare CLI  as well as Strawberry PERL.

 

The Esxcli command works okay but it has no capability to SOFT shut down the machines it can only kill the process which I have not tried, but I have tried listing the VMs and I do get list. I used the thumbprint technique for authorization.

 

The command I intend to use is the vmware-cmd.pl

 

This command refuses to work. and does not provide any helpful information about why it is failing. I am using the documentation and giving the exact commands. The sample command I am running is given below. The installation path for the CLI is default and given below.

 

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>

 

Command attempts

 

vmware-cmd.pl -H 101.1.1.2 -U someAdmin -P somePass "/vmfs/volumes/Fullpath/Server.vmx" suspend soft

 

However this simply prints the entire help screen of the command. Adding -v does not provide any help.

 

Tried using

 

 

credstore_admin.pl add --server 101.1.1.2 --username someAdmin --password somePass

 

from the perl general directory but it simply says run the credstore_admin.pl help for more information no matter what I provide.

 

 

I've already spent over 10 hours trying to get this to run including time to get Perl to run correctly so I would appreciate if someone would tell me what I am doing wrong.


Viewing all articles
Browse latest Browse all 178776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>