User`s guide

Chapter 1 XgOS CLI Overview 7
Pipes
You can use pipes to control the display of output in the CLI. Pipes in the XgOS CLI
are like standard UNIX pipes, and they use the same syntax. For example, if you
enter:
The resulting output displays all vNICs in the
down state. XgOS pipes work with
any command, but is used with most effectiveness when coupled with the grep
command. XgOS pipes are not limited to only one set of pipes; many stages in the
pipeline are supported.
Filters
The CLI supports command filters, which are boolean expressions that operate on
columns of object output. You can use filters to specify objects that will be displayed
in the output of the following show commands:
show vnic
show vhba
show server-profile
show physical-server
To specify a filter for these commands, append a “where” clause containing
operands and operators. Some examples are provided later in this section.
Filters determine specific output (the table columns) that will be displayed when
you issue one of the listed commands. The value of a table column in a show
command can be compared to a constant using one of the operators in the following
table.
show vnic * | grep down
Operator Means
= equal to
<> not equal to
< less than
<= less than or equal to
> greater than
>= greater than or equal to
like regular expression match