Secure Shell (SSH) in HP SIM

Settings
directory. The
authorized_keys
file in this directory provides public key
aut
hentication for any 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 ear
lier in the
HP SIM commands
and tools
.
I
f you need to change the user that is used to run a specific tool
, perform the following steps:
1.
Modify the Windows HP SIM tools to use the new user account:
a.
Navigate to the tools directo
ry. For example,
C:
\
Program Files
\
HP
\
Systems
Insight Manager
\
tools
.
b.
Search the tools directory for the tool to be modified. Alternatively
,
you
can
create a tool
definition file from an existing tool using the
mxtool
command. For example:
mxtool
lf
t ne
tstat > netstat.xml
c.
Edit
the
netstat.xml
file
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 that you can
delete the execute
-
as
-
user line. In that 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.
1.
Configure each of your manag
ed systems 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 sy
stems, specifying the administrator or
other account to be used by SSH,
or
perform
the
following two steps:
a.
On Windows,
add
the administrator user to the
passwd
file using the sshuser utility on the
managed system.
sshuser
u MyUser
d MyDomain
f "C:
\
Prog
ram
Files
\
OpenSSH
\
etc
\
passwd"
b.
Run
mxagentconfig
on the CMS to configure public key authentication for the
administrator user
mxagentconfig
-
a
-
n <managed system>
-
u MyDomain
\
MyUser