RemoteAdmin:admin console command

From OpenSimulator

Revision as of 16:19, 24 October 2015 by Fritigern (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Caution ! This function gives full permission to execute all available console commands!

admin_console_command remotely allows to send commands to the console


Enabling admin_console_command

To get this, you must explicitly specify "all" or enable the function in the [RemoteAdmin] section.

enabled_methods = admin_console_command,...


Required Parameters

These parameters are required

parameter Description Values
command console command

Optional Parameters

No optional parameters

Returned Parameters

Returned Parameters

No parameters returned by Remote Admin

Error messages

No error messages




This example needs the RemoteAdmin PHP Class file available here.

// Including the RemoteAdmin PHP class.
// Instantiate the class with parameters identical to the Python example above
$myRemoteAdmin = new RemoteAdmin('', 9000, 'secret');
// Invoke admin_console_command (multiple parameters)
$parameters = array('command' => 'alert welcome to my region');
$myRemoteAdmin->SendCommand('admin_console_command', $parameters);
Personal tools
About This Wiki