Category Archives: Scripting

The power of VIPerlToolkit

By | June 26, 2008

Over the past 2 weeks i have been playing around with the VIperlToolkit and discovered hwo easy and powerfull it is. Some of the scripts i have created is avaiable for download in the Download section of this site. I first came accross the VIPerlToolkit about 8 months ago when looking through www.run-virtual.com. I got… Read More »

New release of the healthscript is out.

By | July 25, 2007

We have released a new version of the healthscript (version 0.20). This release includes several new information: – Added Authentication information –  Added Dumppart information –  Added physical drive information –  Added last 30 lines from /var/log/vmkwarning –  Added last 30 lines from /var/log/vmksummary –  Added last 30 lines from /var/log/secure –  Added last 30 lines from /var/log/vmware/vpx/vpxa.log I’ve also changed… Read More »

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 »

Health script version 0.010 released

By | April 20, 2007

I just added a few things to the script: – Added info about SC memory  – Added Firewall services – Added NAS/shares connected – Added show USB host controller type – Edited way IP address was obtained – Edited my_ntp_server back so it doesn’t use sed – Edited my_hostname