Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

Home > Success Center > Network Configuration Manager (NCM) > Apply a compliance rule with config block using RegEx to selected interface types

Apply a compliance rule with config block using RegEx to selected interface types

Table of contents
Created by Bill Corgey, last modified by Bill Corgey on Feb 20, 2017

Views: 969 Votes: 0 Revisions: 5

Overview

There are times when a compliance rule needs to be confined to a subset of interfaces already in group and needs to be dealt with differently than a standard Config Block.

Environment

NCM 7.4

Steps

Create the policy rule in the web

  1. In the advanced section, set the criteria you are searching for.
  2. in the search Config File/Block, select the Config Block.
  3. Lay out the criteria of the section(s) of the config where NCM needs to look at.

For this example, I want to search several different interfaces, but not all

I want to look at any block that starts with interface serial, interface test1, interface test2 or interface multilink

  1. The RegEx for the config block start would be:
    interface serial*.*|interface test1*.*|interface test2*.*|interface multilink*.*
  2. The RegEx for the config block end would be:
    !

 

 

Note:  RegEx patterns used in the Config block is a single line expression.  Multi-line expressions used will not be fully recognized.  

 

 

Last modified
07:34, 20 Feb 2017

Tags

Classifications

Public