- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 05:55 AM
Hi, is it possible to schedule the following times on a discovery schedule:
1. First Tuesday of the month from 20:00 - 21:00 - Test environment
2. Second Tuesday of the month from 20:00 - 21:00 - Stage / UAT environment
3. Third Tuesday of the month from 20:00 - 21:00 - Prod environment
and is the best way a script?(if so could some one help me as i am a noobie at best when scripting)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2023 09:08 AM
In that case, something is better than nothing! You'll probably need to write a script which calls the Discovery job and has some function like this included, as I don't recall there being a "third instance of in the month" type iteration in either FD or script criteria.
Not a scenario I've heard frequently, but I hope that helps!
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2023 03:23 AM
You can create a flow and call this API on the desired dates.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2023 09:07 PM
Hi
Since you are new have a look at few old good articles.
Discovery Schedule Best Practices-
How to trigger Discovery Using Script-
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0549380
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2023 08:32 AM
Hey Scott,
It's doable (see "periodically" as you configure the schedule, assuming you have separate IP ranges / subnets for Test / Stage / Prod) - but I'd question if it were wise. What would happen, for example, if a server was updated immediately after July's Discovery job were updated? It would be inaccurately reflected right until August - which would cause manual work or process avoidance for those using the CMDB (to raise changes and so on).
Personally, I'd schedule them to run periodically, sure - but be careful not to leave it too long between jobs. The value of Discovery is in its' accuracy.
Hope that helps!
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2023 08:45 AM
Due to the nature of our business, we are only allowed to scan these ranges at the specific Tuesdays, and this is my dilemma. Having the schedules know which Tuesday it is in the month.