vGhetto Script Repository

    Here is a nice consolidation of all the scripts we've written for easier access.

     

    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

    Supported Platform

    03/22/13getSupportedGuestOSes.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    03/06/13listInstalledvCloudSuiteProducts.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    01/17/13getVscsiStats.plvMA 5.1 & vSphere SDK for Perl 5.1
    01/15/13getEsxtop.plvMA 5.1 & vSphere SDK for Perl 5.1
    01/09/13vdsBackupMgr.plvMA 5.x & vSphere SDK for Perl 5.x
    12/12/12getLicenseInfo.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    12/05/12vdsHealthCheckMgr.plvMA 5.x & vSphere SDK for Perl 5.x
    10/08/12migrateVMs.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    07/18/12Automatically Securing Virtual Machines Using a vCenter OrchestratorvCO 4.x/5.x
    07/17/12Automatically Securing Virtual Machines Using a vCenter AlarmvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x OR PowerCLI 5.x
    07/07/12getESXiHosts.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    04/16/12remediateSvMotionVDSIssue.plvMA 5.x & vSphere SDK for Perl 5.x
    04/16/12querySvMotionVDSIssue.plvMA 5.x & vSphere SDK for Perl 5.x
    04/12/12getNumberOfvMotions.plvMA 5.x & vSphere SDK for Perl 5.x
    04/08/12vCloudVMLinkedClonesMapping.plvCloud SDK for PHP
    04/08/12vcloudVMChainLength.phpvMA 5.x & vSphere SDK for Perl 5.x
    03/24/12datastoreClusterVMProvisioning.plvMA 5.x & vSphere SDK for Perl 5.x
    02/26/12updateVMToolsPolicy.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    02/05/12vCenterAdvSettingMgmt.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    01/16/12vmwarevCloudDirectorReport.phpvCloud SDK for PHP
    11/25/11moRefFinder.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    10/11/11monitorUserLoginAlarm.plvMA 4.x/5.x & vSphere SDK for Perl 4.x/5.x
    09/24/11getVMDiskFormat.plvMA 5.x
    09/13/11 registerCustomSolution.pl & updateVMManagedBy.pl
    vMA 5.x
    09/12/11deployvShieldManager.sh
    vMA 5.x
    07/28/11hostCacheManagement.plvMA 5.x & vSphere SDk for Perl 5.x
    07/28/11updateVMBootOrder.pl vMA 5.x & vSphere SDk for Perl 5.x
    07/27/11datastoreClusterManagement.plvMA 5.x & vSphere SDk for Perl 5.x
    07/26/11guestOpsManagement.plvMA 5.x & vSphere SDk for Perl 5.x
    05/26/11generateHostConfigurationWorksheet.plvMA 4.x  & vSphere SDK for Perl 4.x
    03/25/11licenseManager.plvMA 4.x  & vSphere SDK for Perl 4.x
    01/28/11getAssetTag.plvMA 4.x  & vSphere SDK for Perl 4.x
    01/24/11addHostCustomField.pl

    vMA 4.x  & vSphere SDK for Perl 4.x

    07/29/10

    patch-host.pl\

    vMA 4.x  & vSphere SDK for Perl 4.x

    07/13/10

    vaaiHWAccelerationMgmt.pl\

    vMA 4.1  & vSphere SDK for Perl 4.1

    07/13/10

    siocManagement.pl\

    vMA 4.1  & vSphere SDK for Perl 4.1

    07/06/10

    vmDiskSharesMgmt.pl\

    vMA 4.0  & vSphere SDK for Perl 4.0

    06/05/10

    hostops-lamw.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    06/02/10

    ipmiConfig.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    05/08/10

    Vdf.java (using Steve Jin's VI Java API)

    VI Java

    05/06/10

    vdf.pl \

    vMA 4.0  & vSphere SDK for Perl 4.0

    04/28/10

    Just for fun! == ghettoVCBg3 == Just for fun! (Supports both Windows & Linux platform)\

    vMA 4.0, Linux/Windows System w/ vCLI 4.0, VIX 1.6.2, OVFTool 1.0

    04/23/10

    vmNICManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    03/01/10

    getVMMoRefID.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    02/25/10

    getvswif.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    02/16/10

    ghettoHostProfile.pl (Supports ESXi only)

    vMA 4.0  & vSphere SDK for Perl 4.0

    02/12/10

    vGhetto on Sourceforge!

    RHEL/CENTOS/FEDORA/UBUNTU/DEBIAN

    02/05/10

    vmVMDKToDatastoreToDeviceMapping

    vMA 4.0  & vSphere SDK for Perl 4.0

    02/04/10

    esxcfg-perf.pl (Compare performance metrics across multiple ESX(i) hosts)

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/31/10

    ghettoUPSHostShutdown.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/30/10

    updateDCUIBanner.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/29/10

    vmwarevSphereSecurityHardeningReportCheck.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/29/10

    Remove the ESXi web welcome screen (Method #3)

    MOB

    01/20/10

    esxcfg-vswitch-lamw-mod.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/19/10

    esxcfg-rename-datastore.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/19/10

    esxcfg-portgroup-mgmt.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/17/10

    ghettoHostBackupManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/16/10

    setVMAgeCustomField.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    01/13/10

    getdvSwitchInfo.pl

    vMA 4.0

    01/09/10

    How to install Amazon s3cmd utility on ESX(i) 4.0 & Backup VMs to the Cloud\

    ESXi 4.0 Busybox Console

    12/22/09

    ghettoCloneVM.pl (no vCenter required, ESX or ESXi licensed version)

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/20/09

    provisionedVMReport.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/18/09

    How to browse the internal vSphere APIs

    VI & vSphere API MOB

    12/18/09

    vAppManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/16/09

    hostServiceManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/11/09

    changeBlockTrackingManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/11/09

    getHostHardwareHealthInfo.pl for vCenter / ESX / ESXi

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/10/09

    shutdownHostViaSOAPAPICall.pl for ESX(i) licensed and free version

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/06/09

    floppyManagement.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/05/09

    registerVMX.pl (.vmx and .vmtx)

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/04/09

    wheresMyCOSVMDKAt.pl

    vMA 4.0

    12/02/09

    getvSwitchMacTable.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/01/09

    getRealVMDiskFormat.pl

    vMA 4.0  & vSphere SDK for Perl 4.0

    12/01/09

    createRole.pl

    VMware VIMA 1.0 & vMA 4.0

    11/28/09

    createResourcepool.pl

    VMware VIMA 1.0 & vMA 4.0

    11/25/09

    hostOperations.pl

    VMware VIMA 1.0 & vMA 4.0

    11/11/09

    configureAdvHAClusterOptions.pl

    VMware VIMA 1.0 & vMA 4.0

    11/10/09

    vmdkManagement.pl

    VMware VIMA 1.0 & vMA 4.0

    11/02/09

    findVMsWithRDMs.pl

    VMware VIMA 1.0 & vMA 4.0

    10/28/09

    listHAClusterNodes.pl

    vMA 4.0

    10/26/09

    vmISOManagement.pl

    VMware vMA 4.0

    10/26/09

    upgradeVMVirtualHardware.pl

    VMware vMA 4.0

    10/21/09

    rdmManagmement.pl

    VMware VIMA 1.0 & vMA 4.0

    10/14/09

    Getting Started with the vMA (tips/tricks)

    VMware VIMA 1.0 & vMA 4.0

    10/11/09

    getVMDiskInfo.pl

    VMware VIMA 1.0 & vMA 4.0

    10/08/09

    useVIFastpassOnvMAToRunPerlScriptWithoutClearTextPassword.pl

    VMware VIMA 1.0 & vMA 4.0

    10/07/09

    setUserDatastorePermission.pl

    VMware VIMA 1.0 & vMA 4.0

    10/03/09

    pluginExtensionManager.pl

    VMware VIMA 1.0 & vMA 4.0

    10/02/09

    Getting Started with the vSphere SDK for Perl

    VMware VIMA 1.0 & vMA 4.0

    09/28/09

    addVMAnnotation.pl

    VMware VIMA 1.0 & vMA 4.0

    09/26/09

    getVMThinProvisionedSavings.pl

    VMware & vMA 4.0

    09/25/09

    generateVMRemoteConsoleURL.pl

    VMware & vMA 4.0

    09/24/09

    getVMsPerDatastore.pl

    VMware VIMA 1.0 & vMA 4.0

    09/23/09

    listVMsInResourcePool.pl

    VMware VIMA 1.0 & vMA 4.0

    09/21/09

    queryVMsCreated.pl

    VMware & vMA 4.0

    09/21/09

    listDatastoreFiles.pl

    vMA 4.0

    09/14/09

    getAllVMsDiskFormatType.pl

    VMware VIMA 1.0 & vMA 4.0

    09/12/09

    executeCommandUsingFastPass.pl

    VMware VIMA 1.0 & vMA 4.0

    09/10/09

    getDatastoreUUID.pl

    VMware VIMA 1.0 & vMA 4.0

    09/09/09

    Instructions on how to install vCLI 32bit/64bit on Ubuntu 9.04

    Ubuntu 9.04

    09/09/09

    getWWPN.pl

    VMware VIMA 1.0 & vMA 4.0

    08/30/09

    getVMsResourcePools.pl

    VMware VIMA 1.0 & vMA 4.0

    08/28/09

    factoryResetESXi\

    VMware VIMA 1.0 & vMA 4.0

    08/23/09

    ghettoVCB-restore.sh\

    ESX Service Console and/or ESXi Busybox Console

    08/19/09

    renameLocalStorageDatastore.pl

    VMware VIMA 1.0 & vMA 4.0

    08/18/09

    removeHostFromvCenterByForce.pl\

    VMware VIMA 1.0 & vMA 4.0

    08/18/09

    getNumofvCPUInCluster.pl

    VMware VIMA 1.0 & vMA 4.0

    08/18/09

    addvSwitchWSecurityPolicy.pl

    VMware VIMA 1.0 & vMA 4.0

    08/17/09

    verifyVpxaAndHostConf.sh\

    ESX Service Console and/or ESXi Busybox Console

    08/16/09

    getVMToolsStatus.pl

    VMware VIMA 1.0 & vMA 4.0

    08/14/09

    getVMonShareableAndNonSharDatastore.pl\

    vMA 4.0

    08/13/09

    addVMAdvParamOption\

    VMware VIMA 1.0 & vMA 4.0

    08/13/09

    addVMCustomField\

    VMware VIMA 1.0 & vMA 4.0

    08/08/09

    takeVMScreenshot.pl\

    vMA 4.0

    08/09/09

    online_hotplug_cpu.sh\

    Linux Supported guestOS

    08/09/09

    online_hotplug_memory.sh\

    vMA 4.0 or Linux supported guestOS

    08/08/09

    How to increase/resize vMA Disks

    VMware VIMA 1.0 & vMA 4.0

    08/08/09

    getAllVMGuestHostname.pl

    VMware VIMA 1.0 & vMA 4.0

    08/07/09

    getAllVMMacs.pl

    VMware VIMA 1.0 & vMA 4.0

    07/31/09

    whichClusterIsMyVMin.pl\

    VMware VIMA 1.0 & vMA 4.0

    07/01/09

    poweroff_suspend_vm.pl

    VMware VIMA 1.0 & vMA 4.0

    06/30/09

    ftCLI.pl\

    VMware vMA 4.0

    06/26/09

    queryDeletedVMs.pl

    VMware VIMA 1.0 & vMA 4.0

    06/18/09

    queryVMCustomField.pl

    VMware VIMA 1.0 & vMA 4.0

    06/17/09

    getVMDiskCID.pl

    VMware VIMA 1.0 & vMA 4.0

    06/17/09

    rescanAllHBAInCluster.pl

    VMware VIMA 1.0 & vMA 4.0

    06/14/09

    removeOrphansFromvCenter.pl

    VMware VIMA 1.0 & vMA 4.0

    06/06/09

    updateVMPortgroup.pl

    VMware VIMA 1.0 & vMA 4.0

    05/29/09

    listVMByFolder.pl

    VMware VIMA 1.0 & vMA 4.0

    05/28/09

    getAllPowedOffVMs.pl

    VMware VIMA 1.0 & vMA 4.0

    06/13/09

    queryDiskParition.pl

    VMware VIMA 1.0 & vMA 4.0

    02/21/09

    ghettoVCBg2\

    VMware VIMA 1.0 & vMA 4.0

    05/12/09

    checkLicenseServer.pl\

    VI Perl Toolkit & VMware VIMA 1.0

    03/16/09

    vGhettoLinkedClone.pl\

    vSphere SDK for Perl 4.0 & VMware vMA 4.0

    03/05/09

    cdp.pl\

    VI Perl Toolkit & VMware VIMA 1.0/vMA 4.0

    02/14/09

    vmwarevSphereHealthCheck.pl\

    vSphere SDK for Perl 4.0 & VMware vMA 4.0

    02/13/09

    ghettoShutdown.pl\

    VMware VIMA 1.0

    01/26/09

    vmwareHealthCheck.pl\

    VI Perl Toolkit & VMware VIMA 1.0

    01/13/09

    ghettoQuickMigrate.sh\

    VI Perl Toolkit & VMware VIMA 1.0

    01/05/09

    ghettoClone.sh\

    VI Perl Toolkit & VMware VIMA 1.0

    11/03/08

    rdm.sh\

    ESX Service Console and/or ESXi Busybox Console

    11/17/08

    ghettoVCB.sh\

    ESX Service Console and/or ESXi Busybox Console

    09/30/08

    ghetto-esxi-linked-clones.sh\

    ESXi Busybox Console

    09/20/08

    npiv_wwn_discovery-esx.sh\

    ESX Service Console

    09/20/08

    npiv_wwn_discovery-esxi.sh\

    ESXi Busybox Console

    07/05/08

    my-vmware-cmd.sh\

    ESX Service Console/ESXi Busybox Console/VMware VIMA/UNIX or Linux Console

    06/26/08

    ghetto-esx-linked-clones.sh\

    ESX Service Console

     

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

     

    Hope you guys/gals enjoy

     

    =========================================================================

    William Lam

    VMware vExpert 2009,2010,2011,2012

    VMware ESX/ESXi scripts and resources at: http://www.virtuallyghetto.com/

    vGhetto Script Repository

    http://twitter.com/lamw

     

    http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg