Watch4net APG 5: Using basic filtering syntax
search cancel

Watch4net APG 5: Using basic filtering syntax

book

Article ID: 304647

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


Watch4net APG 5: Using basic filtering syntax
How to use filtering syntax in Watch4Net APG 5

How does basic filtering work in Watch4Net APG 5?


Environment

VMware Smart Assurance - Watch4Net/M&R

Resolution

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:
     
    • name=='ifInOctets'.
       
  • 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')