hostops-lamw.pl

Version 2

    A modified version of VMware's vSphere SDK for Perl Utility hostops.pl which allows you to add an ESX or ESXi host to vCenter which has SSL verification enabled.

     

    Download the script here

     

    Requirements

    • vCLI or vMA 4.0

    • vCenter 4.0

    • ESX/ESXi 4.0

    • SSL Thumbprint of ESX or ESXi host to be added

     

    Setup

    1. Download hostops-lamw.pl to the system that has vCLI installed or on to vMA host

     

    2. Copy the script into the following directory

     

    Linux Installation/vMA

    /usr/lib/vmware-cli/apps/host

    Windows Installation

    C:\Program Files\VMware\VMware vSphere CLI\Perl\apps\host

     

    Sample Execution

    [vi-admin@scofield ~]$ ./hostops-lamw.pl --server reflex.primp-industries.com --username primp --operation addhost --target_host  esxi4-1.primp-industries.com --target_username root --target_password 'password' --sslthumbprint  "79:BB:39:09:F6:E5:91:BD:B0:C3:F3:09:B4:38:50:FB:ED:9C:53:A5" --cluster virtual-cluster
    
    Host 'esxi4-1.primp-industries.com' added successfully