Best practice for updating OOB Patterns Discovery

swapnil_singh
Tera Contributor

Hi Team,

I wanted to understand the best practice available for updating discovery patterns where only 1 field entry needs to be remapped .

Eg: currently server name is being mapped by FQDN entry, instead of that I want to make remap it with another value coming in the XML payload. 

 

Also, I need to understand if there are any specific preq to be checked incase where only 1 windows classifier needs to be migrated from Probes to Pattern , will it require just disabling the current probes and enabling patterns directly or mandate to go through https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0827212 

3 REPLIES 3

doug_schulze
ServiceNow Employee
ServiceNow Employee

for the first use the extension section, avoid modifying the core pattern. But if you must duplicate the pattern and make it your own.

 

The second? You want to migrate all classes to patterns, if you just flip the active flags on the pattern and disable the probes you will absolutely run into problems

Not migrate all the classes, instead only 1 classifier , eg Windows server 2012 ..It is having probes , disabling them and enabling the Windows Server pattern .. I can imagine it will impact relationships defined..or should be using : migrate.enablePattern('windows', 'Windows 2008 Server', 'Windows OS - Servers'); ?

Rahul Priyadars
Giga Sage
Giga Sage

HoW to Extend the Patter and do customizations here are the detailed Steps.

 

https://developer.servicenow.com/connect.do#!/event/knowledge19/LAB1542/knowledge19_LAB1542_extendin...

 

I got this URL few Years back from @doug_schulze  and still Keeping it handy.

 

Regards

RP