jablonka.czprosek.czf

netmap

Subversion Repositories:
[/] [gen_stats_ospf] - Diff between revs 120 and 132

Show entire file Ignore whitespace

Rev 120 Rev 132
Line 12... Line 12...
NAME=jablonecka NAME=jablonecka
   
DATABASE=$STATS_PATH_DATA/$NAME.link DATABASE=$STATS_PATH_DATA/$NAME.link
   
$STATS_PATH/gen_ospf_link.pl \ $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|hexa|virtuozzo" \ | grep -Ev "infinity|atom|10.33|olive|hexa|virtuozzo|sitelka" \
> $DATABASE.ospf > $DATABASE.ospf
   
   
# #
# jikos: # jikos:
# check if there is any of the [jabu,hasit,jab715 ; jgw,ogw,sitelka] links alive # check if there is any of the [jabu,hasit,jab715 ; jgw,ogw,sitelka] links alive
# (workaround for the script not being able to cope with 3Way/DRother links) # (workaround for the script not being able to cope with 3Way/DRother links)
# #
# sitelka is the Full/DR one # sitelka is the Full/DR one
grep -E '92;jabu;sitelka|92;hasit;sitelka|92;jab715;sitelka' $DATABASE.ospf >/dev/null 2>&1 grep -E '92;hasit;sitelka|92;jab715;sitelka' $DATABASE.ospf >/dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
cat $DATABASE.ospf | grep -Ev '82;jabu;jgw;|82;jabu;ogw;|82;hasit;jgw|82;hasit;ogw;|82;jab715;jgw;|82;jab715;ogw;' > $DATABASE.ospfA cat $DATABASE.ospf | grep -Ev '82;hasit;jgw|82;hasit;ogw;|82;jab715;jgw;|82;jab715;ogw;' > $DATABASE.ospfA
mv $DATABASE.ospfA $DATABASE.ospf mv $DATABASE.ospfA $DATABASE.ospf
fi fi
# jgw is the Full/DR one # jgw is the Full/DR one
grep -E '92;jab715;jgw|92;jabu;jgw|92;hasit;jgw' $DATABASE.ospf >/dev/null 2>&1 grep -E '92;jab715;jgw|92;hasit;jgw' $DATABASE.ospf >/dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
cat $DATABASE.ospf | grep -Ev '82;jabu;sitelka;|82;jabu;ogw;|82;hasit;sitelka|82;hasit;ogw;|82;jab715;sitelka;|82;jab715;ogw;|82;hasit;jab715;' > $DATABASE.ospfA cat $DATABASE.ospf | grep -Ev '82;hasit;sitelka|82;hasit;ogw;|82;jab715;sitelka;|82;jab715;ogw;|82;hasit;jab715;' > $DATABASE.ospfA
mv $DATABASE.ospfA $DATABASE.ospf mv $DATABASE.ospfA $DATABASE.ospf
fi fi
# ogw is the Full/DR one # ogw is the Full/DR one
grep -E '92;jab715;ogw|92;jabu;ogw|92;ogw;hasit' $DATABASE.ospf >/dev/null 2>&1 grep -E '92;jab715;ogw|92;ogw;hasit' $DATABASE.ospf >/dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
cat $DATABASE.ospf | grep -Ev '82;jabu;sitelka;|82;jabu;jgw;|82;hasit;sitelka|82;hasit;jgw;|82;jab715;sitelka;|82;jab715;jgw;' > $DATABASE.ospfA cat $DATABASE.ospf | grep -Ev '82;hasit;sitelka|82;hasit;jgw;|82;jab715;sitelka;|82;jab715;jgw;' > $DATABASE.ospfA
  mv $DATABASE.ospfA $DATABASE.ospf
  fi
  # jab414 is the Full/DR one
  grep -E '92;jab414;jgw|92;jab414;ogw' $DATABASE.ospf >/dev/null 2>&1
  if [ $? -eq 0 ]; then
  cat $DATABASE.ospf | grep -Ev '82;hasit;jgw;' > $DATABASE.ospfA
mv $DATABASE.ospfA $DATABASE.ospf mv $DATABASE.ospfA $DATABASE.ospf
fi fi
   
  #
  # jikos: remove some confusing / temporary peers (routers with not regular router-id)
  #
  #
  cat $DATABASE.ospf | grep -Ev 'jabtv|arista-test|jablonecka' > $DATABASE.ospfA
  mv $DATABASE.ospfA $DATABASE.ospf
   
cat $DATABASE.basic | grep -v "^00" > $DATABASE cat $DATABASE.basic | grep -v "^00" > $DATABASE
cat $DATABASE.ospf >> $DATABASE cat $DATABASE.ospf >> $DATABASE
   
   

Powered by WebSVN 2.2.1