Srinivas Ramanu
ServiceNow Employee
ServiceNow Employee

SAM Managers need to create software model(s) manually which used to make the process of determining compliance on ServiceNow a tad bit inefficient. Hence, we had introduced a feature to automatically create software model in Madrid Release. 

 Software Model management is a core process to leveraging ServiceNow Software Asset Management (SAM). While model creation can become time intensive for software vendors with complex licensing rules, ServiceNow SAM provides an automated workflow to streamline this process. 

 In the Quebec release, we have further enhanced this automated process to optimally create software models in a more efficient and effective manner (also made available in Orlando and Paris releases). This blog provides an introduction of this feature. 

 To take advantage of this feature, SAM Managers or Admin can enable the System Property under Software Asset-> Administration-> Properties and enable – Automatically create software models for all licensable products. They can also enable- – Automatically create software models for all not-licensable products. 

find_real_file.png

Once this property is enabled, automated jobs will search for existing software models for corresponding discovery models, and if an existing software model is not found, the system will automatically create one. This process can save time for SAM Managers and Administrators. 

Let’s use an example to explain this feature in more detail 

Existing Software Installation and Software Model(s) on the environment

An organization has the following existing configuration  

find_real_file.png

If the property is enabled, ServiceNow SAM will perform the following checks 

  1. Check Performed by ServiceNow SAM 

 

  • MS Excel 2016 will be covered by SM1 as there is an exact version and edition match, Result: No new Software Model will be created  
  • MS Word 6.012 will be covered by SM2 as version and edition conditions match, Result: No new Software Model will be created  
  • MS Power point 2016 will be covered by SM3 as version and edition conditions match, Result: No new Software Model will be created  
  • MS Project 2016 Professional install does not match with the existing software model, Result:  ServiceNow SAM will create a new software model automatically 

 

These automated workflows will mark all automatically created software models with created source as “System Property”, making them easily reviewable in the future. SAM Manager can use this field on the Software Model to easily determine which software models were created automatically vs. manually.

Comments
nicknick
Tera Expert
Hi, Thanks for this article. But we I observed for some of the softwares, software model does not get created irrespective of property setting. Any reason for the same? Regards, Nick
Samah Mechael
Tera Contributor

We are having the same issue , the setting for Automatic Creation of SW models is checked , but we still have SW models empty , do you have a solution

 

Parul Chaudhary
Tera Guru

Thank you Srinivas this is great information.  Does ServiceNow recommends this as a best practices for SAMpro?

Thanks,

Parul 

Srinivas Ramanu
ServiceNow Employee
ServiceNow Employee

Hi Parul

 

This is recommended for mature customers who have already implemented ServiceNow SAM and using it for few years. For customers starting out , we would suggest to create software model from PPN directly

dvickers
Tera Contributor

Is the automatic creation of software models only available in SamPro?  Is there a way to do this in the software asset management foundations plug in?  

jnt-cnt
Mega Sage

Hi @nicknick @Samah Mechael 

Hope you are well.

Did you manage to solve the issue?

NeenaPatel
Tera Contributor

Hi @Srinivas Ramanu 

 

Thanks for the article and explaining it in simple terms.

 

So we have had SAM Pro implemented for the past 5 years and only recently switched on the property.

 

We have noticed since it has been enabled the reconciliation job is partially completed. Before it use to be 100% completed.

 

Looking at the system logs we noticed it is linked to the Core Company table.

 

Apologies this is the error from the system logs:

 

[2025-01-30T07:09:34.141Z]: {
"message": "Failure to insert object",
"table": "cmdb_software_product_model",
"lastGlideError": "Operation against file 'cmdb_software_product_model' was aborted by Business Rule 'Product should match publisher^a4ea075f1b9316d49acd9714b24bcb0a'. Business Rule Stack:Product should match publisher",
"changes": {
"manufacturer": "97f5b0d11b0b52509acd9714b24bcb2b",
"product": "92501c2f972652902564f1700153af3a",
"version": "",
"version_operator": "is_anything",
"language": "832bec5493212200caef14f1b47ffb56",
"language_operator": "is_anything",
"platform": "anything",
"platform_operator": "is_anything",
"edition": "",
"edition_operator": "is_anything",
"created_source": "system_property"
}
}
-------- STACK TRACE ---------
at [global] 'GlideQueryEvaluator' [sys_script_include:d52b3c8a08013300fa9b4300d8d67a76]:462 (reportFailure)
at [global] 'GlideQueryEvaluator' [sys_script_include:d52b3c8a08013300fa9b4300d8d67a76]:409 (insert)
at [global] 'GlideQuery' [sys_script_include:864c9ebf73631300bb513198caf6a721]:301 (insert)
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:303
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:405
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:51
at [global] 'Stream' [sys_script_include:9f50ba7773a31300bb513198caf6a791]:375 (forEach)
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:45
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:494
at [global] 'AutomaticSMRCreation' [sys_script_include:fd2b5874675313003b4687cb5685ef3f]:469
at [global] 'ReconciliationEngine' [sys_script_include:6761b0dd0b1232001a17650d37673a77]:898
at [global] 'ReconciliationEngine' [sys_script_include:6761b0dd0b1232001a17650d37673a77]:111
at [global] 'ReconciliationEngine' [sys_script_include:6761b0dd0b1232001a17650d37673a77]:1166
at [global] 'ReconciliationEngine' [sys_script_include:6761b0dd0b1232001a17650d37673a77]:1068
at [global] 'ReconciliationEngine' [sys_script_include:6761b0dd0b1232001a17650d37673a77]:63
at 'SAM - Software License Reconciliation Worker' [sys_trigger:b8e14f131b1fd2d49acd9714b24bcb61]:1

 

Thanks

Neena

 

 

 

mathieucoss
Tera Contributor

Hi,
Can we do automatic software model creation following a discovery if we have SAM foundation plugin (Not SAM pro plugin)

Version history
Last update:
‎10-21-2021 12:47 AM
Updated by: