The API-based VMware data adapter for Capacity Command Center 2.9.4 does not collect Datastore level metrics at VM level. This hotfix adds the following metrics:
- DATASTORE_VM_USED_GB
- DATASTORE_VM_PROVISIONED_GB
- DATASTORE_VM_UNSHARED_GB
To deploy the patch on Windows, follow these steps:
Deploy the XML and class files
1. Extract the VMWareAPIPatch directory from the attached zip file. The folder contains the following files:
• hyp_vmware_api.xml
• VMWare_API_Engine.class
• WebClient_VIJava.class
• WebClient_VMWareSDK.class
• WebClientInterface.class
• 2017006122259_vmware_add_metrics.sql
2. Make a backup copy of the following files:
• <CCC_INSTALL_FOLDER>\ApacheTomcat\webapps\DM\WEB-INF\classes\hyp_vmware_api.xml
• <CCC_INSTALL_FOLDER>\ApacheTomcat\webapps\DM\WEB-INF\classes\com\hyperformix\DataGatherEngine\DataIntf\Engine\VMWare_API_Engine.class
• <CCC_INSTALL_FOLDER>\ApacheTomcat\webapps\DM\WEB-INF\classes\com\hyperformix\DataGatherEngine\DataIntf\VmwareAPI\WebClient_VIJava.class
• <CCC_INSTALL_FOLDER>\ApacheTomcat\webapps\DM\WEB-INF\classes\com\hyperformix\DataGatherEngine\DataIntf\VmwareAPI\WebClient_VMWareSDK.class
• <CCC_INSTALL_FOLDER>\ApacheTomcat\webapps\DM\WEB-INF\classes\com\hyperformix\DataGatherEngine\DataIntf\VmwareAPI\WebClientInterface.class
3. Replace the class and xml files in these folders with the ones you extracted from the zip file.
4. Restart the CCC service:
• Click Start, Control Panel, Administrative Tools. Click Services.
• Select the Apache Tomcat 7.0 CA_CCC service and restart it.
Deploy the SQL script:
1. If not already set, provide the DM DB password in the ccc-db.properties file at the following two locations:
• <CCC_INSTALL_FOLDER>\ccc-migrations\standard\environments
• <CCC_INSTALL_FOLDER>\ccc-migrations\cml\environments
2. Copy the 2017006122259_vmware_add_metrics.sql file to <CCC_INSTALL_FOLDER>\ccc-migrations\standard\scripts.
3. Open a command prompt and navigate to the ccc-migrations\bin folder:
cd C:\Program Files\CA\<ccc-install-folder>\ccc-migrations\bin
4. Type
upgrade-ccc-db.bat
and press Enter.
5. Check the upgrade-ccc-db.log file to verify that the script was executed without errors.
6. No errors in the log file means the tables in the DM database were successfully updated.
To deploy the patch on Linux/UNIX, proceed in a similar way, using the upgrade-ccc-db.sh script in step 4.