Skip to content

Commit

Permalink
support for pinging mservers list
Browse files Browse the repository at this point in the history
  • Loading branch information
ssundaresan committed Mar 23, 2012
1 parent 9dfcdaf commit 8de239b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions device/OpenWrt_common/etc/bismark-active.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ACTIVE_CONF_URL=https://"$ACTIVE_CONF_SERVER"/bismark/active-conf/"$DEVICE_ID"-a
#URL to get ping_targets.list
PING_TARGETS_URL=https://"$ACTIVE_CONF_SERVER"/bismark/active/ping_targets.list

#URL to get mservers.list
MSERVERS_URL=https://"$ACTIVE_CONF_SERVER"/bismark/active/mservers.list

#URL to get dns_targets.list
DNS_TARGETS_URL=https://"$ACTIVE_CONF_SERVER"/bismark/active/dns_targets.list

Expand Down
5 changes: 4 additions & 1 deletion device/OpenWrt_common/scripts/bismark-measure-active
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ if get_target Bismark PING $ZONE 10 ; then
fi
# MServer RTT
"$BROOT"/usr/bin/bismark-ping $dst | "$BROOT"/usr/bin/bismark-mstats RTT PING $src $dst >> $XML_FILE
if [ $count -eq 0 ]; then
"$BROOT"/usr/bin/bismark-fping /tmp/bismark/mservers.list $src >> $XML_FILE
fi
#"$BROOT"/usr/bin/bismark-ping $dst | "$BROOT"/usr/bin/bismark-mstats RTT PING $src $dst >> $XML_FILE
fi
# DNS delay and failure
Expand Down
1 change: 1 addition & 0 deletions device/OpenWrt_common/scripts/bismark-measure-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ else
dl_file $PING_TARGETS_URL /tmp/bismark/ping_targets.list
#wget -O /tmp/bismark/dns_targets.list $DNS_TARGETS_URL
dl_file $DNS_TARGETS_URL /tmp/bismark/dns_targets.list
dl_file $MSERVERS_URL /tmp/bismark/mservers.list
date +%s > $LOCKFILE
"$BROOT"/usr/bin/bismark-measure-active
rm $LOCKFILE
Expand Down

0 comments on commit 8de239b

Please sign in to comment.