- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 03:43 AM
How do I create a discovery schedule for business services which have entry points defined? I do not want to run horizontal host or application discovery but the top-down discovery of service mapping.
Currently the only option I see is to reuse the script from Run Discovery UI action and create my own schedule record:
var bsManager = new SNC.BusinessServiceManager();
bsManager.startDiscovery(current.sys_id);
Solved! Go to Solution.
- Labels:
-
Discovery
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 11:10 AM
Antal,
Your business services need to be set to in operation status for the scheduled job to run. It only runs them on a schedule if they have been marked as operational on the business service form. This should get you past this .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 05:20 AM
Antal,
Application discovery is the top down discovery. Check out Create a discovery schedule for an application CI
What is the reason for not going with OOTB process to keep your maps up to date?
If you want to run a custom schedule, you can go to "Scheduled Jobs" and create a custom job to run below code
var map = new GlideRecord('cmdb_ci_service_discovered'); //Query the business services
map.addQuery(''); // Need to update query
map.query();
while (map.next()) {
var bsManager = new SNC.BusinessServiceManager();
bsManager.startDiscovery(map.sys_id);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 05:30 AM
Hi Patrick,
Although I have 20 services, the All applications schedule does not do anything when I run it.
What process are you referring to please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 05:38 AM
What do you mean it doesn't do anything? When the discovery runs what do you get back in the ecc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2018 05:41 AM