At Primary Server's console prompt, go to the $ZDC_Home directory.
Run the appropriate command.
To verify the ZENworks system files, the ZENworks database schema, and the ZENworks content:
On Windows: zdc.bat verify -v systemfiles,zendatabase,zencontent -b <complete_path_of_the_ZDC_baseline_data_file>
On Linux: ./zdc verify -v systemfiles,zendatabase,zencontent -b <complete_path_of_the_ZDC_baseline_data_file>
To verify only for the ZENworks system files:
On Windows: zdc.bat verify -v systemfiles -b <complete_path_of_the_ZDC_baseline_data_file>
On Linux: ./zdc verify -v systemfiles -b <complete_path_of_the_ZDC_baseline_data_file>
To verify only for the ZENworks database schema:
On Windows: zdc.bat verify -v zendatabase -b <complete_path_of_the_ZDC_baseline_data_file>
On Linux: ./zdc verify -v zendatabase -b <complete_path_of_the_ZDC_baseline_data_file>
To verify only for the ZENworks content:
On Windows: zdc.bat verify -v zencontent
On Linux: ./zdc verify -v zencontent
You can also specify the following command options while running ZDC.
ZDC runs the diagnostic tests and generates the reports in the HTML format. The reports are stored in the $ZDC_Home/reports/timestamp directory on a Windows Primary Server and in the $ZDC_Home\reports\timestamp directory on a Linux Primary Server. To view the reports, open index.html that is located in the report directory.
The complete log of the diagnostic tests is stored in $ZDC_HOME/logs/timestamp.log on a Windows Primary Server and in the $ZDC_HOME\logs\timestamp.log on a Linux Primary Server.
IMPORTANT:In the ZENworks database on the Microsoft SQL server, check for schema differences by running ZDC. If the unique constraint is not created on the serial number column of the zDevice table, duplicate serial numbers might be assigned to the devices that are connected to the Management Zone. For information, see Troubleshooting the database migration failure, duplication of serial numbers in the zDevice table.
To verify the Audit Database schema in ZENworks by using the ZDC tool:
On Windows: Run the zdc.bat verify -v auditdatabase -b <complete_path_of_the_ZDC_baseline_data_file> command.
On Linux: Run the ./zdc verify -v auditdatabase -b <complete_path_of_the_ZDC_baseline_data_file> command.
Audit and ZENworks databases cannot be verified by running the command in one instance. They need to be verified separately.
The ZDC reports for Audit are present in the reports\timestamp directory. You can view reports from the index.html file.