Methods of using query operators
The management interface supports queries and UNIX-style patterns and wildcards to enable you to match multiple values in command-parameter arguments.
The following table describes the supported query operators:
Operator | Description |
---|---|
* |
Wildcard that matches all entries. For example, the command |
! |
NOT operator. Indicates a value that is not to be matched; for example, |
| |
OR operator. Separates two values that are to be compared; for example, |
.. |
Range operator. For example, |
< |
Less-than operator. For example, |
> |
Greater-than operator. For example, |
<= |
Less-than-or-equal-to operator. For example, |
>= |
Greater-than-or-equal-to operator. For example, |
{ |
Extended query. An extended query must be specified as the first argument after the command name, before any other parameters. For example, the command |
If you want to parse query characters as literals, you must enclose the characters in double quotes (for example, "<10"
, "0..100"
, "*abc*"
, or "a|b"
) for the correct results to be returned.
You must enclose raw file names in double quotes to prevent the interpretation of special characters. This also applies to special characters used by the clustershell.
You can use multiple query operators in one command line. For example, the command volume show -size >1GB -percent-used <50 -vserver !vs1
displays all volumes that are greater than 1 GB in size, less than 50% utilized, and not in the storage virtual machine (SVM) named “vs1”.