Using vimsh

By | June 22, 2007

List information about a VM vimsh -n -e “vmsvc/getallvms” See a summary of the current host configuration vimsh -n -e “hostsvc/hostsummary” Enter maintence mode vimsh -n -e /hostsvc/maintenance_mode_enter Exit maintence mode vimsh -n -e /hostsvc/maintenance_mode_exit

Script to power off all VM’s

By | June 22, 2007

Here is at BASH script to power off all active VM’s on a host. #!/bin/bash IFS=’ ‘ for vm in `vmware-cmd -l` do         name=`vmware-cmd “$vm” getconfig displayname -q`         state=`vmware-cmd  “$vm” getstate -q`         if [ “$state” == “on” ]         then                 echo “Trying to power off $name….”                 output=`vmware-cmd “$vm” stop trysoft`… Read More »

Cool add-on to Virtual Center 2.x from Run-virtual.com

By | June 21, 2007

Someone informed me on this very usefull add-on for Virtual Center 2.x. VCplus           – http://www.run-virtual.com/?page_id=184 Haven’t tried it myself yet, but i will during next week. I think that this add-on is a step in the right direction. Mayby VMware should implement this add-on in VC. Nice job Richard …. Keep it up…. A. Mikkelsen