From b5f23b4c9ca33740830ae6637103c4f019bcd782 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 25 Jul 2008 16:56:46 +0000 Subject: first cut at a GridInfo plugin (mantis #1825). Currently just spits out everything in the [GridInfo] section :-D Also, not yet LLSD but XmlRpc, LLSD via GET will follow. OpenSim.ini.example contains sample values and explanation. Oh, and default values provided are platform: OpenSim mode: standalone | grid have fun. --- share/python/grid_info.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 share/python/grid_info.py (limited to 'share/python') diff --git a/share/python/grid_info.py b/share/python/grid_info.py new file mode 100644 index 0000000..8a89328 --- /dev/null +++ b/share/python/grid_info.py @@ -0,0 +1,12 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +import xmlrpclib + +# XML-RPC URL (http_listener_port) +gridServerURL = 'http://127.0.0.1:9000' + +# instantiate server object +gridServer = xmlrpclib.Server(gridServerURL) + +# invoke admin_alert: requires password and message +print gridServer.get_grid_info({}) -- cgit v1.1