Commit bcab861c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 334ba1ee
...@@ -490,19 +490,18 @@ cmd_bench_cluster() { ...@@ -490,19 +490,18 @@ cmd_bench_cluster() {
url=$1 url=$1
test -z "$url" && die "Usage: neotest bench-cluster [user@]<host>:<path>" test -z "$url" && die "Usage: neotest bench-cluster [user@]<host>:<path>"
#echo -e ">>> bench-cluster $url" echo -e ">>> bench-cluster $url"
#echo -e "\n# server:" echo -e "\n# server:"
#header header
#echo -e "\n# client:" echo -e "\n# client:"
#on $url ./neotest info-local on $url ./neotest info-local
echo -e "\n# link latency:" echo -e "\n# link latency:"
peer=`python -c "import urlparse as p; u=p.urlparse(\"scheme://$url\"); print u.hostname"` peer=`python -c "import urlparse as p; u=p.urlparse(\"scheme://$url\"); print u.hostname"`
echo "# `hostname`$peer" echo -e "# `hostname`$peer"
ping -i200 -w 3 -q $peer # XXX 200 -> 0 sudo -n ping -i0 -w 3 -q $peer || echo "# skipped -> enable ping in sudo for `whoami`@`hostname`"
echo "# $peer`hostname`" echo -e "\n# $peer`hostname`"
on $url "ping -i200 -w3 -q \$(echo \${SSH_CONNECTION%% *})" # XXX 200 -> 0 on $url "sudo -n ping -i0 -w3 -q \$(echo \${SSH_CONNECTION%% *}) || echo \\\"# skipped -> enable ping in sudo for \`whoami\`@\`hostname\`\\\""
return
echo echo
install_trap install_trap
......
Markdown is supported
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