RemoteAdmin
From OpenSimulator
(Difference between revisions)
(New page: <b>This is a draft page about RemoteAdmin and XMLRPC commands.</b> <font color="red"> Waiting the authorisation for BSD licence on the python code from DrScofield. </font> == How to Setu...) |
(Change python exemple license to BSD) |
||
Line 1: | Line 1: | ||
<b>This is a draft page about RemoteAdmin and XMLRPC commands.</b> | <b>This is a draft page about RemoteAdmin and XMLRPC commands.</b> | ||
− | |||
− | |||
− | |||
− | |||
== How to Setup the Remote Admin == | == How to Setup the Remote Admin == | ||
Line 18: | Line 14: | ||
# Author : DrScofield | # Author : DrScofield | ||
# Source : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/ | # Source : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/ | ||
− | # | + | # License : BSD License |
− | + | ||
− | + | ||
#!/usr/bin/python | #!/usr/bin/python | ||
import xmlrpclib | import xmlrpclib |
Revision as of 06:33, 6 March 2008
This is a draft page about RemoteAdmin and XMLRPC commands.
Contents |
How to Setup the Remote Admin
Setup OpenSim
First you should enable the remote admin interface to do so just add the following lines to your OpenSim.ini file:
[RemoteAdmin] enabled = true access_password = secret
Exemple in Python
# Author : DrScofield # Source : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/ # License : BSD License
#!/usr/bin/python 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 gridServer.admin_broadcast({’password’: ’secret’, ‘message’: ‘the answer is 42′})
RemoteAdmin Commands
Credits
Thanks to DrScofield for the Python Script Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/