HP Systems Insight Manager 7.0 Command Line Interface Guide

Return values
MeaningValue
Successful completion.0
Command line syntax error.2
Invalid object.3
Invalid name.21
Systems Insight Manager repository error.102
The CMS is not initialized.222
Unable to connect to the session manager.249
Remote exception.250
Examples
Example 1
To add the queries defined in the query definition file /home/user1/defs/myquerydef, enter
mxquery -a -f /home/user1/defs/myquerydef.
Example 2
To modify queries based on the query definition file /home/user1/defs/myquerymods, enter
mxquery -m -f /home/user1/defs/myquerymods.
Example 3
To remove the query badquery, enter mxquery -r badquery.
Example 4
To remove queries based on the query definition file /home/user1/defs/myquerymods, enter
mxquery -r -f /home/user1/defs/myquerymods.
Example 5
To view a list of Systems Insight Manager query names, enter mxquery -ln.
Example 6
This view a tabular listing of queries with column headings, enter mxquery -lt.
Example 7
To view a list of queries in XML file format, enter mxquery -lf.
Example 8
To view a list of categories to which you can save queries, enter mxquery -lcat.
Example 9
To display the criteria names and their associated query type, enter mxquery -lcrit.
Example 10
To display the operation modes associated with the criteria CriteriaByIPAddress, enter mxquery
-lmode CriteriaByIPAddress.
mxquery 93