RemoteAdmin

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(How to Setup the Remote Admin)
(RemoteAdmin Commands)
 
(86 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<div style="background-color:#ffa0a0; padding:15px">
+
{{Quicklinks}}
<b>Caution ! The RemoteAdmin feature is unsecured at 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
  
=== Example 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/
+
# 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′})
+
  
=== Example in PHP ===
+
=== Further options ===
  
This example needs the RemoteAdmin PHP Class file available [http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass here].
+
You can also specify a different port for the XMLRPCAdmin command listener from the default simulator HTTP port
  
<pre>
+
[RemoteAdmin]
<?php
+
port = <port-number>
  
// Author  : Olish Newman
+
== RemoteAdmin Commands ==
// Source  : http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass
+
<div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid">
// Licence : BSD License
+
'''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'''
 +
</div>
  
// Including the RemoteAdmin PHP class. It can be downloaded from the link above.
+
=== Agent management ===
include('RemoteAdmin.php');
+
*[[Remoteadmin:admin teleport agent|admin_teleport_agent]]
 +
*[[Remoteadmin:admin get agents|admin_get_agents]] (post OpenSimulator 0.7.5)
  
// Instantiate the class with parameters identical to the Python example above
+
=== User account management ===
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');
+
*[[RemoteAdmin:admin create user|admin_create_user]]
 +
*[[RemoteAdmin:admin create user email|admin_create_user_email]]
 +
*[[RemoteAdmin:admin exists user|admin_exists_user]]
 +
*[[RemoteAdmin:admin update user|admin_update_user]]
 +
*[[RemoteAdmin:admin authenticate user|admin_authenticate_user]] (not in 0.7.6.1)
  
// Invoke admin_broadcast
+
=== Object management ===
$parameters = array('message' => 'the answer is 42');
+
$myRemoteAdmin->SendCommand('admin_broadcast', $parameters);
+
  
// Invoke admin_shutdown (example for use without parameters)
+
=== Parcel management ===
$myRemoteAdmin->SendCommand('admin_shutdown');
+
  
?></pre>
+
=== Region management ===
 +
*[[RemoteAdmin:admin broadcast|admin_broadcast]]
 +
*[[RemoteAdmin:admin close region|admin_close_region]]
 +
*[[RemoteAdmin:admin create region|admin_create_region]]
 +
*[[RemoteAdmin:admin delete region|admin_delete_region]]
 +
*[[RemoteAdmin:admin modify region|admin_modify_region]]
 +
*[[RemoteAdmin:admin region query|admin_region_query]]
 +
*[[RemoteAdmin:admin restart|admin_restart]]
 +
*[[RemoteAdmin:admin shutdown|admin_shutdown]]
  
== RemoteAdmin Commands ==
+
=== Region file management ===
<table border="1" cellspacing="0" cellpadding="4">
+
* [[RemoteAdmin:admin load heightmap|admin_load_heightmap]]
<tr>
+
* [[RemoteAdmin:admin load oar|admin_load_oar]]
  <th>Name</th>
+
* [[RemoteAdmin:admin load xml|admin_load_xml]]
  <th>Status</th>
+
* [[RemoteAdmin:admin save heightmap|admin_save_heightmap]]
  <th>Description</th> 
+
* [[RemoteAdmin:admin save oar|admin_save_oar]]
</tr>
+
* [[RemoteAdmin:admin save xml|admin_save_xml]]
<tr>
+
 
  <td>[[remoteadmin:admin_create_region | admin_create_region]]</td>
+
=== Region access management ===
  <td></td>
+
* [[RemoteAdmin:admin acl list|admin_acl_list]]
  <td>Create a new region</td>
+
* [[RemoteAdmin:admin acl clear|admin_acl_clear]]
</tr>
+
* [[RemoteAdmin:admin acl add|admin_acl_add]]  
<tr>
+
* [[RemoteAdmin:admin acl remove|admin_acl_remove]]
<td>[[remoteadmin:admin_shutdown | admin_shutdown]]</td>
+
 
<td></td>
+
=== Estate management ===
<td>Shut down the region</td>
+
* [[RemoteAdmin:admin estate reload|admin_estate_reload]]
</tr>
+
 
<tr>
+
=== Administration ===
<td>[[remoteadmin:admin_broadcast| admin_broadcast]]</td>
+
* [[RemoteAdmin:admin console command|admin_console_command]]
<td></td>
+
 
<td>Send a general alert</td>
+
=== Misc (Undocumented) ===
</tr>
+
* [[RemoteAdmin:admin dialog|admin_dialog]]
<tr>
+
* [[RemoteAdmin:admin reset land|admin_reset_land]]
<td>[[remoteadmin:admin_restart| admin_restart]]</td>
+
* [[RemoteAdmin:admin refresh search|admin_refresh_search]]
<td></td>
+
* [[RemoteAdmin:admin refresh map|admin_refresh_map]]
<td>Restart OpenSim</td>
+
* [[RemoteAdmin:admin get opensim version|admin_get_opensim_version]]
</tr>
+
* [[RemoteAdmin:admin get agent count|admin_get_agent_count]]
<tr>
+
<td>[[remoteadmin:admin_load_heightmap| admin_load_heightmap]]</td>
+
<td></td>
+
<td>Load Height Map...</td>
+
</tr>
+
<tr>
+
<td>[[remoteadmin:admin_create_user| admin_create_user]]</td>
+
<td></td>
+
<td>Create a new user</td>
+
</tr>
+
<tr>
+
<td>[[remoteadmin:admin_load_xml| admin_load_xml]]</td>
+
<td></td>
+
<td>Execute the Load XML command</td>
+
</tr>
+
</table>
+
  
== 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 12: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