Understanding the Service Manager

The Inventory Service Manager loads the inventory components on the server, based on the configuration parameters specified in the server properties file.

This sections contains the following:


List of Services

The Service Manager loads the following services:

Service Name Description

Server Configuration Service

Loads the server configuration services

Inventory Scheduler Service

Loads the Inventory Scheduler

Selector Service

Loads the Selector

Receiver Service

Loads the Receiver

Sender Service

Loads the Sender

Storer Service

Loads the Storer

Inventory Upgrade Service

Runs the upgrade utilities for inventory

NDSLookupForDB Service

Loads the service for NDSLookupForDB tool

DBDelete Service

Loads the service for DBDelete tool

DBBackup Service

Loads the service for DBBackup tool

The AlterDBSpace tool loads the AlterDBSpace Service and the ZEN2 Delete tool uses the zen2remove Service.

Property File: There are property files that load the different services on the server depending on the role of the server. The name of the property file indicates the role of the server. Only the required services are loaded as per the role of the server. The property files should not be modified.

A sample role-based property file for Leaf Server with Database is as follows:

[Server Configuration Service]

type = system

Load Sequence = 0

Load Option = auto

Class Name = com.novell.zenworks.desktop.inventory.servercommon.ServerConfig

Arguments =

[Upgrade Service]type = userLoad Sequence = 1Load Option = autoClass Name = com.novell.zenworks.desktop.inventory.upgradeService.UpgradeServiceArguments = 

[Inventory Scheduler Service]

type = system

Load Sequence = 2

Load Option = auto

Class Name = com.novell.zenworks.desktop.inventory.servercommon.InventorScheduler

Arguments =

[Selector Service]

type = user 

Load Sequence = 3

Load Option = auto

Class Name = com.novell.zenworks.desktop.inventory.selector.SelectorServiceInit

Arguments =

[Storer Service]

type = user

Load Sequence = 4

Load Option = auto

Class Name = com.novell.zenworks.desktop.inventory.storer.StorerServiceInit

Arguments =

[Sender Service]

type = user 

Load Sequence = 5

Load Option = auto

Class Name = com.novell.zenworks.desktop.inventory.senderreceiver.control.SenderServiceInit

Arguments =

[NDSLookupForDB Service]

type = user

Load Sequence = 6

Load Option = manual

Class Name = com.novell.zenworks.desktop.inventory.dbutilities.NDSLookupForDB

Arguments = "WSDELETE.LOK"

[DBDelete Service]

type = user

Load Sequence = 7

Load Option = manual

Class Name = com.novell.zenworks.desktop.inventory.dbutilities.DBDelete

Arguments = "WSDELETE.LOK"

[DBBackup Service]

type = user 

Load Sequence = 8

Load Option = manual

Class Name = com.novell.zenworks.desktop.inventory.dbutilities.DBBackup

Arguments = "Backup"

Do not modify these property files as services or the Service Manager cannot be loaded.

Depending on the role of the server, the server properties files include:

Server Type Server Property File

Root Server

ROOT_DB.PROPERTIES

Root Server with Workstations

ROOT_DB_WKS.PROPERTIES

Intermediate Server

INT.PROPERTIES

Intermediate Server with Workstations

INT_WKS.PROPERTIES

Intermediate Server with Database

INT_DB.PROPERTIES

Intermediate Server with Database and Workstations

INT_DB_WKS.PROPERTIES

Leaf Server

LEAF_WKS.PROPERTIES

Leaf Server with Database

LEAF_DB_WKS.PROPERTIES

Standalone Server

STANDALONE.PROPERTIES

The Inventory Service Manager reads the server properties file (CONFIG.PROPERTIES) and the role-based property file in the \PUBLIC\ZENWORKS\WMINV\PROPERTIES directory, and loads the required services and server components.

The contents of the CONFIG.PROPERTIES file are as follows:

NDSTREE=treename

INVENTORYSERVICEDN=dn_of_the_inventory_service_object

SINGLETONPORT=65433


Services on NetWare Servers

On a NetWare® server, the installation program modifies the ZFDSTART.NCF file located in SYS:\SYSTEM directory to load STARTINV.NCF. The STARTINV.NCF file located in the SYS:\SYSTEM brings up the Inventory Service Manager at server startup time.

On a NetWare server, the installation program adds the STARTINV.NCF entry in the ZFDSTART.NCF file.

The contents of the ZFDSTART.NCF file are as follows:

;ZENWORKS for Desktop 3 Settings

STARTINV.NCF

The contents of the STARTINV.NCF file are as follows:

InvEnv

Naming

java -DConfigFile=sys:\public\zenworks\wminv\properties\Config.properties -nsac -jszenWSInv -neh -mx128m -classpath $tmppath;$classpath com.novell.zenworks.desktop.inventory.servercommon.ZENWorksInventoryServiceManager

You can start, stop, or list the services, if the Inventory Service Manager is already loaded.

To check if the Inventory Service Manager is loaded, at the server prompt, enter java -show.

This will display the following message:

com.novell.zenworks.inventory.servercommon.ZENWorksInventoryServiceManager

To start a service:

  1. At the server prompt, enter StartSer service_name

    service_name refers to any of the listed services. Follow the service naming syntax when you modify the service_name.

    For example, to start the Storer, enter StartSer Storer

To stop a service:

  1. At the server prompt, enter StopSer service_name

    service_name refers to any of the listed services. Follow the service naming syntax when you modify the service_name.

    For example, to start the Storer, enter StopSer Storer

    To stop all services, enter StopSer *

To list a service:

  1. Edit the LISTSER.NCF file located in the SYS:\SYSTEM directory.

  2. Modify the service_name in the following line:

    java -neh - classpath $tmppath;CLASSPATH com.novell.zenworks.desktop.inventory.servercommon.ZENWorksInventoryListService "service_name"

service_name specified in the .NCF file refers to any of the listed services. Follow the service naming syntax when you modify the service_name.

For example, to list Selector Server, the service_name specified in the file should be "Selector Service".

To refer to all services, use the asterisk (*) wildcard character within double quotes "*". This wildcard character can be used with Stop and List services parameters.


Services on Windows NT/2000 Servers

On Windows NT/2000 servers, the installation program creates the Service Manager as a service. During server startup, this Inventory Service Manager is loaded as a service.

You can start, stop, or list the services, if the Inventory Service Manager (ZENworks Inventory Service) is already loaded.

To start a service:

  1. Go to the PUBLIC\ZENWORKS\WMINV\BIN directory.

  2. At the prompt, enter StartSer "service_name".

    where service_name refers to an Inventory service.

To stop a service:

  1. Go to the PUBLIC\ZENWORKS\WMINV\BIN directory.

  2. At the prompt, enter StopSer"service_name".

    where service_name refers to an Inventory service.

To stop all services (ZENworks Inventory Service), use the Windows NT/2000 Services from the desktop menu.

To list a service:

  1. Go to the PUBLIC\ZENWORKS\WMINV\BIN directory.

  2. At the prompt, enter ListSer [-verbose] "service_name".

    where service_name refers to an Inventory service.

Follow the service naming syntax when you modify the service_name.

To refer to all services, use the asterisk (*) wildcard character within double quotes "*". This wildcard character can be used with ListSer parameters.


Inventory Upgrade Service

The Inventory Upgrade Service runs the upgrade utilities for inventory. For example, this service makes the necessary updates in the database tables, and creates database tables. This service triggers full scan on workstations that have more than one MAC Addresses, IP/IPXTM Address, or DNS Name.

This service (Upgrade Service) is auto loaded on NetWare and Windows NT/2000 servers.