2.3 Running ZDC

  1. At Primary Server's console prompt, go to the $ZDC_Home directory.

  2. Run the appropriate command.

    • To verify the complete ZENworks content:

      On Windows: zdc.bat verify -b <complete_path_of_the_ZDC_baseline_data_file>

      On Linux: ./zdc verify -b <complete_path_of_the_ZDC_baseline_data_file>

    • To verify the specific ZENworks system files, the ZENworks database schema, or 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.

    • -s: session name
    • -l: complete path of the ZDC log filename
    • -r: complete path of the ZDC reports directory

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:If the ZENworks database is 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.

Verifying Audit Database

To verify the Audit Database schema in ZENworks by using the ZDC tool:

  • On Windows: Run the zdc.bat verify auditdatabase -b <complete_path_of_the_ZDC_baseline_data_file> command.

  • On Linux: Run the ./zdc verify 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.