dzhg / parallel-ssh

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

Show all failed/failures at the end #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if PSSH would show all the failed servers at the end. 

Now I have to manually look trough the whole output which is kind of annoying 
with the amount of servers I manage using PSSH or by grepping it (which does 
not work as stated in issue 37 and also does not include the reason of the 
failure)

Original issue reported on code.google.com by thasypher on 4 Feb 2011 at 12:55

GoogleCodeExporter commented 9 years ago
I am not sure why there is no option to make 'Enhancement' / Feature requests. 
This is (obviously) not a bug in PSSH.

Original comment by thasypher on 4 Feb 2011 at 12:56

GoogleCodeExporter commented 9 years ago
Google Code's issue tracker is a little weird sometimes.

Anyway, I agree it could be helpful to have a little summary at the end.  Do 
you have a proposal about how this would look?

Original comment by amcna...@gmail.com on 4 Feb 2011 at 4:21

GoogleCodeExporter commented 9 years ago
It guess it should be a switch that can be enabled if people want it.
It is probably best to show all the lines with FAILED status as the last ones, 
instead of showing them direct. Although that might not really work because you 
then would only see when things are wrong when it may already be too late to 
stop it from proceeding with the next ones.

Or add an option to show the failed items again when the whole run is 
completed. That way you can still see it "when it happens" but also have a 
little less work to figure out which ones were failed.

Original comment by thasypher on 4 Feb 2011 at 4:26

GoogleCodeExporter commented 9 years ago
As I've thought more about this, I think I prefer the idea of the summary 
appearing at the end rather than delaying the FAILURE lines.

Alternatively, it might make sense to add, say, a --hide-successes or 
--quiet-successes option that makes it just not add any output for hosts that 
succeed. Would this be better or worse in your opinion?

Original comment by amcna...@gmail.com on 23 Jan 2012 at 8:00

GoogleCodeExporter commented 9 years ago
Which, by the way, would be issue #39, where you already mentioned you don't 
like that idea. :)

Original comment by amcna...@gmail.com on 23 Jan 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Issue 78 has been merged into this issue.

Original comment by amcna...@gmail.com on 4 Oct 2012 at 3:43

GoogleCodeExporter commented 9 years ago
I've attached a patch that simply prevents success from outputting (like 
comment #4)

I'll see about building a patch for adding a '--summarize-failures' for listing 
failed hosts at the end.

Original comment by jcp...@gmail.com on 11 Jan 2013 at 4:24

Attachments:

GoogleCodeExporter commented 9 years ago
I've attached a patch that adds a summary to the end of runs when requested.

Original comment by jcp...@gmail.com on 11 Jan 2013 at 5:06

Attachments: