profiling: adding a dump_node

This commit is contained in:
Steve Schnepp 2013-02-27 09:59:15 +01:00
parent e5ceabe428
commit 97fdf4b33b
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#! /bin/sh
NODE=${1:-localhost}
PORT=${2:-4949}
{
for plugin in $(echo "list" | nc $NODE $PORT | tail -n 1)
do
echo "config $plugin"
echo "fetch $plugin"
done
echo "quit"
} | nc $NODE $PORT