I am trying to get Regex to work in my SNMPCOLLECTOR Probe's template, I am trying to create a rule using Regex to filter any Interface Descriptions that contains the word "channel" or "core".
Some examples are:
"CDP core3 switch"
"CDP core5 switch"
Would this be the correct Regex syntax?
/channel.* | core.*/
I believe that the correct regex expression would be:
I tried /.*channel.*|.*core.*/ and also /.*channel.*/ in the SNMPCOLLECTOR template (the screen shot in my first post)
Both didn't work
Could it be a system bug?
Hi Kathryn (& anyone else who have read this),
My bad...Your suggestion does work in the SNMPCOLLECTOR template, just need to remove the "/" sign.
Also to note, Regex is case sensitive too apparently...that was why initially I thought it wasn't working.
Do you know how to do a negate Regex?
I found this: (?!.*xyz.*)
But not sure why it doesn't work
Ideally, this Regex should match every text, except for text that contains "xyz".
Try the following regular expression to exclude all patterns that contain xyz:
Created a KB. Hopefully it helps.
snmpcollector probe template : hostname based "OR" - CA Knowledge