Deleting obsolete Windows Computer CI's and HW Assets
We have around 10,000 Windows Computer CI's and equal number of HW Assets that are no longer in AD or SCCM and would like to clean these up and I'm hoping you guys can clear a couple of things up for me...
- Apart from the benefit of having cleaner data, does the total number of HW Assets and Windows CI's in the DB have an affect on performance and loading Views from the console or portal?
- If a deleted windows CI was associated to a work item, would the association and ci still exist in SSRS or Cube reports?
Best Answers
-
joivan_hedrick Cireson Consultant Advanced IT Monkey ✭✭✭Aye, the number of CIs would indeed have an impact on loading speed for views in both the console and the Portal.
In the console, opening any view will load a maximum of 500 objects. It will then let you load all remaining. Depending on the type projection that the view uses, this may take 10-60 seconds to finish loading the objects in a random order. This means that you won't effectively be able to search until all items are finished loading.
The Portal default view behavior will simply load all 10,000 objects, taking the full allotted time to show any items in the view. With an expensive type projection and the right number of CIs, you'll be waiting 60 seconds, followed by the page optionally auto-refreshing every 60 seconds, meaning your data will never load.
Besides views, the speed hit for searching through 10000 objects is moreorless negligible.
DWDataMart, which feeds SSRS and Cube reporting, will store all relationships for Windows CIs and Hardware Assets. Once a relationship is deleted, it will mark that object as deleted and no longer show it in reporting. To see the previous relationship(s), you would most likely have to create a query to view the most recently deleted relationship object for the CIs in question.1 -
Tony_Collett Cireson Support Super IT Monkey ✭✭✭✭✭
Be aware when deleting a large number of config items, this can be a large drain on resources.
We deleted over 30000 objects from our testing environment and it totally killed our environment as it not only deletes the objects, but it also has to go through and delete all the relationships as well. This is no small feat.
We backed out and we eventually got rid of them by deleting 500-1000 every 3 hours.
Ultimately, it would be better to simply mark all the assets as Decommissioned (using Asset Import or Asset Excel) and creating a view that uses a criteria that doesn't show those items.
1
Answers
In the console, opening any view will load a maximum of 500 objects. It will then let you load all remaining. Depending on the type projection that the view uses, this may take 10-60 seconds to finish loading the objects in a random order. This means that you won't effectively be able to search until all items are finished loading.
The Portal default view behavior will simply load all 10,000 objects, taking the full allotted time to show any items in the view. With an expensive type projection and the right number of CIs, you'll be waiting 60 seconds, followed by the page optionally auto-refreshing every 60 seconds, meaning your data will never load.
Besides views, the speed hit for searching through 10000 objects is moreorless negligible.
DWDataMart, which feeds SSRS and Cube reporting, will store all relationships for Windows CIs and Hardware Assets. Once a relationship is deleted, it will mark that object as deleted and no longer show it in reporting. To see the previous relationship(s), you would most likely have to create a query to view the most recently deleted relationship object for the CIs in question.
Be aware when deleting a large number of config items, this can be a large drain on resources.
We deleted over 30000 objects from our testing environment and it totally killed our environment as it not only deletes the objects, but it also has to go through and delete all the relationships as well. This is no small feat.
We backed out and we eventually got rid of them by deleting 500-1000 every 3 hours.
Ultimately, it would be better to simply mark all the assets as Decommissioned (using Asset Import or Asset Excel) and creating a view that uses a criteria that doesn't show those items.
Luckily someone spent a huge amount of effort for a fix but appears his webpage and even account has disappeared.
https://www.concurrency.com/blog/february-2016/recovering-scsm-workflow-server
Luckily I determined it was important to make an offline copy
"The moral of the post is please don’t delete your workflow server from the Windows Server view in Service Manager" ~ Gerald Lott
Management Server:
Plain-old computer:
Hi Guys, yesterday I deleted all Computer CI's on a system that has been running for a while (but not live in production). The idea was to get a fresh import of all active AD objects and remove any stale objects in the process.
I deleted all ~1400 CI's (apart from the Workflow Server). I then waited about 40 minutes after everything disssapeared from the console before initiating a fresh sync of the AD and connector.
After running the AD and SCCM connectors again we saw all the correct objects from Ad reappear. However I noticed when looking at the history of the 'new' CI's that it still showed a few years of history for the object. It also included a lot of remove actions for associatiations to other objects that would have occured when deleting the object.
Do you think this would indicate that I did not wait long enough after deleting all CI's before doing the re-import? It kind of looks like the import may have re-animated the old CI object before it was completely removed from the database?