Is there somewhere I can get a list of commands to manage my ESX 3.5 server in the event that I need to do it from the console?
Such as restarting and shutting down Virtual Machines,etc.
http://www.vmreference.com/vi3-card/
There's a great PDF at the link above, with most useful commands. Basically esxcfg-<tab><tab>.
Duncan
Blogging: http://www.yellow-bricks.com
If you find this information useful, please award points for "correct" or "helpful".
This card does have some useful commands but I do not see how to shutdown the VMs safely if for some reason the network is down and I cannot use the infastructure client.
I have seen some reference to using the shutdown command but I am not sure if this brings down the VMs safely or not.
This is another good link listing commands.
http://b2v.co.uk/b2vguide2vmware3.htm
For shutting down VMs one way is using vmware-cmd
there is are also a lot of commands available using vimsh. xtravirt has a good document on vimsh for 3.5
http://knowledge.xtravirt.com/white-papers/scripting.html
I have some examples and info on various service console commands that you will find useful.
Things like stopping VMs when they wont via VI client, releasing locked files, vswitch and other network commands if you need to resort to the service console. Ive found them useful many times.
Andy, VMware Certified Professional (VCP),
If you found this information useful please award points using the buttons at the top of the page accordingly.
Will the following command bring it down properly?
vmware-cmd /path/to/vm stop trysoft
Also I am wondering if the following two commands will power it back on:
vmware-cmd -s register <path to VM>
vmware-cmd <path to VM> start
Is the first command necessary or will the last one do.
As far as I know this is the difference between the powerop_modes when running vmware-cmd shutdown
soft - will attempt to bring the VM down properly but VMware tools needs to be installed on the VM
hard - will shutdown the VM down regardless
trysort - will attempt a soft shutdown and if that fails will do a hard shutdown
Hello,
Even so sometimes using 'hard' will not shutdown the VM and you have to resort to alternative methods. Some are outlined at http://www.itworld.com/security/54258/more-thoughts-forensics .
Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll
Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links