Existem invólucros paralelos do ssh - aqui estão alguns que eu encontrei no CentOS7 / EPEL:
Name : pssh Repo : epel/x86_64 Summary : Parallel SSH tools URL : http://code.google.com/p/parallel-ssh/ License : BSD Description : This package provides various parallel tools based on ssh and scp. : Parallell version includes: : o ssh : pssh : o scp : pscp : o nuke : pnuke : o rsync : prsync : o slurp : pslurp Name : pdsh Repo : epel/x86_64 Summary : Parallel remote shell program URL : https://pdsh.googlecode.com/ License : GPLv2+ Description : Pdsh is a multithreaded remote shell client which executes commands : on multiple remote hosts in parallel. Pdsh can use several different : remote shell services, including standard "rsh", Kerberos IV, and ssh. Name : mpssh Repo : epel/x86_64 Summary : Parallel ssh tool URL : https://github.com/ndenev/mpssh License : BSD Description : mpssh is a parallel ssh tool. What it does is connecting to a number of hosts : specified in the hosts file and execute the same command on all of them
Assim, você pode usar esse script para consultar os sistemas remotos através do ssh para obter o espaço em disco e, em seguida, avaliar quais limpar e quais usar como destino.