Mercurial > hg > anonet-resdb
view contrib/anocheck/test.sh @ 1186:98707534e274 draft
added a chan domain. changed some marc stuff. anocheck script for watching for ASN downages.
author | epoch <epoch@hacking.allowed.ano> |
---|---|
date | Wed, 01 Jun 2016 22:24:29 +0000 |
parents | |
children |
line wrap: on
line source
#!/bin/sh mkdir -p /var/cache/anocheck /usr/local/libexec/bgp-paths.sh 4141 AN_out | tr ' ' '\n' | sort | uniq > /var/cache/anocheck/ASN.$(date +%s) ls -rt /var/cache/anocheck/ASN.* | tail -r | tail -n+3 | xargs rm ls -rt /var/cache/anocheck/ASN.* | tail -n2 | xargs diff #this is nifty for hand-checks #ls -rt /var/cache/anocheck/ASN.* | tail -n2 | xargs diff -s