Environment
Novell ZENworks 7 Handheld Management - ZHM 7 Service Pack 1
Microsoft Access 2000
Situation
After deleting handheld devices from ConsoleOne, those devices are still listed in device reports.
Resolution
The following steps will remove duplicate and unused devices from the database:
On the ZHM Server installation machine:
- Stop ConsoleOne and also any remote ConsoleOne which may access the database.
- Stop ZHM Services (Server, Proxy, Access Point) on the ZHM Server installation machine.
- Take a backup of the database: ServerData.mdb, ProxyData.mdb.
- Open the ServerData.mdb database (in the ZHM Server installation folder).
- Open the Handhelds table.
- Identify the non-active duplicate handheld records such as DeviceGuid, SerialNumber, Username, DisplayName, LastSyncTime, etc.
- Start ZHM Services (Server, Proxy, Access Point) on the ZHM Server installation machine. Start ConsoleOne. Delete eDirectory duplicate handheld objects (delete the Non-active objects).
Run: "Scan Now" from the properties page of the ZHM Server Service Object or by double-clicking the ZHM Server Service Object which opens the properties page of ZHM Server Service Object.
Wait for 15-20 minutes (depending upon the number of objects in eDirectory, it may vary) - Delete the Identified Non-active duplicate handheld records from the Handheld's table, identified in step 6 above.
- Then run dbtool.exe using the /compact option.
To compact the server database, from the ZHM Server installation directory (eg: C:\Program Files\Novell\ZHM) run:
dbtool /server /compact
(it is also possible to run: "dbtool" or "dbtool /server" or "dbtool server" or "dbtool /compact" or "dbtool compact") - From the ZHM Access Point installation directory (eg: C:\Program Files\Novell\ZHMAP) run:
dbtool /proxy /compact
to compact the Access Point database. - run dbtool.exe using the /verify option. You can run
dbtool /server /verify
from the ZHM Server installation directory and
dbtool /proxy /verify
from the ZHM Access Point installation directory.
Server installation machine.
This is to verify the integrity of the data All the information above is for Server DB correction:
For Proxy database correction the steps are provided below
If more than one Access Point is installed, stop the "ZENworks Handheld Management Proxy" Service, "ZENworks Handheld Management Access Point" Service from the service control panel for the other Access Points and perform the following steps for the other Access Points. (By default perform the steps below for a Proxy database correction on ZHM Server installation machine which also installs the Access Point by default)
- Take a backup of ProxyData.mdb. (default folder) "C:\Program Files\Novell\ZHMAP")
- Open the "Client Handhelds" table.
- Identify the Non-active duplicate handheld records such as DeviceGuid, SerialNumber, Username, DisplayName, LastSyncTime etc.
- Delete the Identified Non-active duplicate handheld records from the "Client Handhelds" table.
Note all these timings are on the higher side for a rough estimate. - Stop ConsoleOne and any remote ConsoleOne which may access the database.
- Stop ZHM Services (Server, Proxy, Access Point) on the ZHM Server installation machine.
- Then run dbtool.exe using the "/compact" option.
To compact the Server database, from the ZHM Server installation directory (eg C:\Program Files\Novell\ZHM : is the default installation directory) run:
dbtool /server /compact
(it is also possible to run: "dbtool" OR "dbtool /server" OR "dbtool /server" OR "dbtool /compact" OR "dbtool compact")
From the ZHM Access Point installation directory (eg C:\Program Files\Novell\ZHMAP : is the default installation directory) run:
dbtool /proxy /compact
to compact the Access Point database.
The steps above are to be followed on the ZHM Server installation machine. - run dbtool.exe using the /verify option. You can run:
dbtool /server /verify
from the ZHM Server installation directory) and
dbtool /proxy /verify
from the ZHM Access Point installation directory
This is to verify the integrity of the data - Start ZHM Services (Server, Proxy, Access Point) on the ZHM Server installation machine.
- Start ConsoleOne , run "Scan Now" from the properties page of the ZHM Server Service Object (or by double-clicking FHA Server Service Object which opens the properties page of the ZHM Server Service Object).
Verify that the duplicates are not shown.
Additional Information
Not sure if this happens with other databases, only seen in Access 2000
Deleting devices from eDirectory does not remove them from the database.