OBLYTECH Logo
OBLYTECH Logo

Finalize a Pattern: Save, Check and Publish in Discovery

Finalizing a pattern decides what happens to a pattern definition after you build or change it. You can save it as a draft, discard unwanted edits, check it against a configuration item, or publish it so Service Mapping and Discovery use it. Publishing is the step that switches discovery over for a pattern; saving a pattern keeps a draft that discovery ignores, though saving an extension section does switch discovery over, and checking runs the pattern against a CI so you can read the result before you publish.

The four ways to finalize a pattern

Finalizing is a set of choices on the pattern definition form rather than one fixed click, and the role needed is pd_admin. Each action does a different job.

Action Button or step What it does Limit to know
Saving Save Stores the full definition as a draft you can keep editing Service Mapping and Discovery do not use the draft
Discarding Discard Removes changes you have decided were incorrect Applies to edits you want to drop
Checking Check Pattern Runs the pattern against a chosen configuration item to test its operations Application patterns used by Service Mapping
Publishing Publish Makes Service Mapping and Discovery use the pattern for discovery and mapping Creates a new version of the pattern

Read the four actions as a sequence. You save while you build, discard the edits that turned out wrong, check the pattern against a real CI when it is an application pattern used by Service Mapping, and then publish or save depending on what the check shows. Checking feeds that decision rather than replacing it.

Saving and discarding while a pattern is in progress

Saving stores everything you have defined as a draft, and you can return to that draft at any time. That suits patterns built over several sessions. The draft is not live. Service Mapping and Discovery do not use it for discovery or mapping, so an unfinished definition does not feed the discovery process. That separation is one good reason to save early and often.

Discarding removes changes you have decided were incorrect, so you do not have to reverse each edit by hand. Keep the two buttons distinct in your head: Save keeps what you typed, and Discard drops it. A common failure here is saving a risky change as if the save were a test, then publishing it later without a check.

Checking a pattern against a real configuration item

Checking runs the pattern on a configuration item so you can see whether the operations you defined behave as intended. The check is limited to application patterns used by Service Mapping. Infrastructure patterns are outside that check.

The sequence for a check is:

  1. Click Check Pattern on the pattern definition form.
  2. Enter the parameters needed to connect to the CI.
  3. Click Connect.
  4. Wait for Pattern Designer to run the pattern.
  5. Read the result and confirm there are no errors.
  6. Troubleshoot any errors, then save or publish.

Wait for the run to finish before you act on it, then check the result for errors. Checking does not publish anything.

Publishing and the version history it leaves behind

Publishing makes Service Mapping and Discovery use the pattern for discovery and mapping. The system creates a new version, and the version used previously moves to the History state. Click Publish, then close the Pattern Designer tab.

Versions are created by saving as well as by publishing. Each time you modify and save a pattern, a version is created, so the Versions section holds more entries than the number of times you released a change. Read the Current marker to find the version in use. By default, the latest version is the one discovery uses.

Comparing versions and reverting safely

To go back to an earlier version, open the pattern, select the Pattern tab, scroll to the Versions section, click the version you want, and click Revert to this version under Related Links. The chosen version becomes Current. This step is listed as an admin task.

Before you revert a whole version, compare the two. Compare to Current under Related Links places the earlier version beside the current one. Purple marks an updated step, green marks new lines or characters, and red marks deleted lines or characters. A problem often sits in one step, so Revert chunk is the finer tool: Revert chunk replaces that step in the current version with the matching step from the earlier version. Comparing is a pd_admin task.

Extension sections are saved, not published

You do not publish an extension section. Clicking Save saves it and makes Service Mapping and Discovery use it. To create one, click New under Extension section, enter a name, click Done, and define the discovery steps in Pattern Designer. You can also add an existing shared library with Add under Extension section. Click Debug to run the new section.

A shared library is a reusable sequence of discovery steps. Saving a change to it affects each pattern that uses that library, not only the pattern you are editing, so check its users before you edit it.

Extension sections run after the identification sections, and they run when at least one identification section completes successfully. With several extension sections, the lowest order number runs first, and a single section defaults to order 1. Change the order with Edit under Extension section and the Order field. Patterns and shared libraries both sit in the Discovery Patterns [sa_pattern] table.

Fine-tuned patterns from traffic-based discovery

Sometimes Service Mapping finds a connection through traffic that a pattern should find directly. Open Service Mapping > Services > Application Services, select View Map next to the service instance, right-click the CI, and choose Show traffic based connections.

Double-click the connection, click Connect, which activates Debug mode, and use the Search Assistant to find the configuration file that holds the data. Click Create parse file step. Pattern Designer names the step Parsing followed by the file name and fills in the path and parsing strategy. Then finish the change as you would any other edit: check, then save or publish. The role for this work is pd_admin.

Roles, MID Server sync and moving patterns to production

Roles differ by task. Finalizing, comparing and fine-tuning are pd_admin tasks. Choosing a version is an admin task. Activating a disabled pattern is a discovery_admin task, and importing a copied update set on production requires security_admin. A PD admin can view, create, edit, and publish patterns, and a PD user has read-only access to the Discovery Pattern Log.

Saving or publishing does not finish the chain. Upload the set with Pattern Sync to Mid, found under Discovery > MID Servers or Service Mapping > MID Servers. If discovery fails after a change, restart the MID Server so it runs the latest patterns.

To move patterns to production, export them into an update set from development and import it on production. Export from Pattern Designer > Discovery Patterns using Actions on selected rows. The CMDB-items export option takes no more than 20 patterns at a time, and shared libraries cannot be exported. Update sets do not carry changes to script includes, so move those separately. On production, elevate to security_admin, open Retrieved Update Sets, import the XML file, preview it on the Customer Updates tab, and commit. Then run Pattern Sync to Mid.

A disabled pattern needs activating before discovery uses it. A discovery_admin selects the pattern, ticks the Active check box, and clicks Update. From Visibility Content 6.28.0, activating or deactivating is not treated as a customization, so the pattern keeps receiving updates.

A finalize sequence you can follow

  1. Save a draft at each stable point while you build the pattern.
  2. Discard any edit you decide was incorrect rather than patching it piece by piece.
  3. For an application pattern used by Service Mapping, click Check Pattern, enter the CI connection parameters, click Connect, and wait for the run to finish.
  4. Read the result, troubleshoot each error, and save the draft again as you go.
  5. When the check is clean, click Publish and close the Pattern Designer tab.
  6. Upload the set with Pattern Sync to Mid.
  7. If a published version causes trouble later, compare it with the current version and revert the steps that broke.

Keep a short note of why each version was published, alongside the version itself.

Frequently asked questions

Does saving a pattern make Service Mapping and Discovery use it?

No. A saved pattern is a draft, and Service Mapping and Discovery do not use the draft for discovery or mapping. Publishing is the action that makes them use the pattern.

Can I run the check on an infrastructure pattern?

The check is limited to application patterns used by Service Mapping. The check is not offered for infrastructure patterns.

What happens to the previous version when I publish?

A new version is created, and the version used before moves to the History state. The new version is the one discovery uses.

How do I return to an earlier version of a pattern?

Open the pattern, select the Pattern tab, scroll to the Versions section, click the version you want, and click Revert to this version under Related Links. That version becomes Current.

Do I need to publish an extension section?

No. You do not publish extension sections. Clicking Save saves the section and makes Service Mapping and Discovery use it.

For the wider picture, start with the discovery overview or the ITOM hub.