Re: Search for porterbox machines on the command line
Peter Palfrader writes ("Re: Search for porterbox machines on the command line"):
> On Fri, 13 Jun 2014, Jon Bernard wrote:
> > https://github.com/jbernard/porterbox
>
> Ick.
I agree. But...
> I usually just spell that "ldapsearch".
> ldapsearch -h db.debian.org -x -b dc=debian,dc=org 'purpose=porterbox'
...
> ldapsearch -h db.debian.org -x -b dc=debian,dc=org 'purpose=porterbox' hostname architecture -LLL | \
> egrep 'hostname|architecture|^$' | \
> awk '$1 == "architecture:" { a = $2}; $1 == "hostname:" { h = $2}; !NF && h ~ /debian.org/ {printf "%-20s %s\n", h, a; a=""; h=""} ' | \
> sort
Ick.
Perhaps some of this could be put into devscripts ?
Ian.
Reply to: