To copy Discovery patterns from one instance to another, export the tested patterns and their related items from development as an update set, then import, preview, and commit it in production. Use the pattern export actions to build the package, and synchronize the updated patterns to the MID Server after committing.
Prepare to copy Discovery patterns from one instance to another
Start with a development instance where the new or changed patterns have been tested against the intended targets. Record the discovery results you expect to reproduce in production. A transfer can carry the customization successfully without proving that its discovery logic produces the results your team needs.
The pattern copying procedure requires the pd_admin role. The production import steps also require elevating privileges to security_admin. Plan that access before the deployment window so the export owner and production operator can complete their respective work.
Build a short transfer inventory: the patterns selected, the changes being promoted, the export method, and the development test result. Include any dependency questions that need review before production import. This gives the operator a concrete basis for comparing the exported contents with the intended change.
If the development work is still being completed, use the separate guidance on finalizing a pattern before packaging it. Treat transfer readiness as a decision about tested behavior rather than simply whether the pattern record exists.
Choose the export method by the dependencies you need
Patterns use a dedicated export procedure to assemble their update sets. Do not substitute the standard platform procedure for creating update sets. The pattern actions create customized versions and connect the relevant records to the package, which is why selecting the right action matters.
Export patterns
Export patterns packages the pattern with related items needed for its operation. These include extension sections, tracked files, related CI types, classification records, and associated scripts. Choose this method after checking that its contents cover the change being transferred.
Changes to script includes used by patterns are excluded from these update sets. Review those dependencies separately before declaring a package complete. An associated script appearing in the export does not establish that a changed script include has also been captured.
Export patterns with CMDB items
Export patterns with CMDB items adds associated CMDB items to the pattern and related items above. The additional scope includes the main CI type, entry point types, lookup tables, identifiers, and hosting and reconciliation rules. Use this distinction when the development change reaches beyond the pattern’s own discovery steps.
This method supports no more than 20 patterns in one operation. Plan smaller selections if the transfer exceeds that limit, and record which patterns belong to which file. Check the behavior and available controls on your instance and release before executing the plan.
For example, a change involving an identifier warrants reviewing the CMDB items option. A change limited to pattern logic still needs a dependency review, but it does not justify assuming that additional CMDB records must be transferred. Make the decision from the actual changes.
Export the tested selection from development
- Open Pattern Designer > Discovery Patterns in the development instance.
- Select the application or infrastructure patterns included in the transfer inventory.
- At the bottom of the window, open Actions on selected rows.
- Choose Export patterns or Export patterns with CMDB items, according to the dependency review.
- When export finishes, use View Logs in the success message to inspect the items included.
- Click Close and retain the XML file downloaded to the computer.
Compare the logged items with the planned scope before handing over the file. Look for the selected patterns and the related records your changes require. If the contents raise an unresolved question, settle it while the development selection and test evidence are still available to the export owner.
Keep a readable handoff note alongside the downloaded XML rather than relying on the filename to explain the change. Record the source instance, selected patterns, chosen action, and intended destination. That note is a recommended operating record, not an extra field required by the export interface.
Shared libraries cannot be exported through this procedure. If the intended selection includes a shared library, revise the transfer plan instead of treating the library as an application or infrastructure pattern. Keep the handoff focused on records the export action can actually package.
Import, preview, and commit in production
In production, elevate privileges to security_admin before starting the import. Navigate to System Update Sets > Retrieved Update Sets, then select Import Update Set from XML. Use Choose File to select the development export and select Upload.
The uploaded customization appears as a retrieved update set with the state Loaded. Treat that as the point where the file is available for processing. Continue through preview and commit before expecting the production instance to contain the transferred patterns and related items.
Preview the imported update set. During preview, the system scans and validates the package and shows its contents on the Customer Updates tab. Compare those contents with the development handoff, particularly when the export includes CMDB items that affect how discovered configuration items are handled.
Make an explicit review decision before committing. A useful review asks whether the selected file is the intended export, whether the contents correspond to the agreed scope, and whether outstanding dependency questions have been resolved. If the package does not match the planned change, investigate that discrepancy first.
Commit the update set, then click Close in the success message. The new or modified patterns and the related items included in the update set are then present in production. Preserve the package identification with the deployment record so a later investigation can distinguish the transferred change from subsequent work.
For help planning this work, see ServiceNow implementation.
Synchronize the MID Server and verify discovery results
After committing, navigate to Discovery > MID Servers. The alternative route is Service Mapping > MID Servers. Select Pattern Sync to Mid to send the updated patterns and related items to the MID Server.
Keep instance deployment and MID Server synchronization as separate completion checks in the handoff. A committed update set establishes that the production instance has received the customization. The synchronization step addresses the pattern set used by the MID Server for discovery.
Assign a person to record the production result and a person to review it against development evidence. Include the target checked and the specific behavior being accepted. This makes the handoff actionable when the export owner and production operator are different people.
Run a controlled discovery check and compare the outcome with the development result recorded before export. Review the expected discovered items and the behavior the change was intended to alter. A test should answer whether the transferred pattern works for its intended target, rather than simply whether import completed.
If discovery fails or its results are unexpected, restart the MID Server to ensure it runs the latest patterns. Capture the observed result before taking that step so the team can compare behavior afterward. Also revisit the package inventory if the missing behavior depends on records excluded from the export.
For work that also needs a repeatable execution plan, see creating a Discovery pattern and schedule. Keep scheduling decisions connected to the verification plan, so later runs can be assessed against an agreed outcome.
Once the transferred version is behaving as intended, treat further tuning as a separate change. The guide to fine-tuning patterns with traffic-based discovery covers that neighboring task.
Questions about transfer records and package scope
Where is the update set record stored?
The update set record is stored in Update Set [sys_update_set]. Its individual customization entries are stored in Customer Update [sys_update_xml] and appear in a related list on the update set record. This separates the package record from the changes it contains.
What does the downloaded filename look like?
The generated XML filename begins with sys_remote_update_set, followed by a random alphanumeric string and the XML extension. Use your transfer inventory to identify its purpose; the generated string does not provide a readable description of the pattern change.
Can the same XML file be retained for later use?
Yes. Save the downloaded update set file locally for future use. As an operating practice, keep its scope note and test evidence with it, so a later operator can understand what the retained package represents before deciding to import it.
Does this workflow cover a newly created pattern?
Yes. The transfer supports new patterns as well as modified patterns. For a new pattern, define the expected discovery outcome before promotion so production verification has a concrete result to compare against, even when no earlier production version exists.