Advanced Computer Searches

Advanced computer searches allow you to use detailed search criteria to search the managed and unmanaged computers in Jamf Pro. These types of searches give you more control over your search by allowing you to do the following:

  • Generate specific search results.

  • Specify which attribute fields to display in the search results.

  • Save the search.

Criteria Operators

The following table lists operators and examples of how they might be used to qualify values:

Operator

Definition

Example

is

Matches the specified string exactly

The criteria "'Computer Name' is 'Test Computer 6'" includes computers with the name "Test Computer 6". By contrast, a computer with the name "Test Computer 7" is not included.

is not

Matches values that do not match the specified string exactly

The criteria "'Display Name' is not 'CEO iPad'" includes all devices except those with the exact display name "CEO iPad". By contrast, a device with the display name "'CEO iPad Old'" is not included.

like

Matches value that contain the specified string

The criteria "'Computer Name' like 'AP Science Mac'" includes computers with names such as "AP Science Mac 1", "AP Science Mac 2", and "AP Science Mac 3".

not like

Matches values that do not contain the specified string

The criteria "'Display Name' not like 'Staff'" includes devices with display names such as "Student A", "Student B", and "Smith Personal iPhone".

matches regex

Matches values that match the specified regular expression (regex). For more information on regex, see the Using Regex with Smart Groups and Advanced Searches article.

The criteria "'Computer Name' matches regex '^LAB-.*$s'" includes computers with names such as "LAB-ART-101", "LAB-CS-101", and "LAB-CS-102".

does not match regex

Matches values that do not match the specified regular expression (regex). For more information on regex, see the Using Regex with Smart Groups and Advanced Searches article.

The criteria "'Display Name' does not match regex '^HS'" includes devices with display names such as "iPad HS loaner" and "11 HS iPad".

And/Or Groupings

If you have multiple criteria, you can use "and/or" groupings to define the relationships between them and create logic that includes the devices you want in your advanced search. The following groupings are available when multiple criteria are used:
  • andOnly devices that fulfill all related criteria will be included in membership.
  • orDevices that fulfill any of the related criteria will be included in membership.

If more complex logic is necessary to define the relationships between your criteria, you can use the parenthesis pop-ups to group criteria together.

Creating an Advanced Computer Search

  1. In Jamf Pro, click Computers at the top of the sidebar.
  2. Click Search Inventory in the sidebar.
  3. Click New .
  4. Use the Search pane to configure basic settings for the search.

    To save the search, select the Save this Search checkbox.

  5. Click the Criteria tab and add criteria for the search:
    1. Click Add .
    2. Click Choose for the criteria you want to add.
      Note:

      Only your 30 most frequently used criteria are listed. To display additional criteria, click Show Advanced Criteria.

    3. Choose an operator from the Operator pop-up menu.
    4. Enter a value in the Value field or browse for a value by clicking Browse.
    5. Repeat steps a through d to add criteria as needed.
  6. Choose an operator from the And/Or pop-up menus to specify the relationships between criteria.
  7. To group criteria and join multiple operations, choose parentheses from the pop-up menus around the criteria you want to group.

    Operations in the search take place in the order they are listed (top to bottom).

  8. Click the Display tab and select the attribute fields you want to display in your search results.
  9. Click Save .
  10. To view the search results, click View .

The results of a saved search are updated each time you view the membership.

You can export the data in your search results to different file formats or perform actions on the results. For more information, see Computer Reports or Mass Actions for Computers.