On the Connection Server are two utilities that you can use for the maintenance of instant-clone VMs in vCenter Server and the clusters that the VMs are in.

The utilities are IcMaint.cmd and IcUnprotect.cmd and are located in C:\Program Files\VMware\VMware View\Server\tools\bin.

IcMaint.cmd

This command deletes the parent VMs from the ESXi host so that the host can be put into maintenance mode. The host is not automatically put into maintenance mode. To perform maintenance on the host, the vCenter server administrator must manually put the host into maintenance mode.

Syntax:

IcMaint.cmd -vc hostname_or_IP_address -uid user_ID -password password -hostName ESXi_hostname -maintenance ON|OFF

Parameters:

  • -vc host name or IP address of vCenter Server

  • -uid vCenter Server user ID

  • -password vCenter Server user password

  • -hostname ESXi host name

  • -maintenance ON|OFF

    This parameter specifies whether the host is available for hosting parent VMs.

    After the command is run on the host, the InstantClone.Maintenance annotation value is set to 1 and the parent VMs are deleted. After the parent VMs are deleted, the InstantClone.Maintenance annotation value is set to 2 and no more parent VMs are created on the host. When you run this command again with -maintenanceOFF, the InstantClone.Maintenance annotation value is cleared for the host to become available for hosting parent VMs.

All the parameters are required.

IcUnprotect.cmd

This utility unprotects the folders and VMs that ClonePrep creates. ClonePrep is the mechanism that customizes instant clones during the creation process.

Syntax:

IcUnprotect.cmd -vc hostname_or_IP_address -uid user_ID -password password [-clusterId cluster_ID] [-includeFolders]

Parameters:

  • -vc host name or IP address of vCenter Server

  • -uid vCenter Server user ID

  • -password vCenter Server user password

  • -clusterId cluster ID

  • -includeFolders

    This parameter unprotects the folders in addition to the VMs.

All the parameters are required except clusterId and includeFolders. If clusterId is not specified, protection is removed from all ClonePrep VMs in all data centers.