<h2>Decommissioned Devices Showing In Unlicensed Install</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ol style="list-style-position: inside;"><li>Some of the decommissioned devices are showing in unlicensed install.</li><li>Ideally, it is expected behavior that the "Decommissioned Devices" should be removed from the "Software Installs".</li><li>This URL gives the list of "Software Installs" which were present on "Decommissioned" devices. </li></ol> <p style="padding-left: 80px;"><span style="font-family: 'courier new', courier;">https://<Instance_Name>.service-now.com/cmdb_sam_sw_install_list.do?sysparm_query=installed_on.install_status%3D15%5Eproduct_result.product%3D8f109c060b3022002d6c650d37673a1a</span> </p> <p style="padding-left: 80px;"><img style="align: baseline;" title="" src="sys_attachment.do?sys_id=4fced001db40b4d0471f9c41ba96195c" alt="" width="1072" height="291" align="baseline" border="" hspace="" vspace="" /></p></section></div><div ><h3 >Release</h3><section><p style="padding-left: 40px;">All Versions.</p></section></div><div ><h3 >Cause</h3><section><ol style="list-style-position: inside;"><li>There is Business rule <span style="color: #0000ff;">Remove Installs For Retired/Stolen CI</span> on Computer [cmdb_ci_computer] table.</li><li>This removes the records from Software Installation [cmdb_sam_sw_install] table based on the following conditions:</li></ol> <p style="padding-left: 80px;"><span style="font-family: 'courier new', courier;">current.hardware_status == 'retired' ||</span> <span style="font-family: 'courier new', courier;">current.hardware_status == 'stolen' || current.install_status == 7 || current.install_status == 8</span></p> <p style="padding-left: 40px;">3. Here is the URL for the Business Rule: <span style="font-family: 'courier new', courier;">https://<Instance_Name>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=6799623353530300b77dddeeff7b129f</span></p> <p style="padding-left: 40px;">4. In one of the customer instance, there is Sys Choice 'Decommission' added to install_status, which is a custom one. <span style="font-family: 'courier new', courier;">https://<Instance_Name>.service-now.com/sys_choice_list.do?sysparm_query=name%3Dcmdb_ci%5EelementSTARTSWITHinstall_status</span></p> <p style="padding-left: 40px;">5. Because of this custom choice, the business rule did not trigger.</p> <p style="padding-left: 40px;">6. So corresponding software installs are not deleted from Software Installation [cmdb_sam_sw_install] and the decommissioned devices are showing In the "Unlicensed Install" table.</p></section></div><div ><h3 >Resolution</h3><section><ol style="list-style-position: inside;"><li>Navigate to "System Choice" with the help of below link:</li></ol> <p style="padding-left: 80px;"><span style="font-family: 'courier new', courier;">https://<Instance_Name>.service-now.com/sys_choice_list.do?sysparm_query=name%3Dcmdb_ci%5EelementSTARTSWITHinstall_status</span></p> <p style="padding-left: 40px;">2. Check the value of the "Demomissioned" field.</p> <p style="padding-left: 80px;"><img style="align: baseline;" title="" src="sys_attachment.do?sys_id=0bced001db40b4d0471f9c41ba96195a" alt="" width="823" height="206" align="baseline" border="" hspace="" vspace="" /></p> <p style="padding-left: 40px;">3. Change the business rule condition as below so that it will be triggered for "Decommissioned" devices:</p> <p style="padding-left: 80px;"><span style="font-family: 'courier new', courier;">current.hardware_status == 'retired' || current.hardware_status == 'stolen' || current.install_status == 7 || current.install_status == 8 || current.install_status == 15</span></p> <p style="padding-left: 40px;">This is for the CIs whose status would change to "Decommission" the next time.<br />For the existing CIs, you can use the script which is present in the business rule: <span style="color: #0000ff;">Remove Installs For Retired/Stolen CI </span>or contact <a title="Technical Support" href="http://www.servicenow.com/support/contact-support.html" target="_blank" rel="noopener noreferrer nofollow">Technical Support</a> if you need assistance regarding this.</p></section></div></article></div>