Novell Home

Collecting Inventory Info from ZENworks Linux Management Server

Novell Cool Solutions: Feature
By Santoshkumar Patil

Digg This - Slashdot This

Posted: 26 Oct 2005
 

This article makes an effort to integrate all the basic information needed for rolling up the inventory data from ZENworks Linux Management to ZENworks 7 servers running on heterogeneous platforms, viz Window, NetWare and Linux, into one place. So this article may help those who are not familiar with all those platforms and also those who are new to ZENworks inventory.

Inventory Overview

The Server Inventory component of Novell ZENworks 7 Linux Management allows you to collect hardware information from the local and remote servers or workstations of your enterprise. This inventory information is scanned and stored in a database that can be accessed by the ZENworks administrator.

You can roll up the hardware inventory data from the database to the ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory database and view the inventory data at the enterprise level.

Understanding ZENworks Linux Management Inventory Servers

ZENworks 7 Linux Management basically consists of a two types of servers: the Primary Server and Secondary Servers. The primary server is the first server installed and contains the ZENworks services, ZENworks Object Store, and software packages.

The following illustration depicts a typical Inventory management. Each ZENworks Management Zone has one ZENworks Primary Server to manage the Linux workstations and servers. ZENworks Management Zone may have one or more Secondary Servers and a central inventory database, attached locally or remotely, to the Primary Server.

ZENworks Management Zone

To manage devices in different locations, administrators may need to have the Secondary Servers. If managed workstations/servers are located in different locations, then it is a good idea for administrators to install one Secondary Server per geographical location and ultimately register all Secondary Servers to the Primary Server. So, each Secondary Server will collect the inventory information of managed devices in its location and finally store it into the central database (Postgres/Oracle) via the Primary server as shown in the above figure.

You can roll up the inventory stored in the ZENworks Linux Management inventory database to the ZENworks Server Management or ZENworks Desktop Management database by configuring the IP address of the destination inventory servers in the ZENworks Control Center.

Rolling Up Hardware Inventory to the ZENworks 7 Servers

In the following section we will discus the step-by-step procedures to roll up the hardware information to the ZENworks 7 Server Management and ZENworks 7 Desktop Management servers.

How to Roll Up Hardware Inventory to the ZENworks 7 Server Management and ZENworks 7 Desktop Management servers running on Windows/NetWare Servers

Ensure that the following prerequisites are met:

  • ZENworks 7 Linux Management has been successfully installed on SLES9 SP1 server.
  • Install the agent on Linux workstations/servers and register them to the ZENworks 7 Linux Management server.
  • Ensure the hardware inventory data has been stored in the ZENworks 7 Linux Management database.
  • The ZEN Loader service is up and running on the ZENworks 7 Linux Management server.
  • The Inventory server and Inventory database components of ZENworks 7 Server Management or ZENworks 7 Desktop Management have been successfully installed and set up.
  • The Inventory service is up and running on the ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory server.
  • Configure the IP address/DNS name of the destination inventory server and schedule the time in ZENworks Control Center.

After completing the above steps, the zenloader service running on the ZENworks 7 Linux Management server will send .str files in zip format to the receiver of the inventory server. Once the .zip file reaches successfully to the inventory server, it first stores the zip files in the following path:

\zenworks\Inv\ScanDir\EntPushDir\ZipDir

The .zip file unpacks and stores .str files into the database, and users can access the stored inventory data through the interface called ConsoleOne. How to work with Consoleone will be explained later.

Note:

If .str files do not successfully reach the above path, check the following:

  • Either Destination server IP/DNS name may be set wrong in the ZENworks Control Center. Verify you have provided the proper IP/DNS name of the destination inventory server.
  • Receiver may not be running on the destination inventory server. To verify this you need to:
    1. If your ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory server is running on Windows machine,
      then go to the path \zenworks\Inv\Server\WmInv\bin on command prompt and execute:
      To verify receiver is running or not : >listser "*"
      To start receiver, if receiver is not running : >startser receiver
      To stop receiver, if you want to stop receiver service : >stopser receiver

      Also make sure the following services are running:
      1. Novell Inventory Service
      2. Novell ZENworks Service Manager
    2. If your destination inventory server is running on NetWare machine:
      Then execute the following commands on NetWare prompt:
      To verify receiver service is running or not : >listser *
      To start the receiver, if receiver service is not running : >startser receiver
      To stop the receiver, if you want to stop receiver service : >stopser receiver

      If one of the above said problem is present then you will receive the following event log in ZENworks Control Center: "Unable to get zeninvRollup Time from the destination inventory server."

    How to Roll Up Hardware Inventory to the ZENworks 7 Server/Desktop Management running on Linux server

    Hardware Inventory stored in ZENworks 7 Linux Management database can be easily Rolled to the Linux inventory server. Following are the steps to roll up and manage the inventory server.

    Ensure that the following prerequisites are met:

    • ZENworks 7 Linux Management has been successfully installed on SLES9 SP1 server.
    • Install the agent(zmd) on Linux workstations/servers and register them to the ZENworks 7 Linux Management server.
    • Ensure the hardware inventory data has been stored in the ZENworks 7 Linux Management database.
    • The ZEN Loader service is up and running on the ZENworks 7 Linux Management server.
    • The Inventory server and Inventory database components of ZENworks 7 Server/ Desktop Management on Linux has been successfully installed and set up.
    • The Inventory service is up and running on the ZENworks 7 Server/Desktop Management on Linux server.
    • Configure the IP address/DNS name of the destination inventory server and schedule the time in ZENworks Control Center.

    After completing the above said steps, zenloader service running on ZENworks Linux Management server, will send .str files in zip format to the receiver of Inventory Linux server. Once the .zip file reached successfully to the destination server, it first stores the zip files in the following path:

    /opt/novell/zenworks/inv/ScanDir/EntPushDir/ZipDir

    With the .zip file extracted and stored .str files in the database, users can access the stored inventory data through the interface called ConsoleOne.

    Note:

    If .str files do not successfully reach the above path, this might be due to the following two problems:

    1. Destination server IP/DNS name may be set wrong in ZCC. Make sure whether you have given proper IP/DNS name of Shade server.
    2. Receiver may not be running on the Cobalt server.
      To verify this you need to do:
      Go to the path /opt/novell/bin on command prompt and execute:
      To display the status of all services : >sh Listser
      To start receiver, if receiver is not running : >sh StartSer 'Receiver Service'
      To stop the receiver service : >sh StopSer 'Receiver Service'

      Also make sure whether the following services are running:
      1. >/etc/init.d/novell-zfs status
      2. >/etc/init.d/novell-zdm-inv status
      3. >/etc/init.d/novell-zdm-sybase status
      If any of the above services are not running, then start the services.
      If one of the above problems is present then you will receive the following event log in ZCC:"Unable to get zeninvRollup Time from the destination inventory server."

    Configuring the Inventory Roll-Up Policy

    The configuration of the Inventory roll up settings can be configured in the ZENworks Control Center. The following documentation link provides the complete information:

    Configuring the Inventory Roll-Up Policy

    Understanding the Components Involved in the Inventory Roll-Up

    The Sender on the Inventory servers transfers the scan files from the ZENworks 7 Linux Management Inventory server to the ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory server. The following links provide more information:

    Understanding the Sender

    Understanding the Compressed Scan Data File

    Viewing the Inventory Roll up Data Stored in the ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory Database

    You can view the inventory data stored in the ZENworks 7 Server Management or ZENworks 7 Desktop Management Inventory database using the common interface called ConsoleOne.

    Viewing Inventory Information by Querying the Database

    Using ConsoleOne, you can query the Inventory database to display the hardware components of inventoried servers/workstations that you want to view. The Inventory Query window displays the information satisfying the criteria you specify.

    To query the Inventory database for inventory information:

    1. In ConsoleOne, select a container.
    2. Invoke the query.
      • To invoke the Inventory query from a database object: Right-click the database object ->click ZENworks Inventory ->click Inventory Query.
      • To invoke the Inventory query from the ConsoleOne Tools menu, you must first configure the Inventory database and then click Tools -> ZENworks Inventory -> Inventory Query.
    3. Specify the criteria for the query as shown in the below figure.

    Generating Inventory Reports

    Report is one of the most popular features in the ZEN Suite. This is used to generate consolidated reports of stored inventory on certain requirements, and generates an easily readable and understandable report.

    1. Invoke the Inventory report using any of the following methods:
      • To invoke the Inventory report from a database object, right-click the database object > click Reporting.
      • To invoke the Inventory report from the ConsoleOne Tools menu, you must first configure the database (click Tools > ZENworks Inventory > Configure DB) and then click Tools > ZENworks Reports.
    2. Click the report you want to generate.

    3. Following is the sample report for CD-ROM information.

    Inventory Report

    Useful Tips

    Following are the some useful tips to successful roll up the inventory information to destination server.

    1. You can verify the status of the services involved in the Inventory Roll up by using the following commands:

      1. To check the status of zenloader service : /etc/init.d/novell-zenloader status
      2. To start the zenloader service : /etc/init.d/novell-zenloader starts
      3. To stop the zenloader service : /etc/init.d/novell-zenloader stop
      4. To restart the zenloader service : /etc/init.d/novell-zenloader restart
      Similarly you can verify the status of novell-zenserver. If your server is running with Postgres database then you may need to verify whether your Postgres server is running or not. To verify this you need to execute the command: etc/init.d/postgresql status.
    2. To check whether the agent is running on workstation/servers, use the following command: /etc/init.d/novell-zmd status. Similarly, you can start, stop, restart the agent.
    3. After the agent starts running on workstations/servers, the initial delay of sending the hardware information to the inventory database is 900 seconds, which is a default setting. You can verify and change the default settings by using the following commands:
      1. To check the initial delay : > /opt/novell/zenworks/bin/rug get delay
      2. To set the initial delay : > /opt/novell/zenworks/bin/rug set delay <no. of secs>
    4. If you want to see all the log messages pertaining to Inventory and Inventory Roll up, which can be found in the file "loader-messages.log". The complete path is:
          /var/opt/novell/log/zenworks/loader-messages.log
      Also you can check the same event logs in Poseidon: Devices->Servers->Zenworks Primary Servers.
    5. If the error message is "Unable to create the str file" then check for Hardware information present in the Postgres or Oracle database. Check for some mandatory attributes like Mac address, Operating system name, etc.
    6. Check for the receiver service running on the destination inventory server.

    When you roll up the inventory stuff to ZENworks Desktop Management server, by default you can see only workstation inventory information in the corresponding ConsoleOne. In order to display the server inventory also, you need to change the default setting in the Query.properties file. You can find this file in the following path:

    \ConsoleOne\1.2\bin

    Following is the change you need to do in Query.properties file

            Before changing the file: insver=zfd
    rmver=zfd
            After changing the file: insver=both
    rmver=both
    You can follow the same steps if your destination server is ZENworks Server Management.


    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

  • © 2014 Novell