Use Advanced mode to create a query for virtual machine selection
The Query builder's Advanced mode provides more flexibility in crafting rules for virtual machine selection, including the use of parentheses for grouping.
Note:
In the NetBackup web UI, you must use OData keywords and OData operators in query rules:
To use Advanced mode to create a query for virtual machine selection
- Create a KVM policy.
- Select the Backup selections tab.
- Locate Query builder and select Advanced mode.
- You can use the Query builder menus to add query rules. You can also type in rules manually.
Here are some example queries:
startswith(displayName, 'vm3') and powerState eq 'Shut Off'
contains(kvmHostName, 'hostab')
- To insert a rule between existing rules, place the cursor where you want the new rule to start and type it in.
When you create a rule with the drown-down menus, it appears at the end of the query. You can cut and paste it into the proper location.
- To establish the proper order of evaluation in compound queries, use parentheses to group rules as needed. Compound queries contain two or more rules, joined by: and, and not, or, or not.