HP Systems Insight Manager 6.0 Command Line Interface Guide

Example 2
To change the current SSH password to
scoobydoo2
, enter mxpassword -m -x
MxSshKeyPassword=scoobydoo2.
Example 3
To change the current database password to
rocketboy2
, enter mxpassword -m -x
MxDBUserPassword=rocketboy2.
Example 4
To remove the current SSH password, enter mxpassword -r -x MxSshKeyPassword.
Example 5
To remove the current database password, enter mxpassword -r -x MxDBUserPassword.
Example 6
To add, modify or remove passwords using a graphical user interface, enter mxpassword -g.
Example 7
To add the passwords
myPw1
and
myPw2
with the values
myPw1Value
and
myPw2Value
, enter mxpassword
-a -x myPw1=myPw1Value -x myPw2=myPw2Value.
Example 8
To check if the HP SIM keystore exists, enter mxpassword -c. A typical result is Keystore exists.
mxquery
Adds, lists, modifies, execute, or removes queries in HP SIM.
Synopsis
mxquery -a -f filename [–x force]
mxquery -m -f filename [–x force]
mxquery -r queryname...
mxquery -r -f filename
mxquery -e queryname [-x xml]
mxquery [-l n|t] [ queryname... ]
mxquery -lf [-b encoding ] [-x query ] [ queryname... ] [-x cat ]
mxquery -l cat
mxquery -l crit
mxquery -l mode criterianame
mxquery -l val criterianame
Description
The mxquery command enables you to add, list, modify or remove queries in HP SIM.
IMPORTANT: Using mxcollection is preferred over using category with mxquery. Using cat will
still work for mxquery, but you should switch to mxcollection for creating and manipulating collections
(previously known as categories).
mxquery -a -f filename [-x force]
This command enables you to add queries. Query information is provided in a query definition file (see
mxquery(4)) and enables you to add one or more queries.
74 Command descriptions