The following summarizes the most common filtering practices in Watch4Net APG 5:
- When you want to select one exact device (for example, select ONLY the device called device.name.com), you use:
-
- device=='device.name.com'
- When you want to select a group of interfaces (for example, select interfaces called Serial0/1.100, Serial0/1.200, Serial0/1.anything), you use:
-
- part='Serial0/1.%' & parttype=='Interface'
- Note that sometimes, it is useless to mention parttype=='Interface' since only interfaces can be called Serial0/1.%.
- When you want to select a specific indicator (for example only ifInOctets), you use:
-
- After, you can combine filters with AND (&}), OR (|), NOT (!). Then to select ifInOctets for interfaces Serial0/1.<anything> for device device.name.com, you use:
-
- device=='device.name.com' & part='Serial0/1.%' & name=='ifInOctets'
IMPORTANT! Note the difference above between the = and == operators. When you want to use wildcards, you MUST use = (as in part='Serial0/1.%'). When you want an exact match, you MUST use == (as in. device=='device.name.com')