... | ... | @@ -786,7 +786,7 @@ As a bonus, this query will show the number of hosts running each release: |
|
|
|
|
|
* Using LDAP:
|
|
|
|
|
|
HOSTS=$(ssh alberti.torproject.org 'ldapsearch -h db.torproject.org -x -ZZ -b dc=torproject,dc=org -LLL "hostname=*.torproject.org" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort')
|
|
|
HOSTS=$(ssh alberti.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b dc=torproject,dc=org -LLL "hostname=*.torproject.org" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort')
|
|
|
for i in `echo $HOSTS`; do mkdir hosts/x-$i 2>/dev/null || continue; echo $i; ssh $i ' ...'; done
|
|
|
|
|
|
the `mkdir` is so that I can run the same command in many terminal
|
... | ... | |