3.0 Troubleshooting ZENworks Command Line Utilities

The following sections provide solutions to the problems you might encounter while working with Novell ZENworks command line utilities:

zman hangs when the output of a command is redirected to a file by using the command line redirection operators such as > or >>

Source: ZENworks 11; zman.
Possible Cause: zman requires the ZENworks administrator username and password for executing each command. If the credentials are not provided with the command, you are prompted to enter the same. However, if the output of the command is redirected to file, you are not prompted to enter the credentials because the prompts for username and password are also redirected to the file. Consequently, zman hangs, waiting for the credentials to be entered.
Action: Specify the credentials as part of the command by using -U|--User and -P|--Password options.
Action: Store the credentials by using the admin-store-credential command and then execute the command.
Action: Redirect the output to a file by using the -R|--Redirect option instead of a redirection operator such as > or >>.

An incorrect success message is displayed when the "stage group name" optional argument is not passed to the system-update-staging-group-create command

Source: ZENworks 11; zman.
Explanation: zman displays the following incorrect message if the stage group name optional argument is not passed to the system-update-staging-group-create command:
Successfully created the object "null"
Action: To view the list of staging groups that would include the newly created staging group, execute the system-update-staging-group-list (susgl) command at the console prompt.

The Imaging role added to a Satellite by using the zman ssaimg command is not immediately applied to the server

Source: ZENworks 11; zman.
Explanation: If you configure the Imaging role by the using the zman ssaimg command, the role is immediately added to the device. If the role is not immediately added, it is added only during the next device refresh schedule.
Action: If you want to immediately apply the role to the device, you must manually refresh the device in one of the following ways:
  • At the command prompt, run the zman workstation-refresh|wrf command. If the managed device is a server, run the zman server-refresh|srf command.

  • On the managed device, right-click the ZENworks icon icon, then click Refresh.

The zman commands do not work for non-root users on a ZENworks Linux server

Source: ZENworks 11; zman.
Explanation: If a non-root user executes the zman commands on a ZENworks Linux server, the following error message is displayed:

You do not have sufficient privileges to run zman commands. As a non-root user in Linux, you should be part of the zmanusers group to run zman commands.

Action: Add the non-root user to the zmanusers group before executing the zman commands.
  1. Log in to the ZENworks server as root.

  2. At the server console prompt:

    • If the user already exists on the Linux device, execute the following command:

      groupmod -A non-rootusername zmanusers

    • If the user does not exist on the Linux device, execute the following command:

      useradd -G zmanusers non-rootusername

  3. Log in to the ZENworks server as a non-root user.

A non-root user is unable to configure a Satellite role by using the zman ssc command

Source: ZENworks 11; zman.
Explanation: If a non-root user tries to configure a Satellite role by using the zman ssc command on a Linux Primary Server, the following error message is displayed:
The role you specified (Satellite_role_name) is not a valid satellite server role. Valid roles are:
ZoneConfig.ROLE_COLLECTION
ZoneConfig.ROLE_CONTENT
ZoneConfig.ROLE_AUTHENTICATION
Action: Do the following:
  1. Ensure that the non-root has been added to the zmanusers group.

    1. Log in to the ZENworks server as root.

    2. At the server console prompt:

      • If the user already exists on the Linux device, execute the following command:

        groupmod -A non-rootusername zmanusers

      • If the user does not exist on the Linux device, execute the following command:

        useradd -G zmanusers non-rootusername

  2. Add the non-root user to the ZENworks user group by using the usermod -A non-root_username command. Subsequently, the non-root user can configure Satellite roles.

The zac cuo command does not upload the agent audit files from the Satellite Server to the Primary Server when the collectionStatsDB database is corrupted.

Source: ZENworks 11; zac.
Explanation: When the agent audit files are uploaded to the Satellite Server, the server maintains references to the audit files in the collectionStatsDB database. If the database is corrupted, all the references are lost and the files get orphaned. Hence, when you run the zac cuo command to upload the agent audit files to the Primary Server, you will receive an error.
Action: To upload the agent audit files to the Primary Server, you should perform the following steps on the Satellite Server:
  1. Stop the agent service.

  2. Delete the /var/opt/novell/zenworks/work/collection/collectionStatsDB folder that has references to the orphaned audit files.

  3. Start the agent service.

  4. Execute the zac cuo command.

Some zman commands fail with an OutOfMemoryError

Source: ZENworks 11; zman.
Explanation: Some zman commands might fail with an OutOfMemoryError.
Action: Increase the max heap size for zman:

Windows: In the %ZENWORKS_HOME%\conf\zman\properties\zman-config.properties file, increase the max heap size value of the JVM_STARTUP_OPTIONS from 128m to 512m.

Linux: In the /opt/novell/zenworks/bin/zman file, increase the max heap size of MEM_OPTS from 256m to 512m.

The zman command ssd that is used for removing a satellite role fails

Source: ZENworks 11; zman
Explanation: The zman command ssd fails with the following error:

An internal error occurred. Please check the zman log for more

When you use ssd, the zman command for removing a role from the satellite, this command removes the role but fails to send the refresh satellite quicktask.

Possible Cause: This is because the refresh satellite quicktask is already in process for the satellite or about to be processed.
Action: None