Command executes & says successful but does not actually execute
Closed this issue · 3 comments
GoogleCodeExporter commented
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
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
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
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
- Changed state: Invalid