Use the Query builder in Advanced mode
The Query builder's Advanced mode provides more flexibility in crafting rules for virtual machine selection, including the use of parentheses for grouping.
To use the Query builder in Advanced mode
- Open the NetBackup web UI.
- On the left, select Protection > Policies.
- Create a Hyper-V policy and specify a Hyper-V server.
For assistance, you can refer to the first few steps of the following procedure:
See Create a Hyper-V policy for automatic virtual machine selection.
- Select the Clients tab.
- Select the option Select automatically through Hyper-V Intelligent Policy query.
- Locate Query builder and select the Advanced mode tab.
- You can use the Query builder fields to add query rules. You can also type in rules manually.
For example:
Displayname Contains "vm"
- 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 fields, it appears at the end of the query. You can cut and paste it to a different position.
- 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 OR NOT.
More information is available on the use of parentheses and on the order of precedence.