On 05/03/2018 10:49 AM, Dridi Boukelmoune wrote: >> Illustrated example: varnishadm backend.list output >> >> Backend name Admin Probe Last change >> boot.b1 probe 0/8 bad Wed, 02 May 2018 13:22:10 >> GMT >> boot.b2 probe 8/8 good Wed, 02 May 2018 13:22:10 >> GMT >> boot.b3 healthy 1/8 bad Wed, 02 May 2018 13:22:10 >> GMT >> boot.b4 healthy - Wed, 02 May 2018 13:22:10 >> GMT >> boot.b5 sick 7/8 good Wed, 02 May 2018 13:22:10 >> GMT >> boot.b6 sick - Wed, 02 May 2018 13:22:10 >> GMT >> boot.b7 disabled 7/8 good Wed, 02 May 2018 13:22:10 >> GMT >> boot.b8 deleted - Wed, 02 May 2018 13:22:10 >> GMT >> boot.d1 dependent - Wed, 02 May 2018 13:22:10 >> GMT >> boot.d2 probe 3/4 good Wed, 02 May 2018 13:22:10 >> GMT > > We should make this output a bit more functional if we're going to > break the output.
[...] > Example: > >> Name Type Health Probe State Comment Last change >> boot.www1 std auto none good - Wed, 02 May 2018 >> 13:22:10 GMT >> boot.www2 std sick none bad - Wed, 02 May 2018 >> 13:22:10 GMT >> boot.www fallback auto cluster good - Wed, 02 May 2018 >> 13:22:10 GMT > > The idea is to avoid blanks inside columns (except "last change/updated") > to make it more friendly to a ny column oriented toollike /bin/sh's `read` or > awk's fields. I would also suggest ISO 8601 format for the 'Last change' column, to make it more easily parseable: 2018-05-02T13:22:10Z Then every whitespace-separated field corresponds to a data column. Best, Geoff -- ** * * UPLEX - Nils Goroll Systemoptimierung Scheffelstraße 32 22301 Hamburg Tel +49 40 2880 5731 Mob +49 176 636 90917 Fax +49 40 42949753 http://uplex.de
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-dev mailing list varnish-dev@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev