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 Starting and Stopping the Inventory Service.
Ensure that the Database server is up and running.
Run the Dupremove utility.
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 Understanding the Dupremove Switches.
Edit Inventory_server_installation_directory\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 Understanding the Dupremove Switches.
After editing the file, enter dupremove from the server command prompt.
IMPORTANT: You must enclose the parameters within double quotes, either at the server prompt or in dupremove.ncf/dupremove.bat 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 retires 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 Inventory server, press Ctrl+C.
Start the Inventory service. For more information, see 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:
In ConsoleOne, right-click the workstation object, then click Properties.
Click the ZENworks Inventory tab, then click the Workstation Scan Configuration suboption.
Select Start Full Scan.
Click Apply, then click Close.
Repeat Step 5.a through Step 5.d for all affected workstation objects.
-dbtype is the Inventory database type. It can include any of the following values:
Inventory Database Running On | Dbtype Value |
---|---|
Sybase |
0 |
Oracle |
1 |
MS SQL |
2 |
- sid is the service ID identifying the Inventory database. -sid is required to connect to JDBC. It can include any of the following values:
Inventory Database Running On | Sample SID Values |
---|---|
Sybase |
mgmtdb |
Oracle |
orcl |
MS SQL |
mgmtdb |
-port is the port number on which the Inventory database is running. It can include any of the following values:
Inventory Database Running On | Sample Port Values |
---|---|
Sybase |
2638 |
Oracle |
1521 |
MS SQL |
1433 |
Following are the Dupremove functions that you must use only one at a time in the dupremove.bat or dupremove.ncf:
IMPORTANT: The values for the Dupremove functions are case-sensitive.