How to prevent SCCM scan from updating Server CIs

Saravanakumar1
Tera Contributor

Hi,

Currently when I run SCCM discovery it is updating some of the server CIs, I want my SCCM scan to update only the EUC. Could anyone provide your expertise on how to achieve this.

Thanks,
Saravanakumar S

2 REPLIES 2

akash_mehta
ServiceNow Employee
ServiceNow Employee

Saravanakumar:   There are a couple of different ways to achieve this:



1)   In the transform map SCCM 2012 v2 Computer Identity there is a function to determine class - here you can add an ignore statement:



function determineClass() {


      // Determine the class of the target CI


      if (source.u_systemrole == "Workstation")


              target.sys_class_name = "cmdb_ci_computer";


      else


//New Statement


                  ignore = true;


//Orig OOB Statement


//               target.sys_class_name = "cmdb_ci_win_server";


}



2)   The other possibility is to look at the sql query and in the computer identity data source add a where condition for systemrole = "Workstation"



Hope that helps and mark correct if it does.



Thanks,


Akash


vNick
ServiceNow Employee
ServiceNow Employee

Depending on the version of ServiceNow you're running, and also depending on if you're classifying workstations differently than servers (i.e. they're stored in different cmdb_ci tables), you can create reconciliation definitions to only allow updates from specific sources (see link below).



Reconciliation rules