Uninstall and Reinstall SCCM Service Graph Connector Issues

Donna Olsen
Tera Expert

Hello, 

SCCM SG was installed in our environment back in 2019 by individuals who no longer work at the organization. There was configuration done and we simply want to uninstall and start fresh.  I have attempted to uninstall and reinstall, but the old historical configurations are still there.  Is there another area in which I need to look at when attempting to clean the environment with anything SCCM SG related.

 

For example, when I uninstall and reinstall, and navigate to the guided setup, all the previous information from past install is still there.  I would really like to clean up the technical debt and start absolutely with a clean fresh slate, is that possible?

1 REPLY 1

pratiksha5
Mega Sage

Hi Donna,

 

I have recently done this. The CMDB was previously loaded and not maintained. 

Things to do : 

1)start from the dev environment. 

2)Enable CMDB health jobs. It will give you the count of the total number of stale CI. Check with the infra team if those CIs are relevant or not. 

3)Run background script with the same stale condition like (Discovery source = ServiceNow not been updated in last 6 months) Clear or the irrelevant data. (do this per class basis based on the health dashbord) 

4)And then do the fresh load with integration. 

Sample script 

 

var rec = new GlideRecord('cmdb_ci_network_adapter');

rec.addEncodedQuery('nameSTARTSWITHAsyncMac^ORnameSTARTSWITHBthPan^ORnameSTARTSWITHvpnva^ORnameSTARTSWITHvwifimp');

rec.query();

while (rec.next()) {

//rec.deleteRecord();

rec.deleteMultiple();

}
Change the encoded query based on your need. 
 
Best of luck