Defines criteria that a device must match before it
can be included in the generated list. Criteria can
be specified as an expression or a list of expressions which a device must
meet for it to be included in the list generated by getdev. If no criteria are provided, all devices are included in the list.
Devices must satisfy at least one of the criteria in the list. However, the -a option can be used to specify that a "logical and" operation
should be performed. Then, only those devices that match all of the criteria
in a list will be included.
There are four possible expression types
which the criteria specified in the Criteria parameter
may follow:
- Attribute=Value
- Fetches all devices with a member which hasAttribute defined and is equal to Value.
- Attribute!=Value
- Fetches all devices with a member which has Attribute defined and does not equal Value.
- Attribute:*
- Fetches all devices with a member which has Attribute defined.
- Attribute!:*
- Fetches all devices with a member which does not have Attribute defined.
The following are the valid device attributes:
- alias
- The name by which a device is known.
- desc
- A description of the device.
- type
- A token describing the type of the device.
- status
- The current state of the device.
|