Export to GitHub

parallel-ssh - issue #65

Command executes & says successful but does not actually execute


Posted on Feb 10, 2012 by Quick Dog

What steps will reproduce the problem? 1. run pssh -v -h hostNames.txt -l root -A rm -f /root/serverInfo.sh 2. 3.

What is the expected output? What do you see instead? the file will be deleted on all hosts in the hostNames.txt

What version of the product are you using? On what operating system? 2.3.1 on CentOS release 5.4 (Final)

Please provide any additional information below.

the output from pssh is:

[2] 21:39:49 [SUCCESS] myServerName

but when I actually check the server the file has not been removed

Comment #1

Posted on Feb 13, 2012 by Happy Camel

If you add the "-i" option to pssh, does it give any more information?

Comment #2

Posted on Feb 14, 2012 by Happy Camel

I'm guessing that the rm command failed for some reason, and that if you give pssh the "-i" option, it will report what that error was. The SUCCESS reported by pssh is not based on the return code of the remote command but rather on whether the ssh command successfully ran. I almost always use the "-i" option or the "-o" and "-e" options, as there is often important output that I need to look through.

Comment #3

Posted on Feb 22, 2012 by Happy Camel

I'm going to close this issue for now, but please reopen if you get a chance to provide more information about the problem. Thanks for your participation with pssh.

Status: Invalid

Labels:
Type-Defect Priority-Medium