beautypg.com

4 command fanout troubleshooting, Command messages – HP Linux Server Management Software User Manual

Page 86

background image

If the “r” services are not disabled, use of the pdsh -R rsh option by unprivileged users is still
disabled by default because of the inherent security risk. By default, only users with root privileges
can use the pdsh -R rsh option. This is because the remote shell rcmd library call requires the
use of a privileged port. Even though privileged users can use -R rsh, the ssh transport is still
preferred.

If the hosts and users are trusted in your environment, you can enable the use of the pdsh -R
rsh

option for unprivileged users with the following commands:

# cd /opt/dsau/bin/pdsh

# chown root:bin pdsh

# chmod u+s pdsh

4.4 Command Fanout Troubleshooting

This section contains troubleshooting tips for common error messages produced by pdsh and
the wrapper commands.

You may see the following error messages when using command fanout:

Table 4-1 ssh Command Messages

To Correct

Cause

Message

Ensure that the target system is up
and connected.

The target system is unreachable.

pdsh@:
:ssh exited
with exit code 1

Obtain the correct hostname or IP
address or set ssh permissions
appropriately and try again.

This message occurs when the target
hostname is unknown, the target
host’s IP address in /etc/hosts is
incorrect, or the user does not have
permissions to use the target host.
Note that 255 is the exit code used
by ssh when ssh itself encounters an
error.

pdsh@:
:ssh exited
with exit code 255

Table 4-2 rsh Command Messages

To Correct

Cause

Message

Determine the target hostname and try
again.

The target hostname is unknown.

pdsh@:
gethostbyname(“”)
failed

Check the r services and whether the
target system is up and connected.

The target system is unreachable, or
the r services may be disabled for this
system.

pdsh@:
:connect:
Connection refused

Check that the system is up, connected
and reachable.

The hostname exists (that is, IP
address lookup succeeded) but the
target system is down or unreachable.

pdsh@:
:connect:
timed out

See the Security Notes section for
details on allowing unprivileged users
to use pdsh with the remote shell
transport.

An unprivileged user attempted to
use the remote shell transport.

rresvport: bind: Permission
denied
pdsh@:
:rcmd:
socket: Permission denied

Ensure that the user’s $HOME/.rhosts
on the remote system gives access.

The user’s $HOME/.rhosts on the
remote system is not allowing access.

: remshd:
Login incorrect. remote

86

Command Fanout