ESXi

 View Only
  • 1.  vmware-cmd just returns a bunch of config info about ESXi server

    Posted Apr 10, 2015 10:43 PM

    Hi All!

        I am trying to use the vmware-cmd command to script a few changes I would like to see on some VM's.  I am running into an issue however, when I run ANY vmware-cmd command I get back a bunch of configuration settings for the host and virtual machines (at least from what I can tell).

    For instance, if I run:

    me@server01:~$ vmware-cmd -H ESXiserver -U ESXiUser -P ESXiServerPassword /vmfs/volumes/blah/blah/something.vmx getstate

    I get back:

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

    (cut off the output as it will go on for PAGES)

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

    This happens for every command I try to use with vmware-cmd

    Thank you for your help!



  • 2.  RE: vmware-cmd just returns a bunch of config info about ESXi server
    Best Answer

    Posted Apr 11, 2015 06:07 PM

    Hello,

    The command vmware-cmd is a legacy command and one I wouldn't use much for managing anything in vSphere 5+ besides it can only be used remotely nowadays.

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

    You might also want to look at esxcli.

    --

    Wil



  • 3.  RE: vmware-cmd just returns a bunch of config info about ESXi server

    Posted Apr 12, 2015 11:26 PM

    Thanks bud!

         I am going to use vim-cmd to list the virtual machines and then grep/cut the virtual machine number of the VM I want to disconnect the CD-ROM from and put it in a variable.  After that, I will use vim-cmd vmsvc/device.connection with the newly created variable to disconnect the DVD/CDROM.

    Thank you sir!