Submit a ticketCall us

Webinar: Web Help Desk for HR, Facilities and Accounting Departments
This webinar will focus on use cases for HR, Facilities and Accounting.

Having a unified ticketing and asset management system for all the departments in your company can provide end-users with a seamless experience and make things easier for your IT team. Yet, with different business tasks and objectives, many departments don’t fully understand the capabilities of Web Help Desk and how the software can be customized for effective use in their departments.
Register Now.

Home > Success Center > Network Configuration Manager (NCM) > NCM Compliance Rule RegEx at the end of the line

NCM Compliance Rule RegEx at the end of the line

Table of contents
Created by Bill Corgey, last modified by MindTouch on Jun 23, 2016

Views: 97 Votes: 0 Revisions: 5

Updated June 6, 2016

Overview

This article provides  brief information on how Policy Rule validations can be written:

  • Find a string
  • RegEx

Using \r  to match the CRLF can produce inconsistent  results.

 

Environment

All NCM versions

Detail

Using the \r in NCM is not necessary and could produce inconsistent results due to the format the configuration is received from the device.  

One config may have the CRLF returned directly after the line and the next config from the same device may have white space between the end of the line and the CRLF, so no matter where the \r is placed, results may be varied and logically it is correct.

Example:  hostname bas-3750CRLF  vs.  hostname bas-3750 CRLF

Note:  the CRLF is not visible in NCM. A text editor that allows the view of all characters must be used. 

 

SInce NCM examines line by line the use of the \r is not needed unless one is specifically looking for the CRLF to be in a specific position.

 

It is not recommended to use  \r for Policy Rules in NCM.

 

 

Last modified
21:24, 22 Jun 2016

Tags

Classifications

Public