Name
global.DiscoveryClearAllSoftwareManufacturers
Description
This will remove all software manufacturer relations from the cmdb_ci_spkg table
Script
function DiscoveryClearAllSoftwareManufacturers() {
var gr = new GlideRecord("cmdb_ci_spkg");
gr.addNotNullQuery("manufacturer");
gr.query();
while (gr.next()) {
gr.setValue("manufacturer", "");
gr.update();
}
}
Sys ID
5b82623237151000dadacffbcfbe5d4d