The
vmware-cmd is actually a deprecated utility and there are known issues and some of the params may have worked in previous releases, but YMMV. It's really available for backwards compatibility for any scripts that may have been written in the past, but you won't find any new changes/improvements to the tool.
Best practice is to definitely taking a look at the VI API, which is exposed through vSphere SDK for Perl or PowerCLI. If you're looking at the Perl example, you'll want to start taking a look at the following documentation and install the toolkit on either your Windows/Linux or even VMware vMA system.
http://www.vmware.com/support/developer/vcli/
Here are additional links with more information and examples:
http://engr.ucsb.edu/~duonglt/vmware/#vmware_viptk
http://engr.ucsb.edu/~duonglt/vmware/#vmware_rcli
With regards to the Perl solution, you may need to write your own script using the snippet of code to get it working. I won't have access to my development system for few more days so I won't be able provide a working sample. You also may find something already written in PowerCLI, but you'll need to search the forum.
VIX is a totally different API and is specifically for guest management and not modifying the VM shell params, take a look here for more info:
http://engr.ucsb.edu/~duonglt/vmware/#vmware_vix
Regarding:
How to change VM IP or nic settings through API? the OP was looking in changing the IP Address within the guest VM, this is
different from what you're looking for and you will not be able to use VIX to do the same.
Hopefully this clears everything up, and definitely go through the documentation to get a better understanding of the various ways of accomplishing your task. At the end, if you're looking for a quick and completed solution without digging too much, I would highly recommend looking into PowerCLI...perhaps a solution already exists.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
http://twitter.com/lamw
If you find this information useful, please award points for "correct" or "helpful".