VMware-cmd returns just a bunch of info on ESXi server config

Hi all!

I try to use the command vmware-cmd to some changes, I would like to see on some virtual machines from script.  I'm running into a problem however, when I run ANY vmware-cmd command I get a bunch of settings to configuration of the host and the virtual machines (at least from what I can tell).

For example, if I run:

me@SERVER01:~$ VMware-cmd - H ESXiserver - U ESXiUser Pei ESXiServerPassword /vmfs/volumes/blah/blah/something.vmx getstate

I'll be back:

< overheadLimit >-1 < / overheadLimit > < / memoryAllocation > < / config > < / child > < child > < key > host/vim/vmvisor/plugins/CRCS < / key > < config > < cpuAllocation > < booking > 0 < / booking > < false expandableReservation > < / expandableReservation > < deadline > - 1 < / limit > < action > < actions > 1000 < / actions > < level > custom < / level > < / actions > < overheadLimit > 0 < / overheadLimit > < / cpuAllocation > < memoryAllocation > < booking > 0 < / booking > < true expandableReservation > < / expandableReservation > < limit > 70 < / limit > < action > < actions > 1000 < / actions > < level > custom < / level > < / actions > < overheadLimit >-1 < / overheadLimit > < / memoryAllocation > < / config > < child > < key > host/vim/vmvisor/plugins/hhrc/sfcb-ProviderMa.352234 < / key > < config > < cpuAllocation > < booking > 0 < / booking > < false expandableReservation > < / expandableReservation > < deadline > - 1 < / limit > < action > < actions > 1000 < / actions > < level > custom < / level > < / actions > < overheadLimit > 0 < / overheadLimit > < / cpuAllocation > < memoryAllocation > < booking > 0 < / booking > < true expandableReservation > < / expandableReservation > < limit > 75 < / limit > < action > < stock > 0 < / actions > < level > normal < / / level > < / actions > < overheadLimit >-1 < / overheadLimit > < / memoryAllocation > < / config > < / child > < / child > < child > < key > host/vim/vmvisor/plugins/iodm_group < / key > < config > < cpuAllocation > < booking > 0 < / booking > < expandableReservation >

(cut as possible output of PAGES)

and nothing happens... I'm not sure what I am doing wrong?

This occurs for each order, that I try to use with vmware-cmd

Thank you very much for your help!

Hello

The command vmware-cmd is a legacy control and one that I use a lot to manage anything in vSphere 5 + in addition it can be used remotely today.

The alternative is vmware-vim-cmd or vim - cmd, see also: Vmware-vim-cmd

You can also look at esxcli.

--

Wil

Tags: VMware

Similar Questions

  • Cannot download vmware - client.exe from the web page of the ESXi Server

    Aloha,

    I used VMware-VMvisor-InstallerCD - 3.5.0_Update_3 - 123629.i386.iso to create CDs and ESXi successfully installed on the server.  However, post customer I can not download the file VMware - Server Web page viclient.exe.  Says error page Web page could not be found.

    I checked the cd and compressed all the *.tgz files.  None of them included VMware - vclient.exe

    A link to the VMware - vclient.exe would be appreciated.

    Thank you

    Luis

    Hello

    You can try the following steps.

    (1) ssh to the box of ESXi using PuTTY or any other ssh client.

    (2) go in /locker/packages/3.5.0/ folder find customer record Vi you should have the viclient.exe file.

    (3) once you get the scp file to your windows desktop using winscp and install it.

    Thank you

    Samir

    PS: If you think the answer is useful please consider rewarding points.

  • VMware-cmd setconfig Alternative?

    Hi people,

    I was looking to see if I could dynamically change the Network Configuration of a Clone running on an ESXi 3.5 command-line host. So I installed the CLI to access tools. But unfortunately the CLI on Vmware documentationsays nothing about editing virtual machine configuration (No. SETCONFIG / METHODS).

    Then I found a lot of posts about no work command vmware-cmd & lt; & gt; setconfig & lt; & gt; . I thought that the problem has been fixed in the current version, but it seems that they just deleted the "methods / setconfig ' option.  Even the setresource option does not exist. BTW, the getconfigfile works very well. But when I run the methods / setconfig, nothing is returned to my console.

    So I'm wondering if they replaced by another option? VMware-vim-cmd and vimsh script help me?

    Thanks in advance.

    SSK

    Here's a script that I have written using the vSphere SDK for Perl: updateVMPortgroup.pl

    You'll need to install the VI Perl Toolkit (VI 3.5) or vSphere SDK for Perl (vSphere 4.0), take a look at the documentation for the respective Toolbox for installing more. Once you have configured it, you will be able to use the script to update a specific virtual machine network card and set a GRPE on specific ports.

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • VMControl error - 3: invalid arguments: Login failed - when you use VMWARE-CMD

    Hello

    I had a VM that does not - I received the error "the system returned error. Communication with the virtual machine has maybe stopped'.  I had a glance communities and found a lot of useful suggestions, mostly related to the use the VMWARE-CMD.

    Now I have 8 ESX 3.0.2 servers in a cluster and when I ssh to the console on the other 7 I have no problem running a VMWARE-CMD, but on this particular host that contains the virtual machine, I get VMControl error-3 error: invalid arguments: Login Failed - I get this if I try a getstate/start/stop/restart you name!  I get it even if I just try VMWARE-CMD - l.

    Has anyone had a similar problem?  Any help would be appreciated.

    Thank you

    I think that the vmware agent does not connect somehow.

    Try this.

    Right-click on the host in VI and unplug

    Connect directly to the host via VI and remove users from vmware

    connect to the host via ssh.

    go to/etc/vmware/ssl remove these certificates, there should be only 2.

    run: service mgmt-vmware restart

    They wait about 2 minutes and reconnect the host.  You will lose no VM configuration or, but who can help with the problem of vmware-cmd.

  • VMware-cmd removesnapshot running 24 hours +.

    We have a server running ESX 3.01 yet, we are about to replace the hardware and update everything.  Through this process of preparation, I came across a virtual machine that has some old (2009), HUGE shots that must be engaged.

    Due to the problems I have experienced instant removing the console in the past, I decided to run it from the command line.  I ran the vmware-cmd command to delete snapshots, connected to an antibody secondary ssh session to look at the delta files.  I'm at a point now, where all the delta files are gone from the directory, but stereotypes are always listed in the vmsd file.  In addition, the session of vmware-cmd is not yet returned to a command prompt (or it is blocked or even do something?)

    He has been running (or suspended) for about 24 hours now.  I was about to kill this process and try to start the virtual machine - but I decided to post here everything first.

    Everyone knows this?

    Thank you

    SB

    I can't tell you with certainty what happened. However, because the delta files are gone, it should be reasonable to assume that the snapshot cleanup process is completed and the vmware-cmd command can simply wait for a callback that will probably never come because of timeouts for example. I would go check the VM .vmx file to see if it has been updated correctly with files hard base and then kill the process. If you wish, you can also take a glance to the file of vmware.log of the virtual machine that must contain entries on the consolidation of the snapshot. Don't worry too much about the .vmsd file, it is a text file that contains the information displayed in the Snapshot Manager. If all snapshots are gone, you can delete this file.

    André

  • VMware-cmd persistent / not persistent does not work in vsphere / esx4?

    Hello

    We have a problem with the definition of a State of non-persistent disk with a script - something that we used to be able to do with ESX 3.5

    On ESX 3.5, this used to work:

    # vmware - cmd XPROUTER.vmx scsi0:0.mode independent-no persistent setconfig

    On ESX 4.0, the statement runs as follows and does not return anything - that is:

    # vmware - cmd XPROUTER.vmx scsi0:0.mode independent-no persistent setconfig

    #

    Neither does not change the .vmx or the State of SCSI0.0 in the GUI.

    Also, if I try to edit the .vmx with text editor line.

    scsi0:0.mode = persistent "independent-no.

    The change does not appear in the GUI configuration...

    Looking at vmware-cmd reference V-sphere, it seems that the order to setconfig is gone?

    What method can be used to assign a disk of the machine non-persistent / persistent command-line on ESX 4.0?

    Thanks in advance!

    That's right, which was removed from vSphere, I think that it might have been some curiosities and items in the past with the command and perhaps removed all together. Technically, the vmware-cmd is an obsolete utility. You'll probably want to take a look at using vCLI or PowerCLI to reconfigure your VM to fire the drive persistent or not persistent.

    You can take a look at the vSphere SDK for Perl, there are a variety of scripts that allow for the wide range of operations against your vCenter, the host and the VM (s): http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vsperl_util_index.html. That would be of interest is vmreconfig.pl http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vmreconfig.html , you will find that you will be able to update your disc mode.

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Error removing snapshot using vmware-cmd on ESX 3.5

    Hello VMware specialists,.

    whenever I try to delete a snapshot using vmware-cmd ("" / usr/bin/vmware-vim-cmd vmsvc/snapshot.remove vmid ' ") I get the following error:

    {(vmodl.fault.InvalidArgument)

    dynamicType = & lt; unset & gt;

    invalidProperty = & lt; unset & gt;

    MSG = "a specified parameter was not correct.

    "

    }

    What is the problem?

    Can someone help me?

    thx a lot

    Rilli

    You have more than one snapshot? in this case, you will need to provide arguments to inform additional cli command which instant you want missing. If you want that all went snapshots just use

    VMware-vim-cmd vmsvc/snapshot.removeall vmid

    Use the following command to get more information on the State of snapshot for VM

    VMware-vim-cmd vmsvc/get.snapshotinfo vmid

  • I want just a bunch of random numbers (about 120 of them) from the list, select 'all' and get the computer to rearrange in CNC

    I try both notepad and wordpad. I'm in Winows XP 2003.  I want just a bunch of random numbers (about 120 of them) from the list, select "all" and reorganize in order digital computer. I can't understand how I've done it before. Google says select the balls feature, but all that is put a point in front of a certain number. There is no arrow down to select. No A - Z. No 1,2,3. what Miss me? is the Notepad or wordpad not the place to do that?

    Use Excel.

  • VMware-cmd: achieve data warehouses via vcenter

    Hello

    I have a proplem with vmware-cmd command.

    When I query the server esxi with the VMA by using the switch - l, it works very well. That's what I get:

    vmware-cmd -H esxi02.axe.lan -U root -P xxxx -l
    
    /vmfs/volumes/f0fd945a-275bd0c1/CL-VDC1/CL-VDC1.vmx
    /vmfs/volumes/f0fd945a-275bd0c1/CL-VCEGID/CL-VCEGID.vmx
    /vmfs/volumes/f0fd945a-275bd0c1/CL-VFILES/CL-VFILES.vmx
    /vmfs/volumes/4d21cdc6-da1be880-18e5-68b59975c9d0/PDASERV0103/PDASERV0103.vmx
    /vmfs/volumes/4d220aff-1b6f60b8-33cb-68b59975c9d0/VFILES/VFILES.vmx

    But if I send the same order to the vcenter

    vmware-cmd -H vcenter.axe.lan -T esxi02.axe.lan -U administrator -P xxxx -l
    
    /vmfs/volumes//CL-VDC1/CL-VDC1.vmx
    Use of uninitialized value in concatenation (.) or string at /usr/bin/vmware-cmd line 453.
    /vmfs/volumes//CL-VCEGID/CL-VCEGID.vmx
    Use of uninitialized value in concatenation (.) or string at /usr/bin/vmware-cmd line 453.
    /vmfs/volumes//CL-VFILES/CL-VFILES.vmx
    /vmfs/volumes/4d21cdc6-da1be880-18e5-68b59975c9d0/VMGMT/VMGMT.vmx
    /vmfs/volumes/4d220c3b-3d4bec50-9b85-68b59975c9d0/XPCOMPTA/XPCOMPTA.vmx

    Looks like vcenter has trouble trying to read/analyze a file of the database (f0fd945a-275bd0c1). See double "/ /"?

    In addition, there is an error in the perl script. I take a peek, but I could not find any problem with him. This is beyond my skills, I'm afraid.

    Any ideas? Permission problem?

    This message was edited by: Mafaldo

    Mine as a vMA 4.1. but the switches are different!

    [vi-admin@xx ~] $ cat/etc/vma-release
    vMA 4.1.0 BUILD-268751
    [vi-admin@xx ~] $ vmware-cmd - help
    Use: vmware-cmd
    VMware-cmd - s
    Options:
    Connection options:
    H - or - server Specifies a host ESX or a Virtual Center
    -h or--vihost Specifies a target host if the host is a virtual Center
    O Specifies an alternate port
    Q Specifies an alternative Protocol
    You can check the version of vMA? and if possible update.
  • VMware-cmd utility

    Hello

    To unsubscribe from the virtual machine to a host, we use 'vmware-cmd utility.

    What exactly is 'vmware-cmd utility. Is it through command line?

    Y at - it another option to unregister the virtual machine to a host?

    -Prashant

    If it's for ESX classic, it is a CLI utility housed in the Service Console for the execution of certain operations of VM command such as for registration, power and snapshot operations to name a few.

  • VMware-cmd: not found

    I'm pretty new to ESXi. I had active SSH. Connected to it.

    Now, I want to do a job on the vm images (problem with my snapshots going not to far away).

    In any case, when I try to run the "vmware-cmd - l" command it gives me:

    "- ashes: vmware-cmd: not found".

    What gives? What could be wrong?

    VMware-cmd is not available in the console not supported for ESXi Busybox

    You will need to use the vCLI which has a remote version of vmware-cmd

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

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • VMware-cmd/vmfs/volumes/storage... / createsnapshot does not work on vSphere?

    VMware-cmd /vmfs/volumes/storage/VM/VM.vmx createsnapshot 'name' brief quiesce of "description".

    This comes with the error below.  Worked absolutely perfect with 3.5*.

    Traceback (most recent call changed):

    File "/ usr/bin/vmware-cmd", line 88, in?

    main()

    File "/ usr/bin/vmware-cmd", line 63, in hand

    operationName, result is CommandProcessor.Process (host, args)

    File "/ usr/lib/vmware/vmware-cmd/CommandProcessor.py", line 11, in the process of

    result = operation. DoIt(*processedArgs)

    TypeError: DoIt() takes exactly 7 arguments (13 given)

    Change the words 'suspend' and 'memory' to 1 or 0 (enable or disable).

    Marcelo Soares

    VMWare Certified Professional 310/410

    Technical Support Engineer

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • VMware-cmd

    Hello guys.

    I started my experince on vmware server 2 a few days ago. I use vmware server on gentoo linux.

    The server seems to works fine, all VM machine are up and works fine. I have only a questioned... I can't get vmware-cmd program... it seems missing

    Could you help me find the command vmware-cmd?

    The vmware-cmd is old and outdated, in my opinion.  Instead, use the vmrun command, or your own using the VIX API to script.

  • VMware - cmd.pl on VIMA does not work with vi-fastpass

    I have executed 1.0 VIMA and have an ESXi 3.5u3 as my virtual server. When I run vmware - cmd.pl - l command I always get challenged for username/password name. According to the documentation if I get the vi-fastpass enabled on the server, all RCLi controls function without requiring additional authentication.

    Any ideas.

    If you take a look on the VIMA release notes in the known issues section: http://www.vmware.com/support/developer/vima/vima10/vima10relnotes.html

    Some remote CLI commands do not vi-fastpass support

    Description: CLI remote svmotion, vmware-cmd and resxtop commands do not vi-fastpass support.

    All three of those who can't stand vi-fastpass including vmware - cmd.pl

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    http://Twitter.com/lamw

  • VMware-cmd error

    I can't use the vmware-cmd commands to manage virtual machines. I get the error message

    "/ usr/bin/vmware-cmd requires perl vmware::vmperl libraries must be installed."

    Anyone seen this before?

    Thank you

    These guys have apparently (http://communities.vmware.com/thread/48405)

    The solution for some of her ran vmware - config.pl

Maybe you are looking for