Is there a way to exclude IP address from being scanned by any Schedule even Quick Discovery

Curtis_Myers
Tera Expert

We have multiple IP addresses located in multiple ranges that we are wanting to be excluded from being scanned by any schedule and if possibly even Quick Discovery, is this possible?

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

Hi Curtis,



A little bit of a customization will be require to prevent a quick discovery or any discovery to take place over an IP that's within an exclusion list.



1- You will first need to define where do you want to store your exclusion list. You can choose to use the OOB table or you may want to create your own


2- You will need to modify the logic that executes the Discovery. Both, quick discovery and discovery schedules rely on the core script include Discovery to execute its discovery routines. You need to be careful and very much aware of what's you're doing when you're taking ownership of this script include since upgrades from ServiceNow over this script will be skipped, so you better make sure the review and required merges for each upgrade are done as needed. You may also want to choose to only affect the logic that involves the Quick Discovery, if so, you could choose to modify the UI page quick_discovery and/or script include DiscoveryAjax. Still, the same warning in regards taking ownership of the script applies.



Thanks,


Berny


View solution in original post

8 REPLIES 8

Hi Berny, 

Has this been added to any recent release (e.g. Paris, Rome, etc.)?

If not, can you provide details on how to do this.

We have "sensitive" devices that can't be discovered (including scheduled and quick discovery jobs).

 

Thanks

JC

 

Hi JC, great question! You may want to give it a try to the IP address access control (https://docs.servicenow.com/bundle/quebec-platform-administration/page/administer/login/task/t_AccessControl.html) by setting an outbound deny rule to the IP / IP range.

I'll strongly recommend you first try this in a developer instance at an IP you have priorly confirm you can access. Make sure you setup the rules properly and you're not affecting other IP you should be able to discover.

Give it a try and please let me know how it goes 🙂 

Thanks,

Berny

 

 

bernyalvarado
Mega Sage

Curtis.Myers I hope this helps. Please don't hesitate to ask if you have any further questions.



Thanks,


Berny


bernyalvarado
Mega Sage

Hi @Curtis.Myers, do you have any further questions?



Do you believe you can close this thread by marking the responses as helpful/correct?



Thanks,


Berny