Pattern Designer model_id

AchimM279672093
Tera Contributor

Hello,

I would like to set the model for an SNMP device in Pattern Designer.

I can read the model via sysdescr, but I can’t enter this value directly under $cmdb_ci_ip_switch[*].model_id. To do that, I would need to know the model_id.
This is, of course, difficult because the model may not have existed previously, and even if it did, I can’t find a way to determine the model_id in Pattern Designer.

Unfortunately, the Pattern Designer does not have the MakeAndModelJS function, as is available for probes/sensors.

Does anyone know of a way to enter the model in plain text?

I would appreciate a response.

 

Best regards,
Achim

1 REPLY 1

thomasbueck
Giga Contributor

Hi,

take a look in the Pre Post Processing scripts, there are pre processing scripts like 'Handle Model and Manufacturer for HMC' which you can use as example.
You find it directly in the menu with 'pre post' or sa_pattern_prepost_script