RemoteAdmin

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add Category Development)
(Exemple in Python: corrected typo on Exemple)
Line 13: Line 13:
 
  access_password = secret
 
  access_password = secret
  
=== Exemple in Python ===
+
=== Example in Python ===
 
  # 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/
Line 28: Line 28:
 
    
 
    
 
  # invoke admin_alert: requires password and message   
 
  # invoke admin_alert: requires password and message   
  gridServer.admin_broadcast({’password’: ’secret’,  ‘message’: ‘the answer is 42′})  
+
  gridServer.admin_broadcast({’password’: ’secret’,  ‘message’: ‘the answer is 42′})
  
 
== RemoteAdmin Commands ==
 
== RemoteAdmin Commands ==

Revision as of 03:39, 7 March 2008

Caution ! The RemoteAdmin feature is unsecured a this time. For testing uses only.

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

Example 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

Name Status Description
admin_create_region Create a new region
admin_shutdown Shut down the region
admin_broadcast Send a general alert
admin_restart Restart OpenSim
admin_load_heightmap Load Height Map...
admin_create_user Create a new user
admin_load_xml Execute the Load XML command

Credits

Thanks to DrScofield for the Python Script Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/

Personal tools
General
About This Wiki