HP Systems Insight Manager 6.0 Command Line Interface Guide

Specify an extended option value. This is used with the following keywords.
force
Force a query into the system when used in conjunction with -af / -mf.
cat
List only query categories when used with -lf.
query
List only queries when used with -lf.
-b encoding
Specify the character encoding for an XML file when used with -lf.
xml
Display the output of query execution results in xml format when used with -e. You can
also use this option with force to force the addition of a query.
NOTE: When duplicate options are specified, the last instance of the option is used. For example, if you
enter -f file1 -f file2, mxauth uses file2.
External influences
For HP-UX or Linux, LANG determines the default encoding that the system will use to output XML data if no
encoding is specified on the command line. If LANG is not specified or null, or LANG does not correspond
to a recognized encoding, it defaults to C (see lang (5)). In this case, use the -b option to specify the
encoding of the XML data.
Return values
MeaningValue
Successful completion.0
Command line syntax error.2
Invalid object.3
Invalid name.21
HP SIM 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 1 77