Updating Manufacture/Vendor Table

zschneider
Kilo Expert

The core_company table is being updated by Discovery but I can't seem to find what script causes this table to be updated. We'd like to prevent Discovery from adding Vendor/Manufacturers to this table. Does anyone have any suggestions on how to do that?

Thanks!

1 REPLY 1

doug_schulze
ServiceNow Employee
ServiceNow Employee

That is a reference when we process the OS information (in windows) to the company table..

Windows OS info Sensor..




var man = result.Win32_ComputerSystem.Manufacturer;
var mod = result.Win32_ComputerSystem.Model;

var mm = MakeAndModel.fromNames(man, mod);
current.manufacturer = mm.getManufacturerSysID();
current.model_id = mm.getModelNameSysID();



And in the unix identity (Hardware info) 'responds to probe' sensor..




if (JSUtil.notNil(tDataObj.manufacturer) || JSUtil.notNil(tDataObj.model_id)) {
var mm = MakeAndModel.fromNames(tDataObj.manufacturer, tDataObj.model_id);
ci_data.manufacturer = mm.getManufacturerSysID();
ci_data.model_id = mm.getModelNameSysID();



and if you look at a computer record then the dictionary entry for Manufacturer you will see its a reference to the core_company field...

So if you really.. really dont want to do this you would want to create another attribute on the computer record that is just a text value or reference to another u_discovery_core_company table ... But really think if that is a best course for you to take...

But that's how we are-a-doing it...Enjoy