Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Install count for software models

gvk
Tera Contributor

Hi Experts,

 

I am checking the field "Install count" in Software Models table, when this field will be updated?

 

which script will update this field and how frequent it will be? I see a discrepancy with count when I report on cmdb_sam_sw_install table for the same software.

5 REPLIES 5

Sumanth16
Kilo Patron

Hi,

The install_count field is updated by a script which is kicked off by an OOB scheduled job "Count Software Licenses" which runs daily. This job can be scheduled in such a way that it runs after the scheduled discoveries for that day, so that the "install_count" field value is closest to the number records on 'Installed On' related list.

please refer to below KB Article:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694690


Thanks& Regards,
Sumanth Meda

gvk
Tera Contributor

Thank you, I ran the same script from background and looks like there is no affect and the installation count is not getting re-calculated.

AshishKM
Kilo Patron
Kilo Patron

Hi @gvk , 

You can check the scheduled job "Count Software Licenses" and navigate to script include "SoftwareLicenseManager" for calculation logic.

 

AshishKMishra_0-1707766764803.png

AshishKMishra_1-1707766835482.png

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

gvk
Tera Contributor

Thank you, I ran the same script from background and looks like there is no affect and the installation count is not getting re-calculated.