To import IP ranges into Discovery schedules with import sets, load a spreadsheet containing Start IP and End IP values, then transform those rows into IP Range [ip_address_range]. The resulting ranges become available to advanced Discovery schedules. Check the imported boundaries and intended schedule scope before running Discovery against the newly added networks.
Prepare the network list before loading data
This workflow suits a Discovery administrator who already has an approved network inventory and needs to enter many address ranges together. The import procedure requires the discovery_admin role. It creates reusable range records rather than discovering devices as part of the upload. For context on what happens during a scan, see the ServiceNow Discovery overview.
Prepare a mappable data source with two fields: Start IP and End IP. Both boundaries are inclusive. A row therefore describes the addresses from its first endpoint through its last endpoint. Review both values with the network owner; an incorrect endpoint can widen the intended scan scope even when the file loads successfully.
Use a spreadsheet that separates those endpoints into distinct columns. If the network inventory describes networks through other notation, establish the intended first and last addresses before preparing the import file. Do not assume that a column containing a network description will supply both endpoints through mapping alone.
Before loading, compare the proposed rows with the approved network list. Check for missing endpoints, reversed endpoints, duplicate rows and overlapping ranges. A successful load only shows the file was accepted, not that its rows match the approved inventory, so keep the approved file for the comparison after transformation.
Load the spreadsheet into an import set
- Navigate to All > System Import Sets > Load Data.
- Identify the file or data source containing the network ranges.
- Create an import table name that clearly identifies this staging purpose, such as ipnetworks.
- Select Upload an Excel file and choose the spreadsheet.
- Click Go to load the file.
Keep the staging table and destination table distinct in your work notes. The import table holds the incoming spreadsheet data. IP Range [ip_address_range] is the target for the subsequent transformation. A completed upload is an intermediate checkpoint, so avoid treating it as the point at which schedule configuration is finished.
Before configuring the map, compare the loaded column names with the spreadsheet headings. Confirm that the two address columns remain distinguishable and that their values can be mapped to the corresponding destination fields. Test the process on a small, representative batch before loading the full approved inventory.
The steps here follow the Brazil workflow; check navigation and available controls on your instance and release. If a field or menu on your instance differs from these steps, check the labels against the mapping form before setting any field map.
Map the endpoints into IP Range
Navigate to System Import Sets > Create Transform Map. Set the destination to IP Range [ip_address_range] and give the map a descriptive, unique name. A name tied to its source and purpose helps another administrator distinguish it from unrelated integrations during later maintenance.
- Submit the transform map form.
- Click New in the Field Maps Related List.
- Map the spreadsheet fields to the destination fields, supplying values for Start IP and End IP.
- Use the Mapping Assist Related Link to resolve the source and target fields through the displayed lists.
- Click Save to return to the Table Transform Map form.
- Click Transform in Related Links to move the source data into IP Range [ip_address_range].
Review the mapping by meaning, even when two headings look similar. Start IP must receive the beginning of the range, and End IP must receive its end. A transform map pointing to the intended table can still express the wrong network boundaries if its endpoint mappings are reversed.
After transformation, compare representative destination records with the approved spreadsheet. Include a narrow range, a wider range, and any row whose boundary required clarification during preparation. Compare the actual addresses rather than relying on the map name or the fact that the transformation was invoked.
Keep a short reconciliation record: which file was loaded, which staging table held it, which transform map was used, and which ranges were checked. This makes it easier to distinguish an input error from a mapping error if someone later questions the Discovery scope.
Check schedule scope and exclusions before a run
Transformed ranges are available for use in advanced Discovery schedules. Availability is the outcome of this import procedure; the next operational check is whether the intended schedule uses the intended ranges. Review the schedule’s scope with its owner before executing a run that includes newly imported networks.
Separate network coverage from scan success when reviewing the result. First establish whether the range record contains the correct boundaries and whether the schedule includes the intended scope. Then investigate discovery failures. The Discovery troubleshooting guide provides the next route when the scope is correct but results still need investigation.
Where exceptions are required, configuring Discovery range set exclusions requires discovery_admin or agent_admin. Navigate to All > Discovery > Discovery Range Sets, select the range set, and choose an entry from the Discovery IP ranges related list. Click New from the Discovery Range Item Excludes related list to define the exception.
- IP Address List supports separate addresses through the Discovery Range Item IPs related list. After choosing this type, right-click the header and select Save before adding addresses.
- IP Address Range uses starting and ending addresses for the exception.
- IP Network uses Network IP and Network mask.
Click Submit after defining the exclusion. Exclude IPs does not support IPv6 ranges or subnets. Before a Discovery schedule runs, excluded addresses are counted; more than 500,000 excluded addresses causes Discovery to be canceled and a status error to be logged through DiscoveryLogger. Review large exclusion designs before using them as a shortcut for tightly defined scope.
For help organizing this work, see ServiceNow implementation.
Record which schedule owner accepted the imported boundaries, which exclusions were reviewed, and the source file name. A later administrator can then check a change to the approved inventory against that record instead of against memory of the upload.
Clean up staging tables after the checks are recorded
Plan cleanup after validating the imported ranges and recording the checks. Deleting import set tables requires admin. Navigate to All > System Import Sets > Import Set Tables > Cleanup and move the intended tables from Available tables for deletion to Delete these tables.
Review the options before clicking Cleanup. Deleting a table removes its records and the table itself. Delete related transform maps also removes associated transform maps. Delete data only (preserve table structure) removes the records while retaining the table structure. Choose according to whether this is a disposable staging area or a structure needed for another import. Choose Delete related transform maps only when the mapping is no longer needed, because that option removes the transform maps along with the records.
Scheduled cleanup also requires admin and is configured at All > System Import Sets > Import Set Tables > Scheduled Cleanup. The Import Set Deleter supports scheduled, one-time, and on-demand execution. Its default script deletes import sets and related rows created more than seven days earlier. Align the review window with cleanup timing so the staging evidence remains available while checks are underway.
Questions about extending the range import workflow
Can an upstream system supply import data through a web service?
Yes. A web service import set provides staging and transformation for incoming data. Creation begins at All > System Web Services > Inbound > Create New. For a recurring feed, first settle the endpoint fields and review process, then design the integration around the same approved network inventory.
Can the transform map be created with the web service?
Yes. Selecting Create transform map and choosing the target table during web service creation opens the Table Transform Map form after Create is selected. This is an alternative setup route when designing an incoming service, rather than an extra step required for the spreadsheet workflow.
What happens if a synchronous web service has several transform maps?
All transform maps execute when the service is invoked in Synchronous mode, which is the default. Review the associated maps before enabling a recurring network feed so the integration’s behavior matches the intended destination and scope.
Will importing ranges establish device authentication?
The range import supplies address scope. Plan credential work separately when preparing the ensuing Discovery run. For the SNMP side of that preparation, see SNMP probes and credential parameters. Keep the network inventory approval and credential review as separate operational checks.