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

33
Solution
:
Follow the steps listed in
Checklist to debug SSH
on Windows
or
Checklist to debug SSH on
Linux or HP
-
UX
sections
Problem: When executing a task, the message
Unknown OS
is displayed
.
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 was rebooted after
installation of SSH. 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 system are working.
For Windows, type:
ver
For HP
-
UX and Linux, type:
uname
Pro
blem: 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.
Verify the name of the user account to be used for Windows tools. This is ‘Adm
inistrator’ by
default, but this account may have been renamed pr an alternative account may be used. The
account may be specified by setting the global property “WindowsAdminUserName” on the
CMS:
mxglobalsettings
-
s WindowsAdminUserName=MyDomain
\
MyAdmi
n
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
\
OpenSSH
\
etc
\
passwd"
3.
Run mxagentconfig on the CMS to configure th
is 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 run as Administrator by default. If the Administrator
account has
been 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 fails 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
Successfully unregistered from localhost
Problem: Unable to exe
cute custom commands
Solution
:
Custom commands use SSH to execute 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 execute.
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: