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

Message

pdsh@local_hostname: target_hostname:ssh exited with exit code 1

pdsh@local_hostname: target_hostname:ssh exited with exit code 255

Cause

The target system is unreachable.

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.

To Correct

Ensure that the target system is up and connected.

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

Table 4-2 rsh Command Messages

Message

pdsh@local_hostname: gethostbyname(“target_hostname”) failed

pdsh@local_hostname: target_hostname:connect: Connection refused

pdsh@local_hostname: target_hostname:connect: timed out

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

target_hostname: remshd: Login incorrect. remote

Cause

The target hostname is unknown.

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

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

An unprivileged user attempted to use the remote shell transport.

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

To Correct

Determine the target hostname and try again.

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

Check that the system is up, connected and reachable.

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

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

Table 4-3 Target Node Error Messages

Message

Cause

To Correct

target_hostname:sh:command_name:not

The command does not exist on the

Use full paths to specify commands.

found

target node. The remote shell

 

 

invoked by pdsh has only a minimal

 

 

path, and a user's login scripts are

 

 

not executed on remote nodes.

 

86 Command Fanout

Page 86
Image 86
HP UX System Adstration manual Command Fanout Troubleshooting, Ssh Command Messages, Rsh Command Messages