RemoteAdmin

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add Category Development)
(RemoteAdmin Commands)
 
(89 intermediate revisions by 24 users not shown)
Line 1: Line 1:
<div style="background-color:#ffa0a0; padding:15px">
+
{{Quicklinks}}
<b>Caution ! The RemoteAdmin feature is unsecured a this time. For testing uses only.</b>
+
</div>
+
  
== How to Setup the Remote Admin ==
+
== Introduction ==
  
=== Setup OpenSim ===
+
RemoteAdmin is an interface for simulators that allows various operations to be executed from outside the simulator.  '''Operations that relate to the simulator itself (e.g teleport user) are always available.  Those that relate to grid services (user creation and updating) are only available in standalone mode.  In grid mode, one has to use ROBUST level [[UserManipulation]] capabilities instead.'''
  
First you should enable the remote admin interface to do so just add the following lines to your OpenSim.ini file:
+
== How to Setup the Remote Admin interface ==
 +
 
 +
First you should enable the remote admin interface to do so just add the following lines to your OpenSim.ini file Port should be set to a nonzero value to have the remote admin on a different port
 +
 
 +
As of r/16843 you can limit access to remote admin to specific IP addresses by using the optional access_ip_addresses. You can list all IP's allowed to access remote admin by seperating each IP by a comma. If access_ip_addresses isn't set, then all IP addresses can access RemoteAdmin.
  
 
  [RemoteAdmin]
 
  [RemoteAdmin]
 
  enabled = true
 
  enabled = true
 
  access_password = secret
 
  access_password = secret
 +
enabled_methods = all
  
=== Exemple in Python ===
+
See OpenSim.ini.example in the OpenSimulator distribution for more details.
# Author  : DrScofield
+
 
# Source  : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/
+
=== Further options ===
# License : BSD License
+
 
   
+
You can also specify a different port for the XMLRPCAdmin command listener from the default simulator HTTP port
  #!/usr/bin/python 
+
 
import xmlrpclib 
+
  [RemoteAdmin]
 
+
  port = <port-number>
# 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 ==
 
== RemoteAdmin Commands ==
<table border="1" cellspacing="0" cellpadding="4">
+
<div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid">
<tr>
+
'''Caution ! All commands using parameters for the uuid of a region use "region_id" as parameter. All other parameters eg. region_uuid or regionID will be removed after June 2012'''
  <th>Name</th>
+
</div>
  <th>Status</th>
+
 
  <th>Description</th> 
+
=== Agent management ===
</tr>
+
*[[Remoteadmin:admin teleport agent|admin_teleport_agent]]
<tr>
+
*[[Remoteadmin:admin get agents|admin_get_agents]] (post OpenSimulator 0.7.5)
  <td>[[remoteadmin:admin_create_region | admin_create_region]]</td>
+
 
  <td></td>
+
=== User account management ===
  <td>Create a new region</td>
+
*[[RemoteAdmin:admin create user|admin_create_user]]
</tr>
+
*[[RemoteAdmin:admin create user email|admin_create_user_email]]
<tr>
+
*[[RemoteAdmin:admin exists user|admin_exists_user]]  
<td>[[remoteadmin:admin_shutdown | admin_shutdown]]</td>
+
*[[RemoteAdmin:admin update user|admin_update_user]]
<td></td>
+
*[[RemoteAdmin:admin authenticate user|admin_authenticate_user]] (not in 0.7.6.1)
<td>Shut down the region</td>
+
 
</tr>
+
=== Object management ===
<tr>
+
 
<td>[[remoteadmin:admin_broadcast| admin_broadcast]]</td>
+
=== Parcel management ===
<td></td>
+
 
<td>Send a general alert</td>
+
=== Region management ===
</tr>
+
*[[RemoteAdmin:admin broadcast|admin_broadcast]]  
<tr>
+
*[[RemoteAdmin:admin close region|admin_close_region]]
<td>[[remoteadmin:admin_restart| admin_restart]]</td>
+
*[[RemoteAdmin:admin create region|admin_create_region]]
<td></td>
+
*[[RemoteAdmin:admin delete region|admin_delete_region]]
<td>Restart OpenSim</td>
+
*[[RemoteAdmin:admin modify region|admin_modify_region]]
</tr>
+
*[[RemoteAdmin:admin region query|admin_region_query]]
<tr>
+
*[[RemoteAdmin:admin restart|admin_restart]]  
<td>[[remoteadmin:admin_load_heightmap| admin_load_heightmap]]</td>
+
*[[RemoteAdmin:admin shutdown|admin_shutdown]]
<td></td>
+
 
<td>Load Height Map...</td>
+
=== Region file management ===
</tr>
+
* [[RemoteAdmin:admin load heightmap|admin_load_heightmap]]
<tr>
+
* [[RemoteAdmin:admin load oar|admin_load_oar]]
<td>[[remoteadmin:admin_create_user| admin_create_user]]</td>
+
* [[RemoteAdmin:admin load xml|admin_load_xml]]
<td></td>
+
* [[RemoteAdmin:admin save heightmap|admin_save_heightmap]]
<td>Create a new user</td>
+
* [[RemoteAdmin:admin save oar|admin_save_oar]]
</tr>
+
* [[RemoteAdmin:admin save xml|admin_save_xml]]
<tr>
+
 
<td>[[remoteadmin:admin_load_xml| admin_load_xml]]</td>
+
=== Region access management ===
<td></td>
+
* [[RemoteAdmin:admin acl list|admin_acl_list]]
<td>Execute the Load XML command</td>
+
* [[RemoteAdmin:admin acl clear|admin_acl_clear]]
</tr>
+
* [[RemoteAdmin:admin acl add|admin_acl_add]]  
</table>
+
* [[RemoteAdmin:admin acl remove|admin_acl_remove]]
 +
 
 +
=== Estate management ===
 +
* [[RemoteAdmin:admin estate reload|admin_estate_reload]]
 +
 
 +
=== Administration ===
 +
* [[RemoteAdmin:admin console command|admin_console_command]]
 +
 
 +
=== Misc (Undocumented) ===
 +
* [[RemoteAdmin:admin dialog|admin_dialog]]
 +
* [[RemoteAdmin:admin reset land|admin_reset_land]]
 +
* [[RemoteAdmin:admin refresh search|admin_refresh_search]]
 +
* [[RemoteAdmin:admin refresh map|admin_refresh_map]]
 +
* [[RemoteAdmin:admin get opensim version|admin_get_opensim_version]]
 +
* [[RemoteAdmin:admin get agent count|admin_get_agent_count]]
  
== Credits ==
+
== Subcategories ==
Thanks to DrScofield for the Python Script
+
Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/
+
  
 +
* [[RemoteAdmin:RemoteAdmin Examples|RemoteAdmin Examples]]
 +
* [[RemoteAdmin:RemoteAdmin Proposals|RemoteAdmin Proposals]]
 +
* [[RemoteAdmin:RemoteAdmin Standards|RemoteAdmin Standards]]
 +
* [[RemoteAdmin:RemoteAdmin Implement new command|RemoteAdmin How to implement new commands]]
 +
* [[RemoteAdmin:RemoteAdmin Class|RemoteAdmin Class]]
  
 
[[Category:Development]]
 
[[Category:Development]]
 +
[[Category:RemoteAdmin]]

Latest revision as of 13:24, 14 April 2017

Contents

[edit] Introduction

RemoteAdmin is an interface for simulators that allows various operations to be executed from outside the simulator. Operations that relate to the simulator itself (e.g teleport user) are always available. Those that relate to grid services (user creation and updating) are only available in standalone mode. In grid mode, one has to use ROBUST level UserManipulation capabilities instead.

[edit] How to Setup the Remote Admin interface

First you should enable the remote admin interface to do so just add the following lines to your OpenSim.ini file Port should be set to a nonzero value to have the remote admin on a different port

As of r/16843 you can limit access to remote admin to specific IP addresses by using the optional access_ip_addresses. You can list all IP's allowed to access remote admin by seperating each IP by a comma. If access_ip_addresses isn't set, then all IP addresses can access RemoteAdmin.

[RemoteAdmin]
enabled = true
access_password = secret
enabled_methods = all

See OpenSim.ini.example in the OpenSimulator distribution for more details.

[edit] Further options

You can also specify a different port for the XMLRPCAdmin command listener from the default simulator HTTP port

[RemoteAdmin]
port = <port-number>

[edit] RemoteAdmin Commands

Caution ! All commands using parameters for the uuid of a region use "region_id" as parameter. All other parameters eg. region_uuid or regionID will be removed after June 2012

[edit] Agent management

[edit] User account management

[edit] Object management

[edit] Parcel management

[edit] Region management

[edit] Region file management

[edit] Region access management

[edit] Estate management

[edit] Administration

[edit] Misc (Undocumented)

[edit] Subcategories

Personal tools
General
About This Wiki