Showing results for 
Search instead for 
Did you mean: 
Level 7

If and replace functionality on NCM

Is there an if and replace function on NCM?  For example, scan the config and if a certain integer (ip, phrase, keyword, etc) matches then replace with another integer?  I'm trying to do this for Cisco IOS configurations to find and replace certain commands.

0 Kudos
1 Reply
Level 20

Re: If and replace functionality on NCM

You can't do that in the script directly, but you can accomplish the same goal with compliance reports and remediation scripts.  The reports will look through the config for whatever regex lines you give them and if it finds them you can set up scripts to remove the offending code and insert the correct one.  It takes a little poking around before you get a good handle on using them but they definitely do the job.

NCM Compliance Policy Reports - SolarWinds Worldwide, LLC. Help and Support

NCM Compliance Reports Simplified

NCM Compliance Remediation

Apply a compliance rule with config block using RegEx to selected interface types - SolarWinds World...

How do you configure interface compliance rules

0 Kudos