RenameEsxHost.pl

Version 3

    Change ESXi host name without losing historical data (performance metrics, events, tasks, and custom attributes/annotations)

     

    Sample Run:

     

    perl RenameEsxHost.pl --server=172.16.254.105 --username=administrator@vlab --password=* --host=esx-03.vlab.local --domainname=vlab.local --hostname=esx-01

    Current DNS settings for host 'esx-03.vlab.local':

      Host name  : esx-03

      Domain name: vlab.local

    Updated DNS settings for host 'esx-03.vlab.local':

      Host name  : esx-01

      Domain name: vlab.local

    Host 'esx-03.vlab.local' successfully renamed to 'esx-01.vlab.local' in vCenter