unix1986 / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

Command executes & says successful but does not actually execute #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by vroberts...@gmail.com on 10 Feb 2012 at 9:44

GoogleCodeExporter commented 8 years ago
If you add the "-i" option to pssh, does it give any more information?

Original comment by amcna...@gmail.com on 13 Feb 2012 at 5:26

GoogleCodeExporter commented 8 years ago
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.

Original comment by amcna...@gmail.com on 14 Feb 2012 at 6:26

GoogleCodeExporter commented 8 years ago
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.

Original comment by amcna...@gmail.com on 22 Feb 2012 at 4:57