The desktop4.exe application that ships with ZENworks 7 Desktop Management allows you to view the Workstation Inventory and query the Inventory database without using ConsoleOne.
You can install desktop4.exe using either of the following methods:
Install the ZENworks 7 Desktop Management Workstation Inventory ConsoleOne snap-ins. This automatically installs desktop4.exe. Desktop4.exe is located in the Consoleone_installation_directory\consoleone_version\bin directory.
From the desktop directory in the ZENworks 7 Companion 2 CD, extract desktop.zip to a temporary directory on your machine. Copy the contents of the temporary_directory\desktop directory to Consoleone_installation_directory.
Before you run desktop4.exe, you must perform the following tasks:
Identify your Inventory database.
Depending upon the Inventory database that you have configured for, you must edit the following .ini files: sybase.ini, oracle.ini, or mssql.ini. These files are located in the consoleone_installation_directory\bin directory.
Specify the following details in the .ini file:
IP Address: IP address of the server on which the Inventory database is running.
User Name: Database user ID having Read permissions on the database.
Password: Database password for the above user.
Scope: The scope for querying the Inventory database. If you have installed ZENworks 7 Desktop Management, specify ZFD. If you have installed ZENworks 7 Server Management, specify ZFS. If you have installed ZENworks 7 Desktop Management and ZENworks 7 Server Management in the same setup, specify BOTH.
Database Administrator Username: Specify the database administrator username in the DBAUSERNAME parameter.
Database Administrator Password: Specify the database administrator password in the DBAPASSWORD parameter.
A sample sybase.ini file is as follows:
# Novell Inc.
IPADDRESS=164.99.149.247
USERNAME=MW_READER
PASSWORD=novell
# ZFD / ZFS / BOTH
SCOPE=Both
DBAUSERNAME=MW_DBA
DBAPASSWORD=novell
A sample oracle.ini file is as follows:
# Novell Inc.
IPADDRESS=164.99.149.247
USERNAME=MWO_READER
PASSWORD=novell
# ZFD / ZFS / BOTH
SCOPE=ZFD
ORACLE_SID=orcl
DBAUSERNAME=MW_DBA
DBAPASSWORD=novell
A sample mssql.ini file is as follows:
# Novell Inc.
IPADDRESS=164.99.149.247
USERNAME=MW_READER
PASSWORD=novell
# ZFD / ZFS / BOTH
SCOPE=ZFS
ORACLE_SID=orcl
DBAUSERNAME=MW_DBA
DBAPASSWORD=novell
You can run desktop4.exe from the MS-DOS prompt or by using a .bat file. You must specify valid values for the following parameters:
-w: Typeful and fully qualified distinguished name (DN) of the inventoried workstation
-n: eDirectory tree name to which the inventoried workstation is registered.
-c: Inventory operation to be performed on the inventoried workstation. To perform a query, enter -c"Query" to launch the Inventory Query application in which you can specify the query you want to perform. To perform an inventory summary, enter -c"Inventory".
-d: Type of the Inventory database server: Sybase, Oracle, or MSSQL.
For example, to perform a query using desktop4.exe, use either of the following methods:
At the MS-DOS prompt, enter the following command:
Desktop4 -w"CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell" -n"MANTECHR5C-TREE" -c"Query" -D"Sybase"
where Desktop4 is the name of the application; “CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell” is the DN of the inventoried workstation; “MANTECHR5C-TREE” is the eDirectory tree name; “Query” is the Inventory operation to be performed on the inventoried workstation; and “Sybase” is the Inventory database.
Use a .bat file:
Create a .bat file with the following contents in the same directory as desktop4.exe:
Desktop4 -w"CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell" -n"MANTECHR5C-TREE" -c"Query" -D"Sybase"
where Desktop4 is the name of the application; “CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell” is the DN of the inventoried workstation; “MANTECHR5C-TREE” is the eDirectory tree name; “Query” is the Inventory operation to be performed on the inventoried workstation; and “Sybase” is the Inventory database.
Run the .bat file.
You can perform an inventory summary using either of the following methods:
At the MS-DOS prompt, enter the following command:
Desktop4 -w"CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell" -n"INDYPROM-TREE" -c"Inventory" -D"Oracle"
where Desktop4 is the name of the application; “CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell” is the DN of the inventoried workstation; “INDYPROM-TREE” is the eDirectory tree name; “Inventory” is the Inventory operation to be performed on the inventoried workstation; and “Oracle” is the Inventory database.
Use a .bat file:
Create a .bat file with the following contents in the same directory as desktop4.exe:
Desktop4 -w"CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell" -n"INDYPROM-TREE" -c"Inventory" -D"Oracle"
where Desktop4 is the name of the application; “CN=WINXP-R1B164_99_151_48.OU=WsProm.O=novell” is the DN of the inventoried workstation; “INDYPROM-TREE” is the tree name; “Inventory” is the Inventory operation to be performed on the inventoried workstation; and “Oracle” is the Inventory database.
Run the .bat file.
For more information on how to query an Inventory database, see Section 77.1.3, Viewing Inventory Information by Querying the Database. For more information on inventory information displayed by the Workstation Inventory, see Section 77.1.2, Viewing the Inventory Summary of an Inventoried Workstation.
Desktop4.exe is a back-end utility that can be leveraged by developing user-friendly interface to launch desktop4.exe.
Using desktop4.exe, you can also initiate Remote Management operations. For more information, see Section 69.8, Starting Remote Management Operations Without Using ConsoleOne.