I'm currently working through some NCM scripting (both Config Change Templates and regular config management Scripts.) I found the ${SuccessRegEx:testhere} variable for executing a regex check, and if the regex fails to match the script exits with an error. I would like to do the reverse; where the script would only continue if regex did not find a match; and if it did match then exit with the error. Is there any alternate variable like a ${FailRegEx:testhere} or similar (already tried that one; doesn't work!) that I can use to get this functionality?
Also I'm trying to incorporate a check in my script to verify that there is X amount of available flash memory (or more) and not having much luck finding a function for that either. While reading through the firmware upgrades documentation I found that there is some kind of built-in check that NCM can do to verify this for firmware files; is there a way to implement that into a custom Script or Config Change Template?