RemoteAdmin

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Change python exemple license to BSD)
Line 15: Line 15:
 
  # 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
 
  # License : BSD License
 
+
 
  #!/usr/bin/python   
 
  #!/usr/bin/python   
 
  import xmlrpclib   
 
  import xmlrpclib   
Line 29: Line 29:
  
 
== RemoteAdmin Commands ==
 
== RemoteAdmin Commands ==
 
+
<table border="1" cellspacing="0" cellpadding="4">
* [[remoteadmin:admin_create_region | admin_create_region]]
+
<tr>
 
+
  <th>Name</th>
* [[remoteadmin:admin_shutdown | admin_shutdown]]
+
  <th>Status</th>
 
+
  <th>Description</th> 
* [[remoteadmin:admin_broadcast| admin_broadcast]]
+
</tr>
 
+
<tr>
* [[remoteadmin:admin_restart| admin_restart]]
+
  <td>[[remoteadmin:admin_create_region | admin_create_region]]</td>
 
+
  <td></td>
* [[remoteadmin:admin_broadcast| admin_broadcast]]
+
  <td>Create a new region</td>
 
+
</tr>
* [[remoteadmin:admin_load_heightmap| admin_load_heightmap]]
+
<tr>
 
+
<td>[[remoteadmin:admin_shutdown | admin_shutdown]]</td>
* [[remoteadmin:admin_create_user| admin_create_user]]
+
<td></td>
 
+
<td></td>
* [[remoteadmin:admin_load_xml| admin_load_xml]]
+
</tr>
 
+
<tr>
 +
<td>[[remoteadmin:admin_broadcast| admin_broadcast]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>[[remoteadmin:admin_restart| admin_restart]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>[[remoteadmin:admin_broadcast| admin_broadcast]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>[[remoteadmin:admin_load_heightmap| admin_load_heightmap]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>[[remoteadmin:admin_create_user| admin_create_user]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
<tr>
 +
<td>[[remoteadmin:admin_load_xml| admin_load_xml]]</td>
 +
<td></td>
 +
<td></td>
 +
</tr>
 +
</table>
  
 
== Credits ==
 
== Credits ==
 
Thanks to DrScofield for the Python Script
 
Thanks to DrScofield for the Python Script
 
Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/
 
Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/

Revision as of 07:41, 6 March 2008

This is a draft page about RemoteAdmin and XMLRPC commands.

Contents

 [hide

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

Name Status Description
admin_create_region Create a new region
admin_shutdown
admin_broadcast
admin_restart
admin_broadcast
admin_load_heightmap
admin_create_user
admin_load_xml

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