Take a look at Mike's page on some examples of using vimsh http://blog.laspina.ca/ubiquitous/automating-vsphere-esx4-host-installations
When using vimsh vmware-vim-cmd, you'll need to make sure it's ran as the last startup script as it relies on certain VMware components to startup. If you just do a google search you'll find hundreds of examples and the same goes on the VMTN forum.
You may see old posts referencing vimsh but it's the same as vmware-vim-cmd, just the newer version has a wrapper around vimsh. Majority of the syntax and params are the same
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".