Secure Shell (SSH) in HP Systems Insight Manager 5.1 and 5.2

23
Settings directory. The
authorized_keys
file in this directory provides public key authentication
for an
y user configured to use this directory.
Modifying the HP SIM tools
You will not normally need to modify the tools included with HP SIM. Tools configured to run as
Administrator can run as an alternate user using the steps described earlier in the
HP SIM commands
and tools
.
You can follow the directions below if you do need to change the user that is used to run a specific
tool.
1.
Modify the Windows HP SIM tools to use the new user account:
a.
Navigate to the tools directory. For
example,
C:
\
Program Files
\
HP
\
Systems
Insight Manager
\
tools
.
b.
Search the tools directory for the tool to be modified. Alternatively you may create a tool
definition file from an existing tool using the mxtool command. For example:
mxtool
lf
t netstat >
netstat.xml
c.
Edit
netstat.xml
for example, using Notepad.
d.
Find each execute
-
as
-
user line in the XML file:
<execute
-
as
-
user>Administrator</execute
-
as
-
user>
e.
Make changes to reflect the following:
<execute
-
as
-
user> MyDomain
\
MyUser</execute
-
as
-
user>
(Note tha
t you can delete the execute
-
as
-
user line altogether, in which case the tool runs with
the same user name as the HP SIM user who runs the tool.)
f.
Run mxtool to update the tool definition:
mxtool
m
f netstat.xml
x force.
2.
Configure each of your managed sys
tems that is to run tools with this user account:
If this user account was used to install OpenSSH, then the managed system should be correctly
configured. If a different account is used then
either run the Configure or Repair Agents tool on
the systems,
specifying the administrator or other account to be used by SSH; or take the following
two steps:
a.
On Windows, the administrator user should be added to the passwd file using the sshuser
utility on the managed system.
sshuser
u MyUser
d MyDomain
f "C:
\
P
rogram
Files
\
OpenSSH
\
etc
\
passwd"
b.
mxagentconfig should be run on the CMS to configure public key authentication for the
administrator user
mxagentconfig
-
a
-
n <managed system>
-
u MyDomain
\
MyUser