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 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

9 thoughts on “The power of VIPerlToolkit

  1. Pingback: A. Mikkelsen » Blog Archive » New and updated scripts

  2. Chris

    Hi,

    I tried your script and got the following error:
    [vmtool@VIPERL test]$ ./vcinfo.pl
    Can’t use an undefined value as an ARRAY reference at ./vcinfo.pl line 235.
    [vmtool@GF0VSXMG56 test]$

    Do you have an idea?

    Thank you very much for your help and sharing your script
    Chris

  3. amikkelsen Post author

    The error is in the part of the script that add info for VM’s with Tools installed.
    Have you installed VMware tools in any of your VM’s ?
    If not try and see if the script fails.

  4. Tyler

    Hi,

    I’m new to this and more from the administration side then development. You’re script is great and very helpful, but I was wondering how you revert things back to normal again? Basically changing things back to the default view and removing the columns.

    Thanks…
    Tyler

  5. amikkelsen Post author

    Hi Tyler,

    Thanks for your feedback.
    You can delete all colums from within VC.
    1. Under the Administration menu choose Custom attributes.
    2. Select the attributes that you want to delete and press remove.

    A. Mikkelsen

  6. RRock

    Very nice script. A great addition would be whether the VM has an image attached or not. Thanks!

  7. Jax

    Great stuff, Just a quick somewhat related question, I do not want to clog too much the “Virtual Machines” tab, do you know if we can add a tab to VC ?

Leave a Reply

Your email address will not be published. Required fields are marked *