Guidelines for Creating Additional Filters for Node Groups

The Additional Filters Editor enables you to create expressions to further define the nodes to be included in a Node Group. Make sure to design any complex Additional Filters offline as a Boolean expression first. This method can help to minimize errors when entering your expressions using the Additional Filters Editor.

When creating Additional Filters for a Node Group, note the following:

  • Use the EXISTS and NOT EXISTS operators when you want NNMi to consider nodes that either do or do not have any Capabilities or Custom Attributes when evaluating the Filter String. See Specify Node Group Additional Filters for more information.
  • View the expression displayed under Filter String to see the logic of the expression as it is created.
  • The AND and OR Boolean Operators must contain at least two expressions as shown in the example below.

    AND 

         sysName like cisco*

         sysName != cisco2811

         OR

               sysLocation = Boston

               sysContact In (Johnson,Hickman)

    NNMi evaluates the expression above as follows:

    sysName like cisco* AND sysName != cisco2811 AND (sysLocation = Boston OR sysContact in (Johnson, Hickman))

    • NNMi finds all nodes with a (system name) sysName beginning with cisco, except not cisco2811.
    • Of these nodes, NNMi then finds all nodes with a (system location) sysLocation of Boston or (system contact name) sysContact of Johnson or Hickman.

  • The placement of your cursor and the subsequent text that is selected is important when performing operations using the Additional Filters Editor. For example, you append to or replace, the expression that is selected.
  • The placement of your cursor and the subsequent text that is selected is especially important when adding your Boolean operators. See Add Boolean Operators in the Additional Filters Editor for more information.
  • You can drag any of the following items to a new location in the Filter String:

    • Filter Editor Options: AND, OR, NOT, EXISTS, NOT EXISTS
    • Filter Expression (Attribute, Operator and Value)
  • When moving items in the Filter String, note the following:

    • Click the item you want to move before dragging it to a new location.
    • As you drag a selected item, an underline indicates the target location.
    • If you are moving the selection up, NNMi places the item above the target location.
    • If you are moving the selection down, NNMi places the item below the target location.
    • If you attempt to move the selection to an invalid target location, NNMi displays an error message.