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".

Tags: VMware

Similar Questions

  • 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

  • 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 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".

  • To remove a CDROM to a virtual machine using vmware-cmd

    Hi all

    I add a CD-ROM to an engine off VM with the following vmware-cmd:

    VMware-cmd & lt; path to the VMX file & gt; lt & setconfig ide0:1.fileName; path to the file ISO & gt;

    How can I remove this CD-ROM, while the virtual machine is turned off? The 'disconnectdevice' command works only for virtual machines under tension.

    Thank you

    Alon

    Hello

    If you are already using java, what might be better to stick to the Toolbox for java.

    However, you can still use vimsh. In ESX 3.0, you can call vimsh - n - e-

    Wil

    _____________________________________________________

    Visit the new VMware developers at http://www.vi-toolkit.com wiki

  • 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 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.

  • 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

  • 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

  • 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 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

  • VMWare offers an alternative to Terminal Server services in the following respect...

    We have a set of accounts called Sage 50 accounts. It is a pretty horrible multi-user or single application for Windows.

    Set up multiple users to propose you a Windows computer on the local network, 'the Sage server' and install all the files of this machine.

    The client Setup is to install even on the rest of the PC but editing an ini file so that the client application connects to the data through a drive mapped on the Central Server network.

    It comes from old outdated technology, such as the underlying FoxPro database and has some horrible incompatibilities for example. SMB2 locking on the Vista and Win7 customers, products client antivirus hung their machines she virus check the program folder, hogging the bandwidth of the network, etc...

    Told me a stable solution it so to do a single installation of the «Wise» server on a Windows 2003 server and workstations to connect through the Terminal Services. In this way, it keeps it OS independent and does not monopolize the bandwidth network sends tons of data to the client.

    I was wondering if VMWare offers products that reach a similar facility?

    daxtrajero wrote:

    Perfect thanks.

    Last question (s) I promise you!

    (1) each physical workstation is currently MS Office, Sage accounting and Outlook for e-mail. Does make sense to run all these Virtual PC?

    (2) material, on which I intend to run ESXi is Intel Dual Core, 2 cards, LAN, 4 GB RAM, 2 x 500 GB SATA II drives

    Is this OK spec to manage virtual server 2 k 3 and 10 workstations XP? I looked at the minimum requirements and it meets those, but do not know how mucb still to go to manage my 10 workstations & Server?

    (1) Yes, it would be nice

    (2) short on memory type - you have enough ram for each of the servers/workloads that will run on it. You can 'out' with less memory allocate virtual machines than for actual physical boxes, but I would like that esxi host to have at least 8 GB of ram - 12 GB would be great. Disc - looking spindles as much as possible - and for chucks be as fast as possible. If I were designing it, and recognizing the budgets, I would like to get a pair of good small mirrored disks (to be used as operating system - really small is fine. Can I have 4 or 5 SAS drives in a raid 5

    Will be what you specified work? ermmmm... maybe a little - it depends entirely on the amount of use and the load. If you have any questions, then it would be wise to run all applications except perhaps for our wise accounting the physical desktop application and only use the jobs of virtual machine for the good stuff.

Maybe you are looking for

  • Dose system not boot

    Itry to use win10on my laptop but someprogram dose notwork so when I try to use backup hard driveIt dose not workSo, how can I get picture from my hard drive recover as it was from the factory

  • Satellite A300-1RZ - stucks Windows 7 upgrade on the first step of the installation

    Hi all I'm Italian, I an A300 Satellite with Vista Home Premium I paid 30 euros for the free upgrade to Windows 7, which reached my House yesterday. I got 2 DVD:-1 to 'prepare' my phone: * TOSHIBA UPGRADE DVD *.-1 upgrade operating system: * WINDOWS

  • Satellite T110-121 - Wireless does not work after sleep in Win7 Home Prem 64

    Hello I bought Toshiba Satellite T110-121, with Windows 7 Home Premium. Problem: 1. after going into Sleep Mode, when he wakes up, my WIFI does not work, unless I'm in wireless network card setting, Advanced tab, then I change the Tx to say 100% to 7

  • Broken power connector? Where to find one?

    Hello the delayed of my thoshiba satellite is broken.Where can I find one? Thank you.

  • Configure a current clamp

    Hello I have a current clamp for model fluke 80i-110 s I need to acquire an analog signal. I have a NOR-BNC-2111 interface hanging in a PXI 6289 data acquisition card. I checked that my current clamp is out 100 mv / ampere of current I used the DAQ L