Commit cdf06f14 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

new parameter tcptraceroute_port

parent 6fa781df
Pipeline #49633 passed with stages
in 55 seconds
......@@ -13,10 +13,11 @@ else
hop_parm=""
fi
while test $hour -ge $phour; do # do until midnight
start_epoch=$(date +%s)
date "+%s starttime %T" | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
$tcptrace_bin -q 6 -n $1 $hop_parm 2> /dev/null | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
$tcptrace_bin -q 6 -n $1 $hop_parm $tcptraceroute_port 2> /dev/null | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
end_epoch=$(date +%s)
rest=$(($traceroute_interval - ( $end_epoch - $start_epoch) - 5))
......
......@@ -5,6 +5,7 @@ export LANG=C
export LC_ALL=C
crude_port=10001
tcptraceroute_port=22
rsync_interval=10 # seconds start for exponential increase 2**repeat
rsync_repeat=12 # 11 hours for the last
traceroute_interval=60
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment