Dominique Martinet
Dominique Martinet
The later isn't a clush/ssh problem, the sudo affects the command being run, but the redirection (> /etc/hosts) is done by the shell that runs sudo, before sudo runs, so...
A couple of points: - I'm not fan of limiting this to clush. Sometimes you need nodeset/cluset to "delegate" the work (think [milkcheck](https://github.com/cea-hpc/milkcheck) or shine; but I'm sure other sites...
1. if you remove the -b clush will not aggregate output (you can also try -bL for "live gathering") 2. You can use the remote hostname within the command, e.g....
There is eventfd support in python so that might be useable for that? You can poll on eventfd and that will call the worker read function, so just use that...
You can make a small script or even a shell function that does that for you: ``` nodegrep() { local SET="$1" shift grep -F "$(nodeset -S'\n' -e "$SET")" "$@" }...
(might want to add -w to the grep, in case you don't pad node numbers, to avoid e.g. `example1` from matching `example102` or whatever)
You can just use different configs in your client's ssh_config using Host blocks? it's probably more practical than whatever configuration scheme we can come up with. It would however apply...
Well, if the point is just only enabling ssh agent on GWs, having an appropriate section that only enables it for gws seems good enough for me (yes it'll be...
Sorry I had missed the previous reply. - re: actively disabling agent forwarding, I'm not sure why we do that, probably performance when we weren't expecting for the remote to...
If the env is already set from the originating shell, then it's just a matter of SendEnv in the ssh client conf (can be done with -o on clush) and...