Setting Up Managed Devices

Before a workstation or server can be managed by ZENworks, it must have the ZENworks Agent installed and be registered in the Management Zone. The following sections provide setup instructions:


Creating a ZENworks Agent ISO Image or CD

The ZENworks Agent is installed using the same program (zlm-install) as the ZENworks Server. You can install from the Novell ZENworks 7 Linux Management CD, or you can create a ZENworks Agent ISO image or CD.

To create a ZENworks Agent ISO image or CD:

  1. At a Linux machine, mount the Novell ZENworks 7 Linux Management CD using the following command:

    mount device mountpoint

    For example:

    mount /dev/cdrom /zlm7

    If you are using an ISO image rather than a physical CD, copy the ISO to a temporary folder on the Linux machine, then mount the image using the following command:

    mount -o loop /tempfolderpath/isoimagename.iso mountpoint

    Replace tempfolderpath with the path to the temporary folder and replace mountpoint with the path to the file system location where you want to mount the image. The path specified by mountpoint must already exist.

    For example:

    mount -o loop /zlm7/ZEN7_LinuxMgmt.iso /zlm7/install

  2. Log in as root, then start the Create Client ISO program from the mountpoint using the following command:

    ./zlm-create-client-iso isoimagename

    replace isoimagename with the path and ISO filename. For example:

    zlm-create-client-iso /zlm7agent/ZENworks7-Agent.iso

    The list of possible distributions is displayed. You can make separate ISOs for each distribution, or you can combine one or more distributions in one ISO.

  3. Enter the number of the distribution you want added to the ISO. If desired, after the distribution is added, repeat this process to add other distributions to the ISO.

  4. Enter 5 to make the ISO image and exit.

  5. (Optional) Burn the ISO image to a CD.


Installing the ZENworks Agent and Registering the Device

The following instructions explain how to manually install the ZENworks Agent. You should follow the instructions on at least one device to become familiar with the installation and registration process. However, before installing the ZENworks Agent on a large number of devices, you should review the following sections:

To manually install the ZENworks Agent and register it in the Management Zone:

  1. Make sure the device meets the requirements. See Managed Device Requirements.

  2. At the Linux device, mount the media you are using for the install: the Novell ZENworks 7 Linux Management CD, the ZENworks Agent CD, or the ISO image.

    To mount a CD, use the following command:

    mount device mountpoint

    For example:

    mount /dev/cdrom /zlm7

    If you are using an ISO image rather than a physical CD, copy the ISO to a temporary folder on the Linux device, then mount the image using the following command:

    mount -o loop /tempfolderpath/isoimagename.iso mountpoint

    Replace tempfolderpath with the path to the temporary folder and replace mountpoint with the path to the file system location you want to mount the image. The path specified by mountpoint must already exist.

    For example:

    mount -o loop /zlm7/ZENworks_Agent.iso /zlm/install

  3. Log in as root, then start the installation program from the mountpoint using the following command:

    ./zlm-install -a

  4. When prompted to install ZENworks, enter Y to continue.

  5. Review the Software License Agreement, pressing Page Down to scroll down the page, then enter Y to accept the agreement.

    Installation of the ZENworks Agent software begins.

  6. After the ZENworks Agent software installation is complete, provide the appropriate responses to the following prompts to register the device:

    • Registration Server Address: Enter the IP address or DNS name of the ZENworks Server that you want to manage this device. This can be the primary server or a secondary server, and should be the server that has best network access to the device.

      If you leave this field blank, the device is not registered. You can register the device at a later time using the rug command line interface:

      /opt/novell/zenworks/bin/rug sa https://ZEN_Server_address

    • (Optional) Registration Server Key: You can leave this field blank. ZENworks has two default registration rules, one for servers and one for workstations. If you leave this field blank, ZENworks uses one of the two default registration rules to register the device. The rules cause the device to be added to either the /Servers folder or the /Workstations folder with the device's hostname used for its device name.

      Before installing the ZENworks Agent on a large number of devices and registering them, you should create registration keys and rules that enable you to place devices in specific folders and groups. Using folders and groups reduces the effort required to manage a large number of devices. Registration keys and rules, as well as folders and groups, are discussed in Administration: A Quick Tutorial.

  7. After installation is complete, confirm that the ZENworks Agent is running by using the following command:

    /etc/init.d/novell-zmd status

  8. Confirm that the device has been added to the ZENworks Object Store by accessing the ZENworks Control Center:

    https://ZENworks_Primary_Server_Address

    Replace ZENworks_Primary_Server_Address with the IP address or DNS name of the primary server.

    After you are in the Control Center, you can click the Devices tab, then click the Servers folder or Workstation folder to view the device.


Automating Installation of the ZENworks Agent

You can automate the installation of the ZENworks Agent. The level of automation depends on what you want to accomplish. You can simply create a response file that enables users to manually run the install without being prompted for information. Or, you can create the response file and add the installation commands to a script so that users aren't even required to run the install.

To automate installation of the ZENworks Agent:

  1. Create the response file. To do so:

    1. At the Linux device, mount the media you are using for the install: the Novell ZENworks 7 Linux Management CD, the ZENworks Agent CD, or the ISO image.

      For mount instructions, see Step 2 under Installing the ZENworks Agent and Registering the Device.

    2. Run the ZENworks Agent installation program on a device using the following command:

      ./zlm-install -a -r path_to_response_file.txt

      Replace response_file.txt with a filename you want. For example:

      ./zlm-install -a -r /zlm7-agent/zenworks-agent.txt

    3. Follow the prompts to install the ZENworks Agent on the device.

      Your answers to the prompts are stored in the response file.

  2. Perform the scripted installation on a device using the following command:

    ./zlm-install -a -s path_to_response_file.txt

  3. If desired, place the above command in a script (for example, a login script).

    Make sure the installation program and files are available to the device. For example, copy the installation files to a network location, mount the CD as a network drive, or copy the files to the device's local drive.