HP Systems Insight Manager 5.3 Command Line Interface reference guide

-o host|user
Specify whether to configure the managed node with SSH host-based authentication or user
key-based authentication. If this option is not specified, the default is host-based
authentication.
-u login
Enter the user name to enable SSH execution.
-p password
Enter the password of the specified user on the managed node. If the password contains
special characters that the shell might interpret, for example, $ or &, enclose the string in
quotation marks.
-s password
Specify an encoded password used by the CMS internal tools.
-f filespec
Specify an input file. This file can contain a password or a managed node list to configure.
If the file contains a node list, the first line must be MXAGENTCONFIG_NODELIST_FILE.
Enter information for each node on a separate line in the format
nodename,username,password. The nodename is required, but the username and
password can be empty if you want to use the values entered into the command line. For
example, if you enter target1,, the command uses the username and password specified
with the -u and -p options when configuring the node
target1
.
Return values
MeaningValue
Successful completion.0
Command line syntax error.2
An error occurred during operation.>0
Files
Server:
/etc/opt/mx/config/sshtools/.dtfSshKey.pub
/etc/opt/mx/config/sshtools/known_hosts
Managed node:
~/.ssh/.<cms_name>.dtfSshKey.pub
~/.ssh/authorized_keys2
~/.ssh/authorized_keys2.bak
Example
To copy the SSH-generated public key from the CMS to the node
node1
with the username
root
and password
password
, enter mxagentconfig -a -n node1 -u root -p password.
See also
HP-UX
mxexec(1M)
18 Command descriptions