A. Mikkelsen VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Monday, December 17, 2007

New and updated scripts

Filed under: Scripting,Tools — A. Mikkelsen @ 22:00 pm

I have updated the vcinfo.pl script so it also lists if a VM has snapshots.

I have also created a new ViPerlToolkit script that lists all the VM’s that have snapshots and prints in on screen.
All the ViPerlToolkit scripts can be found in the Download section under VIPerlToolkit Scripts.

I’ll add more functionality to vcinfo.pl as i get around to it (if you have any idears please let me know and I’ll try to implement them).
I’ll also add more scripts as i create them.

A. Mikkelsen

Tuesday, December 11, 2007

Don’t miss the VMware Security Center

Filed under: Security,White Papers — A. Mikkelsen @ 14:15 pm

If you are looking for Security White Papers for VMware products take a closer look at

A. Mikkelsen

Monday, December 10, 2007


Filed under: Linux Commands — A. Mikkelsen @ 21:33 pm

To edit the crontab type (it normally uses vi as editor)
crontab -e

To add a scheduled type
0 21 * * 1-7 perl /tmp/test.pl

To make sure the crontab is updated correctly restart it
/etc/init.d/cron restart

0 Minutes (0-59)
21 Hour (0-23)
* Day (1-31)
* Month (1-12)
0-7 Weekday (0-7, Sunday = 0)

*/5 * * * * “Runs every 5 minute, every day, all year”
*/5 1,10 1,6 * “Runs every 5 minutes, January and July 1 and 10”


Thursday, December 6, 2007

The power of VIPerlToolkit

Filed under: Scripting,Virtual Center — A. Mikkelsen @ 21:23 pm

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 inspired by Richards script that created and updated custom fields in Virtual Center, and i decided to add some more information to my Virtual Center.

Below is a screenshot of my Virtual Center witch is running version 1.1 of vcinfo.pl

The script automatically updates the following information in Virtual Center:

  • All virtual networks attached
  • List if VM has snapshots
  • The path and name of the VMX file
  • The size of each attached VMDK file
  • The path and name of each VMDK file
  • The freespace in each VMDK file
    (Requires VMwareTools to be running)

To run the script you need to install ViPerlToolkit and Perl on your VirtualCenter server (Howto from www.run-virtual.com).
Or run tit in the VMware ViPerlToolkit Appliance (Download it from www.vmware.com).

This will not be my last script 😉

A. Mikkelsen

Powered by WordPress