Software uninstall in SAM

shank1
Tera Expert

Hi,

In SAM professional, when a software gets uninstalled on a machine, how it works with regards 'Software installation' table and reconciliation.

Thanks

shanks

1 ACCEPTED SOLUTION

Hi,

 

In that scenario you need to setup something like a Schedule job or some rule based on your Integrations to remove those software from Software Installation table and Reconciliation running next time would pick it up from there.

 

We had the same issue while doing an in house Integration with Puppet tool and we wrote our own script to remove the software installation record based on some criteria.

 

There is no other way rather than building your own removal script and make sure if your Integration or Discovered data(Table in which data is coming from some other tool is in different scope than Global) table is in some other scope than removal from Software Installation table won't happen as "Delete" access on Software Installation table   is not there OOB.

 

In that case you need to go to the Table View of Software Installation table and mark the checkbox "Can Delete" as True as shown below. We faced this issue while doing one of the integrations related to SAM.

 

find_real_file.png

 

The above image is just an example of one of the table.Seacrh for you SAM Table and mark the Can Dleete Checkbox as true.

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

5 REPLIES 5

Brian Collins1
ServiceNow Employee
ServiceNow Employee

As part of your SCCM integration, it will remove any uninstalled software from your CMDB.   If you look at your SCCM Integration, it is the data source called "SCCM 2012 v2 Removed Software" or "SCCM 2012 v2 Removed Software (AI)" if you have Asset Intellagace turn on.

 

Once the SW Install is removed from your SW install table in the CMDB and the next time Reconciliation runs the Allocations available will be updated automatically. 

 

Link to the Data SCCM Data sources doc:  https://docs.servicenow.com/bundle/newyork-platform-administration/page/integrate/cmdb/reference/how...

 

Hope this helps.

Hi Brian,

1. How about the case when not using SCCM. Should we have a custom solution

2. How about the case when the software is uninstalled on a server (as sccm wont come into picture)

Hi,

 

In that scenario you need to setup something like a Schedule job or some rule based on your Integrations to remove those software from Software Installation table and Reconciliation running next time would pick it up from there.

 

We had the same issue while doing an in house Integration with Puppet tool and we wrote our own script to remove the software installation record based on some criteria.

 

There is no other way rather than building your own removal script and make sure if your Integration or Discovered data(Table in which data is coming from some other tool is in different scope than Global) table is in some other scope than removal from Software Installation table won't happen as "Delete" access on Software Installation table   is not there OOB.

 

In that case you need to go to the Table View of Software Installation table and mark the checkbox "Can Delete" as True as shown below. We faced this issue while doing one of the integrations related to SAM.

 

find_real_file.png

 

The above image is just an example of one of the table.Seacrh for you SAM Table and mark the Can Dleete Checkbox as true.

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Got it, thanks!