You can now remove the duplicate workstation objects from the Inventory database by using the Dupremove utility.
Duplicate workstation objects are workstations that have multiple entries in the Inventory database. If the Inventory database has duplicate workstation objects, it not only results in wasted database space but also reporting of duplicate information by the Inventory ConsoleOne utilities such as Query, Summary, Inventory Reports, and Data Exports.
The following sections provide more information on how to use the Dupremove utility:
Stop the Inventory service. For more information, see Section 73.1.5, Starting and Stopping the Inventory Service.
Make sure that the Database server is up and running.
Run the Dupremove utility.
On a NetWare Inventory server:
Edit sys:\system\dupremove.ncf to configure the required parameters. Refer to dupremove.ncf for information about configuring the parameters. For detailed information about the parameters, see Section 76.8.2, Understanding the Dupremove Switches.
After editing the file, go to sys:\system and enter dupremove from the Inventory server system console prompt.
On a Windows Inventory server:
Edit Inventory_server_installation_directory\zenworks\inv\server\wminv\bin\dupremove.bat to configure the required parameters. Refer to dupremove.bat for information about configuring the parameters. For detailed information about the parameters, see Section 76.8.2, Understanding the Dupremove Switches.
After editing the file, go to Inventory_server_installation_directory\zenworks\inv\server\wminv\bin and enter dupremove from the Inventory server command prompt.
On a Linux Inventory server:
Edit /opt/novell/bin/dupremove to configure the required parameters. Refer to dupremove for information about configuring the parameters. For detailed information about the parameters, see Section 76.8.2, Understanding the Dupremove Switches.
After editing the file, go to /opt/novell/bin and enter ./dupremove from the Inventory server command prompt.
IMPORTANT:You must enclose the parameters within double quotes in dupremove.ncf, dupremove.bat or dupremove files, and there should be no spaces within double quotes. For example, “-dbtype=1”.
If you specify wrong parameters, or spaces within double quotes, the Dupremove utility retries endlessly.
To stop this process on a NetWare Inventory server, you must first procure the process ID of the Dupremove utility by entering java -show at the server prompt, and then enter java -killDupremove_process_ID.
To stop the process on a Windows or Linux Inventory server, press Ctrl+C.
Start the Inventory service. For more information, see Section 73.1.5, Starting and Stopping the Inventory Service.
Enforce a full scan either on all affected workstation objects or on all workstation objects that send the inventory data to this Inventory server:
To enforce a full scan on all workstation objects that send the inventory data to this Inventory server, enforce a full scan on the Inventory Service object. For more information, see Section 73.3, Configuring the Inventory Service Object.
To enforce a full scan on an affected workstation object:
Specify the IP address of the server on which the Inventory database is running.
The Inventory database type. It can include any of the following values:
Table 76-2 List of Dbtype values
Inventory Database Running On |
Dbtype Value |
---|---|
Sybase |
0 |
Oracle |
1 |
MS SQL |
2 |
The service ID identifying the Inventory database. -sid is required to connect to JDBC. It can include any of the following values:
Table 76-3 Sample sid values
Inventory Database Running On |
Sample SID Values |
---|---|
Sybase |
mgmtdb |
Oracle |
orcl |
MS SQL |
mgmtdb |
The port number on which the Inventory database is running. It can include any of the following values:
Table 76-4 Sample port values
Inventory Database Running On |
Sample Port Values |
---|---|
Sybase |
2638 |
Oracle |
1521 |
MS SQL |
1433 |
You must use the following Dupremove functions only one at a time in the dupremove.bat, dupremove.ncf, or dupremove:
IMPORTANT:The values for the Dupremove functions are case-sensitive.
Table 76-5 Detail explanation and examples of the Dupremove functions
Dupremove Switch |
Description |
Possible Values / Pattern Types |
Examples |
---|---|---|---|
-listwsdup |
Lists all workstations that have duplicate entries in the Inventory database. |
--- |
To list all the workstation objects that have duplicate entries in the Sybase Inventory database, edit the Java command in dupremove.bat, dupremove.ncf, or dupremove as follows: java -Djava.compiler= com.novell.zenworks.desktop.inventory.storer.DatabaseOperator "-host=127.0.0.1" "-listwsdup" "-dbtype=0" "-sid=mgmtdb" "-port=2638" |
-listwsdirty |
Lists all workstations whose scan data has not been updated in the Inventory database and that need a full scan. |
-- |
To list all the workstation objects that have duplicate entries in the Oracle Inventory database, edit the Java command in dupremove.bat, dupremove.ncf, or dupremove as follows: java -Djava.compiler= com.novell.zenworks.desktop.inventory.storer.DatabaseOperator "-host=127.0.0.1" "-listwsdirty" "-dbtype=1" "-sid=orcl" "-port=1521" |
-listwspattern |
Lists workstation objects on the basis of the pattern you define. |
IMPORTANT:You must enter the typed DN of the workstation. |
|
-remwsdup |
Removes workstation objects from the Inventory database. |
|
|
-remwspattern |
Removes workstation objects on the basis of the pattern you define. |
IMPORTANT:You must enter the typed DN of the workstation. |
|
-remwsfile |
Removes the workstation objects whose names are listed in a file. |
Complete path of the file including the filename |
The contents of c:\windows\wsname.txt are as follows: CN=a.OU=b.O=c.T=Novell_inc CN=ws.OU=novell.T=novell_inc WS1.novell.novell_inc WS2.novell.novell_inc |
Provide the user name only if you have not logged into the Inventory database as the default user (mw_dba).
Provide the password for the user specified in the “-user” switch.