diff options
author | Dr Scofield | 2008-07-25 16:56:46 +0000 |
---|---|---|
committer | Dr Scofield | 2008-07-25 16:56:46 +0000 |
commit | b5f23b4c9ca33740830ae6637103c4f019bcd782 (patch) | |
tree | d04e497e7d331d4835608c02af25de7d60f98e20 /share | |
parent | * disabling ODE unit tests again.. until the dllnotfound exception is resolv... (diff) | |
download | opensim-SC_OLD-b5f23b4c9ca33740830ae6637103c4f019bcd782.zip opensim-SC_OLD-b5f23b4c9ca33740830ae6637103c4f019bcd782.tar.gz opensim-SC_OLD-b5f23b4c9ca33740830ae6637103c4f019bcd782.tar.bz2 opensim-SC_OLD-b5f23b4c9ca33740830ae6637103c4f019bcd782.tar.xz |
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.
Diffstat (limited to 'share')
-rw-r--r-- | share/python/grid_info.py | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
1 | #!/usr/bin/python | ||
2 | # -*- encoding: utf-8 -*- | ||
3 | import xmlrpclib | ||
4 | |||
5 | # XML-RPC URL (http_listener_port) | ||
6 | gridServerURL = 'http://127.0.0.1:9000' | ||
7 | |||
8 | # instantiate server object | ||
9 | gridServer = xmlrpclib.Server(gridServerURL) | ||
10 | |||
11 | # invoke admin_alert: requires password and message | ||
12 | print gridServer.get_grid_info({}) | ||