Here is a basic guideline on how to clean up an LDMS database. If you have questions about any part of this process, please contact support.
*******ALWAYS TAKE A FRESH BACKUP BEFORE GOING THROUGH ANY OF THESE STEPS. ESPECIALLY WHEN CLEANING UP ATTRIBUTES FROM THE DATABASE***********
1) Run the script listed in this document: How to Clean The EPM Database using a SQL script This could take quite awhile to complete if you have not run this script before.
2) Run the following query: (This will clean up the unknown items section)
Truncate table metablocked
********** MAKE SURE YOU HAVE A BACKUP BEFORE CONTINUING *****************
3) Run this query to update entries that have an null device ID: (Null device IDs will cause the service to crash if we try to update the record)
Update Computer
Set DeviceID='Unassigned'
where DeviceID is null
4) Clean up metadata with DB Repair tool : Database Repair Utility (DBRepair.exe download)
- It's crucial to watch for components that should be listed as attributes.
- In the first screen shot above you can see that there are quite a few attributes being listed that should be lists or things that normally would be a group: Groups, Software, Storage cards, Bios, warranties, OS, Scheduled task, Fujitsu all need to be cleaned out.
- In second screen shot we can see that the software section was being listed in modeled data since we know that this is a normal category that is in the database by default, we should be removing anything from unmodeled data that already has a category
- The second screen shot also shows what we should be looking for in database doctor, we can clearly see that it is listing add or remove programs as an attribute when it is an category.
- In the third screen shot we can see quite a few categories that exist in the inventory record by default, we would also want to clean these out 98% of the time, First expand each category to make sure they do not contain an custom value you have created. Example: Bios, Environment, LDApgroups, LDAP, Software, Memory, Network, Network Adapters, Landesk Management and Environment are all instances of Categories that are in the Database by default.
If you are working in the DBRepair tool. Then most categories can be deleted except for custom data. It is still important to keep in mind that some of these entries can also be custom data entries that were modeled wrong.
To double check these entries. You can Go to Tools > reporting > Managed Software list and check the custom entries to see if they match some of the attributes that are showing up here. You will also want to check model attributes for any entries that you might remember adding via a data analytics rule.