mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
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.
This commit is contained in:
12
share/python/grid_info.py
Normal file
12
share/python/grid_info.py
Normal file
@@ -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({})
|
||||
Reference in New Issue
Block a user