Hi,
it's been very hard for me to find good examples of advanced regular expressions that I may use in my Baseline Template (suggestions of websites would be appreciated):
I need to check if this line exists in my switches:
logging host 10.1.1.2
But old switches have this line (which is perfectly acceptable!)
logging 10.1.12
I have tried, in my baseline template, the following regex:
+[#logging.*10.1.1.2#]
It seemed to work fine, but if the device is NOT compliant, the report says that it will deploy the following command:
[#logging.*10.1.1.2#]
That's absurd! I don't want to deploy a regex.
How do I check compliance using regex and then deploy a different command (and not the regext itself)?