result-type: {criteria} [sortby sort_spec]
Example | Result |
---|---|
Hosts: Vms.status = up | Displays a list of all hosts running virtual machines that are up. |
Vms: domain = qa.company.com | Displays a list of all virtual machines running on the specified domain. |
Vms: users.name = Mary | Displays a list of all virtual machines belonging to users with the username Mary. |
Events: severity > normal sortby time | Displays the list of all Events whose severity is higher than Normal, sorted by time. |
Hosts: Vms.status = down
Input | List Items Displayed | Action |
---|---|---|
h
|
Hosts (1 option only)
|
Select
Hosts or;
Type
Hosts
|
Hosts:
|
All host properties
|
Type v
|
Hosts: v
|
host properties starting with a v
|
Select Vms or type Vms
|
Hosts: Vms
| All virtual machine properties |
Type s
|
Hosts: Vms.s
|
All virtual machine properties beginning with s
|
Select status or type status
|
Hosts: Vms.status
|
=
=!
|
Select or type =
|
Hosts: Vms.status =
| All status values |
Select or type down
|
{criteria}
is as follows:
<prop> <operator> <value>
<obj-type> <prop> <operator> <value>
Part | Description | Values | Example | Note |
---|---|---|---|---|
prop |
The property of the searched-for resource. Can also be the property of a resource type (see obj-type ), or tag (custom tag).
| See the information for each of the search types in Section 1.2.1.3.1, “Wildcards and Multiple Criteria” | Status | -- |
obj-type | A resource type that can be associated with the searched-for resource. | See the explanation of each of the search types in Section 1.2.1.3.1, “Wildcards and Multiple Criteria” | Users | -- |
operator | Comparison operators. |
=
!= (not equal)
>
<
>=
<=
| -- | Value options depend on obj-type. |
Value | What the expression is being compared to. |
String
Integer
Ranking
Date (formatted according to Regional Settings)
|
Jones
256
normal
|
|
<value>
part of the syntax for strings. For example, to find all users beginning with m, enter m*
.
AND
and OR
. For example:
Vms: users.name = m* AND Vms.status = Up
Vms: users.name = m* AND Vms.tag = "paris-loc"
AND
or OR
, AND
is implied. AND
precedes OR
, and OR
precedes implied AND
.
sortby
. Sort direction (asc
for ascending, desc
for descending) can be included.
events: severity > normal sortby time desc