Submit a ticketCall us

WebinarWebinar: A checklist for planning your Network Performance Monitor (NPM) upgrade

Are you ready for your next upgrade? To help you plan smoothly, join this webcast to learn more about, SolarWinds® Orion® Installer, SolarWinds Upgrade Advisor, Upgrades Guides, Training Videos, and other resources available. We’ll share key upgrade planning considerations, lessons learned from customers with practical advice from SolarWinds Product Experts. We’ll also give practical tips to identify the estimated time needed and resources, how to prepare the business and IT staff for changes, ways to plan for required system changes, and more.

Register now.

Home > Success Center > Network Configuration Manager (NCM) > NCM - Knowledgebase Articles > NCM compliance rule to find a string for a RegEx does not work

NCM compliance rule to find a string for a RegEx does not work

Table of contents

Updated March 22, 2017

Overview

When using a find string in a compliance/policy rule for a line in a configuration that is literally a regular expression, it fails to find a match.

Environment

All NCM versions

Detail

By default, when using a ‘Find String' in a compliance/policy rule, some characters are still interpreted as patterns in a regular expression; for device configuration lines that contain these characters, the policy will not match without escaping (‘\’) these characters.

From NCM 7.6 onwards, this behavior can be changed to process strings exactly as they appear without interpreting any characters. To change the default behavior:

  1. Open the Orion Platform Advanced Configuration Global Settings page.
  2. Scroll to the NCM.BusinessLayer category and select the ComplianceRegexEscapeEnabled checkbox.
  3. Save to apply the settings.

Please note, that if there have already been workarounds where one has escaped out the special characters/regular expression to work, enabling this feature will break these rules so they will need to be adjusted accordingly.

 

 

Last modified

Tags

Classifications

Public