Mercurial > hg > anonet-resdb
comparison 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 |
comparison
equal
deleted
inserted
replaced
1185:97ed67f3a20d | 1186:98707534e274 |
---|---|
1 #!/bin/sh | |
2 mkdir -p /var/cache/anocheck | |
3 /usr/local/libexec/bgp-paths.sh 4141 AN_out | tr ' ' '\n' | sort | uniq > /var/cache/anocheck/ASN.$(date +%s) | |
4 ls -rt /var/cache/anocheck/ASN.* | tail -r | tail -n+3 | xargs rm | |
5 ls -rt /var/cache/anocheck/ASN.* | tail -n2 | xargs diff | |
6 #this is nifty for hand-checks | |
7 #ls -rt /var/cache/anocheck/ASN.* | tail -n2 | xargs diff -s |