VMware

vGhetto Script Repository

VERSION 54 Published

Created on: Apr 24, 2009 10:17 AM by lamw - Last Modified:  Nov 16, 2009 6:40 PM by lamw

Here is a nice consolidation of all the scripts we've written for easier access and also check out our site at: http://engineering.ucsb.edu/~duonglt/vmware/

We'll be updating this page as new scripts are released and if there are any script/tool(s) that might be of use to the general community that does not already exists, please post in this thread and I'll take a look as time permits.

Creation Date Script Name Category Supported Platform Executed on
11/11/09 configureAdvHAClusterOptions.pl Cluster Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
11/10/09 vmdkManagement.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
11/02/09 findVMsWithRDMs.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/28/09 listHAClusterNodes.pl Host Management vMA 4.0 vMA 4.0
10/26/09 vmISOManagement.pl VM Management VMware vMA 4.0 VMware vMA 4.0
10/26/09 upgradeVMVirtualHardware.pl VM Management VMware vMA 4.0 VMware vMA 4.0
10/21/09 rdmManagmement.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/14/09 Getting Started with the vMA (tips/tricks) vMA/VIMA VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/11/09 getVMDiskInfo.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/08/09 useVIFastpassOnvMAToRunPerlScriptWithoutClearTextPassword.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/07/09 setUserDatastorePermission.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
10/03/09 pluginExtensionManager.pl Plugin Managment vSphere SDK for Perl VMware VIMA 1.0 & vMA 4.0
10/02/09 Getting Started with the vSphere SDK for Perl vSphere SDK for Perl vSphere SDK for Perl VMware VIMA 1.0 & vMA 4.0
09/28/09 addVMAnnotation.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/26/09 getVMThinProvisionedSavings.pl VM Management VMware vMA 4.0 VMware & vMA 4.0
09/25/09 generateVMRemoteConsoleURL.pl VM Management VMware vMA 4.0 VMware & vMA 4.0
09/24/09 getVMsPerDatastore.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/23/09 listVMsInResourcePool.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/21/09 queryVMsCreated.pl VM Management VMware vMA 4.0 VMware & vMA 4.0
09/21/09 listDatastoreFiles.pl Host Management vMA 4.0 vMA 4.0
09/14/09 getAllVMsDiskFormatType.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/12/09 executeCommandUsingFastPass.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/10/09 getDatastoreUUID.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
09/09/09 Instructions on how to install vCLI 32bit/64bit on Ubuntu 9.04 Host/VM Management Ubuntu 9.04 Ubuntu 9.04
09/09/09 getWWPN.pl Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/30/09 getVMsResourcePools.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/28/09 factoryResetESXi\ Host Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/23/09 ghettoVCB-restore.sh\ Backup/Recovery ESX(i) 3.5 and 4.0+ ESX Service Console and/or ESXi Busybox Console
08/19/09 renameLocalStorageDatastore.pl Host Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
08/18/09 removeHostFromvCenterByForce.pl\ VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/18/09 getNumofvCPUInCluster.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/18/09 addvSwitchWSecurityPolicy.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/17/09 verifyVpxaAndHostConf.sh\ Host Management ESX(i) 3.5 & 4.0 ESX Service Console and/or ESXi Busybox Console
08/16/09 getVMToolsStatus.pl VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/14/09 getVMonShareableAndNonSharDatastore.pl\ VM Management vMA 4.0 vMA 4.0
08/13/09 addVMAdvParamOption\ VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/13/09 addVMCustomField\ VM Management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/08/09 takeVMScreenshot.pl\ VM Management ESX(i) 4.x vMA 4.0
08/09/09 online_hotplug_cpu.sh\ Linux guestOS Management Linux Supported guestOS Linux Supported guestOS
08/09/09 online_hotplug_memory.sh\ vMA and Linux guestOS Managment vMA 4.0 or Linux supported guestOS vMA 4.0 or Linux supported guestOS
08/08/09 How to increase/resize vMA Disks vMA/VIMA management VMware VIMA 1.0 & vMA 4.0 VMware VIMA 1.0 & vMA 4.0
08/08/09 getAllVMGuestHostname.pl VM Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
08/07/09 getAllVMMacs.pl VM Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
07/31/09 whichClusterIsMyVMin.pl\ VM Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
07/01/09 poweroff_suspend_vm.pl VM Managerment ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/30/09 ftCLI.pl\ VM Deployment/Managerment ESX(i) 4.x and vCenter 4.0 VMware vMA 4.0
06/26/09 queryDeletedVMs.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/18/09 queryVMCustomField.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/17/09 getVMDiskCID.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/17/09 rescanAllHBAInCluster.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/14/09 removeOrphansFromvCenter.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/06/09 updateVMPortgroup.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
05/29/09 listVMByFolder.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
05/28/09 getAllPowedOffVMs.pl VM Deployment/Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
06/13/09 queryDiskParition.pl Host Management ESX(i) 3.5 + 4.x VMware VIMA 1.0 & vMA 4.0
02/21/09 ghettoVCBg2\ Backup/Recovery ESX(i) 3.5u2+ & 4.x+ VMware VIMA 1.0 & vMA 4.0
05/12/09 checkLicenseServer.pl\ Host Management ESX(i) 3.5+ & vCenter 2.5+ VI Perl Toolkit & VMware VIMA 1.0
03/16/09 vGhettoLinkedClone.pl\ VM Deployment/Management ESX(i) 4.x+ & vCenter 4.x+ vSphere SDK for Perl 4.0 & VMware vMA 4.0
03/05/09 cdp.pl\ Reporting/VM Management ESX(i) 3.5+ & vCenter 2.5+ VI Perl Toolkit & VMware VIMA 1.0/vMA 4.0
02/14/09 vmwarevSphereHealthCheck.pl\ Reporting/VM Management ESX(i) 4.x+ & vCenter 4.x+ vSphere SDK for Perl 4.0 & VMware vMA 4.0
02/13/09 ghettoShutdown.pl\ VM Management ESX(i) 3.5u2+ VMware VIMA 1.0
01/26/09 vmwareHealthCheck.pl\ Reporting/VM Management ESX(i) 3.5+ & vCenter 2.5+ VI Perl Toolkit & VMware VIMA 1.0
01/13/09 ghettoQuickMigrate.sh\ VM Management ESX(i) 3.5u2+ VI Perl Toolkit & VMware VIMA 1.0
01/05/09 ghettoClone.sh\ VM Deployment/Management ESX(i) 3.5u2+ VI Perl Toolkit & VMware VIMA 1.0
11/03/08 rdm.sh\ VM Management ESX(i) 3.5+ ESX Service Console and/or ESXi Busybox Console
11/17/08 ghettoVCB.sh\ Backup/Recovery ESX(i) 3.5 and 4.0+ ESX Service Console and/or ESXi Busybox Console
09/30/08 ghetto-esxi-linked-clones.sh\ VM Deployment/Management ESXi 3.5+ ESXi Busybox Console
09/20/08 npiv_wwn_discovery-esx.sh\ VM Management ESX(i) 3.5+ ESX Service Console
09/20/08 npiv_wwn_discovery-esxi.sh\ VM Management ESX(i) 3.5+ ESXi Busybox Console
07/05/08 my-vmware-cmd.sh\ VM Management ESX(i) 3.5+ ESX Service Console/ESXi Busybox Console/VMware VIMA/UNIX or Linux Console
06/26/08 ghetto-esx-linked-clones.sh\ VM Deployment/Management ESX 3.x+ ESX Service Console


FYI - "v" in vGhetto is not vSphere ... it's very ;)

Hope you guys/gals enjoy

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
http://twitter.com/lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg
Average User Rating
(2 ratings)




There are no comments on this document

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities