Secure Shell (SSH) in HP SIM

34
Problem: An MxAuthen
ticationException is generated when a tool is run, either from the GUI or the
command line interface.
Solution
:
Follow the steps listed in
Checklist to debug SSH on Windows
or
Checklist to debug SS
H on
Linux or HP
-
UX
sections
Problem: When executing a task, the message
Unknown OS
appears
.
Solution
:
The installation might not have been completed properly.
1.
If you are trying to execute a task on a Windows system, make sure that it rebooted after
SSH installat
ion
. A reboot is required to complete the installation.
2.
Enable DMI, WBEM, or SNMP on the system so the type of operating system can be
determined, then run data collection to update the HP SIM database.
3.
Make sure that commands to determine the operating sy
stem are working.
For Windows, type:
ver
For HP
-
UX and Linux, type:
uname
Problem: Standard Windows tools run on the CMS fail with authentication error.
Solution
:
The Administrator account might not be correctly configured on the CMS to run SSH tools.
1.
Ve
rify the name of the user account for Windows tools. This is ‘Administrator’ by default, but
this account may have been renamed
,
o
r an alternative account may be used. The account
may be specified
by setting the global property
WindowsAdminUserName
on the
CMS:
mxglobalsettings
-
s WindowsAdminUserName=MyDomain
\
MyAdmin
2.
Verify the
passwd
file to ensure that this user account has been added. Use sshuser on the
target system to add the user if needed.
sshuser
u MyAdmin
d MyDomain
f "C:
\
Program
Files
\
O
penSSH
\
etc
\
passwd"
3.
Run
mxagentconfig
on the CMS to configure this user account
:
mxagentconfig
a
u MyDomain
\
MyAdmin
n <cms machine name>
Problem: Linux or HP
-
UX CMS unable to run tools on Windows systems
Solution
:
The Windows tools are configured to ru
n as Administrator by default. If the Administrator
account
is
renamed or disabled then an alternate account must be used. This can be done by setting
the
WindowsAdminUserName
property. See the steps above.
Problem: mxagentconfig or command execution fai
ls after reinstalling the openSSH server
:
Solution
:
If SSH key checking is enabled, then the
known_hosts
file might have an incorrect key for
the target system. Remove the key using the
-
r option of
mxagentconfig
:
CMS> mxagentconfig
-
r
-
n blade08
Successfu
lly unregistered from localhost
Problem: Unable to
issue
custom commands
Solution
:
Custom commands use SSH to
issue
on the CMS with the user name of the user logged into
HP SIM. SSH must be configured correctly for this user name for custom commands to
iss
ue
. On a
Windows CMS:
The user name must be a member of the Administrators group
The user name must be added to the
passwd
file: