This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Compliance report/regex question - ntp configuration not being recognized

I am tailoring some of the Compliance Report rules to our specific system configurations and am trying to write one that will verify the network ntp configurations are in place. We have 3 ntp servers in the network and all 3 are configured in the Cisco routers & switches. Example:

ntp server 192.168.64.100 prefer

ntp server 192.168.32.100

ntp server 192.168.128.100

The order of the servers might vary depending on device and the server located closest to the gear in question is flagged as preferred. (The 1st one in the example above.) The regex I wrote is this:

ntp server (192.168.32.100|192.168.64.100|192.168.128.100)( prefer|)\nntp server (192.168.32.100|192.168.64.100|192.168.128.100)( prefer|)\nntp server (192.168.32.100|192.168.64.100|192.168.128.100)( prefer|)

The regex has to verify that all 3 are present but it can't assume a specific order and it can't assume a specific server is the preferred one. (Or any preferred at all.) I've run this regex through an on-line regex validator against the ntp code block above and it comes back as a match. When I configure this in to the compliance report and test it, however, NCM tells me it's not found. Any ideas?

Thanks!