Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Schedule discovery of all resources in a service account

Log in to subscribe to topics and get notified when content changes.

Schedule discovery of all resources in a service account

You can add a custom schedule for Discovery to discover all resources each datacenter in a service account and then update the CMDB with the new information.

Before you begin

  • Role required: sn_cmp.cloud_admin
  • A cloud account must exist with service accounts and associated datacenters. You must run on-demand Discovery to discover datacenters before you can schedule Discovery.

About this task

  • Scheduled Cloud Discovery discovers only datacenters that are part of the service account when the schedule is created. If datacenters have been added since the time you created the schedule, Discovery does not discover those datacenters. Delete the old schedule and create a new schedule every time the datacenters in a service account change.
  • Discovery populates the CMDB with the discovered resources and updates the resource information on the Resources tab. You can view Discovery results on the Discovery Log tab.

Procedure

  1. In the Cloud Admin Portal, navigate to Manage > Discovery Schedules.
  2. Click Add Cloud Schedule.
  3. On the Add Account page, select the cloud Provider and enter a unique, descriptive Name for the schedule.
  4. In the Service Account section, select Select Account, specify the service account, and then click Next.
    Note: To create a service account, select Add Account and then fill in the form. For details, see the process of setting up a service account in the Day 1 setup guide.
  5. On the Select Datacenters page, you specify which of the datacenters in the service account to discover. Move the datacenters to discover into the Selected list or select Discover all datacenters listed below to move all datacenters to the Selected list. Click Next.
  6. On the Create Schedule page, you specify the time and frequency of discovery.
    Note: Run time setting uses the system time zone.
    Table 1. Discovery schedule run options
    Frequency Description
    On Demand Does not run on a schedule. Click Discover now to run Discovery. This is the default option.
    Daily Runs every day. Use the Start time field to specify the time of day.
    Weekly Runs on one designated day of each week. Use the Start time field to specify the time of day.
    Monthly Runs on one designated day of each month. Use the Day field to select the day of the month. Use the Start time field to specify the time of day. If the designated day does not occur in the month, the schedule does not run that month. For example, if you designate day 30, the schedule does not run in February.
    Periodically Runs every designated period of time. Use the Repeat Interval field to define the period of time in days, hours, minutes and seconds. The first Discovery runs at the point in time defined in the Starting field. The subsequent discoveries run after each Repeat Interval period passes.
    Once Run one time as designated by the date and time defined in the Starting field.
    Weekdays Runs every Monday, Tuesday, Wednesday, Thursday, and Friday. Use the Start time field to select the time of day.
    Weekends Runs every Saturday and Sunday. Use the Start time field to select the time of day.
    Month Last Day Run the last day of every month. Use the Start time field to select the time of day.
    Calendar Quarter End Runs on March 31, June 30, September 30, and December 31. Use the Start time field to select the time of day. To change the dates, modify the DiscoveryScheduleRunType script include.
    After Discovery Allows you to sequentially stagger the schedule. Use this option to run this schedule after the Discovery designated in the Run after field finishes. Select the Even if canceled check box to designate that this discovery should run even if the Run after Discovery is canceled before it finishes.
    • This option is not valid when the Discovery is started via DiscoverNow, or when using the Discover CI feature.
    • You cannot designate an inactive Discovery schedule.
    • You cannot create a loop by designating the run after Discovery to be the same Discovery.
    • This Discovery does not run if the Run after Discovery does not finish, with the exception that the Even if canceled check box is selected and the Discovery is canceled.
    Cancel Discovery if longer than Time limit for running the discovery. When the specified time elapses, the remaining tasks for the discovery are canceled even if the discovery is not finished. If the check box is not selected, the discovery runs until finished. This setting constrains system load to a desirable time window.
  7. Click Finish and Run Now.

Result

Discovery runs immediately. Discovery runs at the specified times and then adds discovered datacenters to the Logical Datacenters related list.

If you configured a Discovery schedule, it appears in the Discovery Config - Logical Datacenters related list. To run Discovery on a single datacenter, add the datacenter to the Discovery schedule in the related list, then run Discovery again.

Open a datacenter record to see the relationships between the datacenter and the resources in the datacenter.
Figure 1. Resources in an AWS datacenter
Resources in an AWS datacenter

What to do next

  • To view discovery status, discovery logs, discovered devices, and the ECC queue, click Advanced View.
  • If Discovery fails, check the Cloud Discovery results on the home pagehome page.
Feedback