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.
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.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.