HP Systems Insight Manager 7.0 Command Line Interface Guide

mxquery gives a tabular listing showing some attributes of all registered queries. You can
limit the query information by specifying one or more query names.
mxquery -lf [-b encoding] [-x query [queryname...] ]
This command writes a complete definition (see mxquery(4)) for each query to stdout .
Optionally, you can specify the character encoding of the XML file. The value for the character
encoding must match a valid character encoding. If no encoding is specified, the system
attempts to write the file in the encoding currently defined on the system. See http://
www.iana.org/assignments/character-sets for the list of valid character sets. You can specify
individual queries by specifying a query name; otherwise, all queries in the system are listed.
mxquery -l cat
This command lists the names of all of the categories that you can add queries to. To add a
query, the query definition must contain a category from this list.
mxquery -l crit
This command lists the names of criteria that can be specified for a query. Criteria specify the
search values that Systems Insight Manager uses when executing a query. Some criteria have
a list of defined values that must be used when specifying that given criteria. This command
lists the criteria name and the query type in which the criteria can be specified.
mxquery -l mode criterianame
This command lists the operation modes or operators that are valid for a specified criteria.
mxquery -l val criterianame
This command lists the defined criteria values for the specified criteria. If the specified criteria
does not have defined values, no data is listed.
Option
-a
Add one or more queries specified in a query definition file.
-m
Replace one or more query definitions with the definition in the specified file.
-e
Execute the specified query.
-r
Remove one or more queries.
queryname
Specify the name of the query to be removed, listed, or executed. Entering an
undefined query name results in mxquery operating on zero queries and a return
value of SUCCESS. Specifying an invalid query name (one that violates the rules
for query names (see mxquery(4)), results in an invalid name return value.
-f filename
Specify the path and name of a file that contains the definition of one or more
queries to be added, modified, or removed.
-lf
Display a file-formatted list of queries (this output can be used as input for -f).
mxquery 91