[wsas-java-dev] Scriptable admin client

Afkham Azeez azeez at wso2.com
Wed Apr 4 03:36:07 PDT 2007


I've written an admin script(admin.sh) for Node Management. Anybody can
use this to write their own scripts to carry out Node Management
functionality. I've added a sample that demonstrates how to write a
simple script for unloading two service groups. See the sample below.

Please send your feedback on this approach.

-----------------------------------------------------------------------------------------
#!/bin/sh

EPR=http://10.100.1.118:9762/services/WSO2WSASNodeManager

./admin.sh --epr $EPR --operation unloadsg --service-group echo
if [ "$?" = "0" ]; then
     ./admin.sh --epr $EPR --operation unloadsg --service-group version
     if [ "$?" = "0" ]; then
            ./admin.sh --epr $EPR --operation commit
            echo Successfully committed.
     else
            echo Unloading service group "Version" failed
     fi
else
     echo Unloading service group "Echo" failed
fi
-------------------------------------------------------------------------------------------

-- 
Afkham Azeez
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

http://www.wso2.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://wso2.org/pipermail/wsas-java-dev/attachments/20070404/b19b26e4/signature.pgp


More information about the Wsas-java-dev mailing list