Client script for statistics.

bzr revid: p_christ@hol.gr-20091028003103-1mxviwpnp52j22tw
This commit is contained in:
P. Christeas 2009-10-28 02:31:03 +02:00
parent 879199c6b7
commit 51a2cf93d0
1 changed files with 19 additions and 0 deletions

19
get-srvstats.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# ADMIN_PASSWD='admin'
method_1() {
cat '-' << EOF
<xml>
<methodCall>
<methodName>get_stats</methodName>
<params>
</params>
</methodCall>
EOF
}
LEVEL=10
if [ -n "$1" ] ; then LEVEL=$1 ; fi
method_1 $LEVEL | POST -c 'text/xml' http://localhost:8069/xmlrpc/common
#eof