Initially added Network routers & switches to snmpcollector directly via Add Profile. Templates worked fine. But after deleting the profiles and
discovering the devices through discovery_server the templates do not work for Interface profiles. The only difference is the case of the profiles changes when manually added and when added through the discovery_server.
The interface templates include filter rules for identifying the devices to apply the templates to using the following syntax:
hostname => [Condition="Contains",Value="abc-DIST-A.xyz.edu"]
The hostname when manually adding the device is abc-DIST-A.xyz.edu
The hostname when this same device is added by querying the discovery_server is abc-dist-a.xyz.edu
Are the filter rules used in snmpcollector case sensitive?
snmpcollector all versions through current GA release 3.43
Filter rules in snmpcollector templates are case sensitive. If you wish to create a case insensitive rule, you must use REGEX.
For example, to match device hostnames abc-DIST-A.xyz.edu and abc-dist-a.xyz.edu, create a REGEX rule as follows:
hostname => [Condition="REGEX",Value=".*(?i)abc-dis-a.xyz.edu.*"]