Pre-sensor pattern script question (Discovery)

MMGF
Tera Contributor

I have a scenario for Windows servers in which I want to exclude CI insert into the table based on the FQDN name. 

Example: Ignore discovery and CMDB insert for any server name that starts with 'aws' or DNS contains 'xyz.com'.

 

Can I use pre/post pattern scripts to do this or are they strictly for modifying the JSON payload?

 

If not should I just create a sensor script for the classifier?

All help appreciated.

1 REPLY 1

Oyvind Schei
Tera Expert

Hi @MMGF!
If I understood you correctly, you want to exclude based on the following:
Name does not start with "aws" | and |
DNS does not contain xyz.com

If you navigate to: Discovery Definition -> CI Classification -> Windows

2024-02-01 15_01_46-Windows 2022 Server _ Windows Classification _ ServiceNow.png

 And then select the respective Classification:

2024-02-01 15_02_16-Windows Classifications _ ServiceNow.png

There, you can edit the 'Classification Criteria', which may help to solve your issue.

2024-02-01 15_00_11-Windows 2022 Server _ Windows Classification _ ServiceNow.png


Hope it works out for you MMGF!