Using data from the device General tab for template auto-apply
-
-
-
-
-
Just a guess but I think you need to return a 'true' or 'false' in order for it work
And it could be that your RegEx syntax is wrong?Maybe try "ePMP3000 \(FCC\)" the backslashes mean a literal '(' or ')' otherwise () implies a capture group
You could also try "ePMP3000.*" if you don't care about it having to exactly have "(FCC)" on the end -
Otherwise here's a sample of what I use for Cambium ePMP series (all of them, not just 3000 specifically)
// ePMP series if ($node->snmpOID ~= "(.1.3.6.1.4.1.17713.21.9).*") return true; -
Your syntax is wrong - you should use -> operator for accessing object properties (dot is string concatenation). Also, brackets denote capture group in regular expression, you should escape them with backslashes.
return $node->productName ~= "ePMP3000 \\(FCC\\)";should work.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login