HP Systems Insight Manager 7.2 Command Line Interface Guide

-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.
:
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 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 HP SIM query names, enter mxquery -ln.
mxquery 93