netmap |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/sh
# (c)2003 by Jan Krupa (krupaj@mobilnews.cz)
# http://www.mobilnews.cz/honza/
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
export PATH
STATS_PATH=/home/www/cgi-bin/netmap
STATS_PATH_DATA=$STATS_PATH/data
NAME=jablonecka
DATABASE=$STATS_PATH_DATA/$NAME.link
$STATS_PATH/gen_ospf_link.pl \
| grep -Ev "infinity|atom|10.33.72.78|10.33.30.16|10.33.0.72|10.33.25.242|olive" \
| grep -Ev "82;jabap;ogw;|82;jabap;jgw;|82;ogw;jabap|82;jgw;jabap;" \
| grep -Ev "82;jabu;ogw;|82;jabu;jgw;|82;ogw;jabu|82;jgw;jabu;" \
| grep -Ev "82;hasit;ogw;|82;hasit;jgw;|82;ogw;hasit|82;jgw;hasit;" \
> $DATABASE.ospf
cat $DATABASE.basic | grep -v "^00" > $DATABASE
cat $DATABASE.ospf >> $DATABASE
for LINE in `/bin/ls -1 $STATS_PATH_DATA | /bin/grep .config`; do
$STATS_PATH/gen_onestatpict `/bin/echo $LINE | /bin/awk -F. '{ printf "%s", $1 }'` &>/dev/null
done
convert /home/www/html/netmap/out/jablonecka.png -resize 160x95 /home/www/html/wm/images/prosek_netmap.png
convert /home/www/html/netmap/out/jablonecka.png -resize 660x440 /home/www/html/wm/images/netmap.jpg