How model id is getting Populated through discovery for different classes?

Riya25
Giga Contributor

Hello Experts,

Can anyone please explain me the entire process how discovery is populating model id through probes and through Patterns .

I did know there is script include AssetandCI through which discovery is populating model id but everytime we manually need to add the model ids and manufacturer in Product model table or is there any other way through which we are getting this.

I know discovery is searching in Product model table and according to the model category it populates the Model name in Model id field.

But everytime we need to maintain this table or discovery also maintains as when the discovery checks for model id and didn't find any then it inserts the unknown model id in many cases.

Also how can we stop discovery to populate "UNKNOWN" Model IDs in CI's in Patterns also.

17 REPLIES 17

sachin_namjoshi
Kilo Patron
Kilo Patron

Updating model is done in a sensor script. For example, Windows discovery utilizes the return result of wmi providing the manufacturer and model name. Those values are passed into MakeAndModelJS script include and a GlideRecord Query is returning the first result found.

 

 

 

Regards,

Sachin

 

 

Hello Sachin, Thank you for the reply. Just want to know if discovery is bringing the model id or we have to manually maintain it in the product model table and discovery just glide record that table to bring the model id against the model category. Regards Riya

In general, a probe will gather  model_id  from a device and pass the string values to the MakeAndModelJS.fromNames() function along with a model_type. The model_type determines the table that is used to get the model_id. The table cmdb_model is used if model_type is empty.

 

Regards,

Sachin

Hello Sachin, So if a device is having the model id but then also it is showing as unknown model id then in that case what should we do? And in product model table entries are created through discovery or manually? Regards, Riya