share your scripts

jg71 jg71 at p8d.org
Thu Oct 7 18:13:44 UTC 2021


let's share our scripts we have running to monitor / assess the health of
our grids, etc. I managed to locate 2 versions of basically the same
script in my backups (thanks Kevin, i think?); there's great love for aliases:

a)
#!/bin/sh

for item in `tahoe list-aliases | cut -f 1 -d :`; do
    echo '*** '"$item"
    #tahoe deep-check --repair --add-lease $item: | perl -pe 's/^/\t/'
    tahoe deep-check -v --repair $item: | perl -pe 's/^/\t/'
    tahoe deep-check -v --add-lease $item: | perl -pe 's/^/\t/'
    echo
done

b)
#!/bin/sh
exit
echo "tahoe deep-check -v --repair --add-lease \$item: | perl -pe 's/^/\t/'"

for item in `tahoe list-aliases | cut -f 1 -d :`; do
    echo '*** '"$item"
    lynx --dump http://localhost:12345/ | grep "No " > /dev/null && \
    (echo "at least one node is down, aborting" ; exit )  || \
    tahoe deep-check -v --repair --add-lease $item: | perl -pe 's/^/\t/'
    echo
done

what's your experience? approach to do better? have you spotted the
annoying fact?  :)

looking fwd to your input.

-- 
 jg71


More information about the tahoe-dev mailing list