From f9cfb5c83673e2605507c63642e7d78320d3a107 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 2 Sep 2010 13:15:49 +0200 Subject: [PATCH] display configuration and log of FreeRadius servers --- testing/do-tests.in | 42 +++++++++++++++++++++++++++++++++ testing/scripts/load-testconfig | 12 ++++++++++ 2 files changed, 54 insertions(+) diff --git a/testing/do-tests.in b/testing/do-tests.in index 2a869515d..5419916ed 100755 --- a/testing/do-tests.in +++ b/testing/do-tests.in @@ -521,6 +521,48 @@ do done + for host in $RADIUSHOSTS + do + eval HOSTLOGIN=root@\$ipv4_${host} + + for file in clients.conf eap.conf radiusd.conf proxy.conf users + do + scp $HOSTLOGIN:/etc/raddb/$file \ + $TESTRESULTDIR/${host}.$file > /dev/null 2>&1 + done + + scp $HOSTLOGIN:/var/log/radius/radius.log \ + $TESTRESULTDIR/${host}.radius.log > /dev/null 2>&1 + + chmod a+r $TESTRESULTDIR/* + cat >> $TESTRESULTDIR/index.html <<@EOF +

$host

+ + + + + + +
+ + + + + +
+@EOF + + done + cat >> $TESTRESULTDIR/index.html <<@EOF diff --git a/testing/scripts/load-testconfig b/testing/scripts/load-testconfig index 8dd3069f6..3880e300f 100755 --- a/testing/scripts/load-testconfig +++ b/testing/scripts/load-testconfig @@ -60,3 +60,15 @@ do ssh $HOSTLOGIN 'rm -f /var/log/auth.log /var/log/daemon.log; \ kill -SIGHUP `cat /var/run/syslogd.pid`' > /dev/null 2>&1 done + + +########################################################################## +# clear radius.log on FreeRadius servers +# + +for host in $RADIUSHOSTS +do + eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`" + ssh $HOSTLOGIN 'rm -f /var/log/radius/radius.log; \ + kill -SIGHUP `cat /var/run/syslogd.pid`' > /dev/null 2>&1 +done