Scripted Audits and CMDB Dashboard

Florian Guyot
Tera Expert

Hi

 

Scripted audits (cert_audit of type scripted) results are not taken into account in the CMDB Dashboard. I don't see any reason why they would not based on documentation. Has anyone ever managed to do this? Am I missing something?

 

Regards

Florian

1 ACCEPTED SOLUTION

Florian Guyot
Tera Expert

Got an answer form the ServiceNow Support team:

 

Audit compares actual values of specified fields, against expected values defined in the template and scripted audits. Based on the Last run date of audits, CMDB Health identifies the set of the most recent complete audit run and uses those audit results.

[...]

On the Audit form, update the script in Run this script. Add the following code at the top of the script, just before the code that filters CIs: new SNC.CertificationProcessing().updateLastRunDate(current.sys_id);

View solution in original post

1 REPLY 1

Florian Guyot
Tera Expert

Got an answer form the ServiceNow Support team:

 

Audit compares actual values of specified fields, against expected values defined in the template and scripted audits. Based on the Last run date of audits, CMDB Health identifies the set of the most recent complete audit run and uses those audit results.

[...]

On the Audit form, update the script in Run this script. Add the following code at the top of the script, just before the code that filters CIs: new SNC.CertificationProcessing().updateLastRunDate(current.sys_id);