Copy patterns from one instance to another
To copy patterns from one instance to another, create an update set containing new or modified patterns with their related items in your development instance. Then, import the update set into your production instance.
Before you begin
Role required: pd_admin
About this task
Typically, you maintain two ServiceNow instances in your organization: for production and for development. Create or modify patterns, test them, and verify results in the development instance. When you are satisfied with the discovery results, export relevant patterns from the development instance to create an update set.
Update sets is a ServiceNow
feature for transferring customizations from one instance to another. Each update
set is stored in the Update Set [sys_update_set] table. Specific customizations
associated with the update set are the entries in the Customer Update
[sys_update_xml] table, and they appear as a related list on the update set record.
The method of creating update sets for patterns is different from creating update
sets for other types of customizations.
Warning:
Always follow this
procedure to create update sets for patterns. Do not use the standard platform
procedure for creating update sets.
Depending on the extent of the changes, you can use the following pattern export methods:
- Export patterns
- This option creates a new, customized version of the pattern and its related items necessary for the patterns to function properly. It then links them to the update set. The related items include:
- Extension sections
- Tracked files
- Related CI types
- Classification records
- Associated scriptsNote:Update sets do not include changes in script includes used in patterns.
- Export patterns with CMDB items
- This option creates a new, customized version of the pattern and its related items from the previous option, including any associated CMDB items. It then links all of these to the update set. The CMDB items include:
- Main CI type
- Entry point types
- Lookup tables
- Identifiers
- Hosting and reconciliation rules
The update set is an XML file with the following name convention: sys_remote_update_set<random alphanumeric string>.xml.