REQUIREMENT admin.telnet |
Type | NEW |
Priority | LOW |
Status | CLOSED |
Topic | You can administer XmlBlaster using a telnet client | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Des cription |
This is based on Remote Console of the WTTools project. The plugin architecture of remotecons allowed us to add xmlBlaster specific functionality like internal state queries or setting of properties. The default port to access xmlBlaster is 2702, configuring the port to 0 switches telnet access off (see below). The query syntax is described in the admin.commands requirement. How does the return value look like?
Responses of attributes have the key and the value, separated to lines.
Messages are returned XML encoded.
The next table shows the return values of set invocations:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example any |
java org.xmlBlaster.Main -cluster.node.id heronand try a telnet myHost 2702Replace myHost with the IP where xmlBlaster runs.
Type Now lets login to play: CMD>connect admin secret Successful login for user admin, session timeout is [ 10 min 0 millis ] Example to query the home directory of the user which started xmlBlaster and the current free memory in the server, the last example queries how many users are currently known in the server: CMD>get sysprop/?user.home /node/heron/sysprop/?user.home=/home/xmlblast CMD>get ?freeMem /node/heron/?freeMem=942272 CMD>get /node/heron/?numClients /node/heron/?numClients=0 Here is an example change the logging level of the authentication modules: CMD> set logging/?org.xmlBlaster.engine=FINE /node/heron/logging/?org.xmlBlaster.engine=FINE This example sets a variable with replacement (currently not very useful): CMD> set sysprop/?myTmpPath=${user.home}${file.separator}backup /node/heron/sysprop/?myTmpPath=/home/xmlblast/backup Now we kill the login session '1' of client 'joe'. To test it you should start a client with login name joe first. CMD> get client/joe/1/?killSession This would kill all login sessions of client 'joe'. CMD> get client/joe/?killClient Now lets query and change the run level: CMD> get ?runlevel /node/heron/?runlevel=9 CMD> set ?runlevel=3 /node/heron/?runlevel=3 Please read the admin.commands requirement for a description of the command syntax. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example any |
192.168.1.2 << help remotecons.wttools.ConnectionServer$InternalCommands >> echo - switch 'echo' mode (for windows telnet is really needed) quit - close connection to server who - list all active connections close n - close active connection number 'n' help [command] - display this message info org.xmlBlaster.engine.admin.extern.TelnetGateway >> XmlBlaster telnet administration connect [name] [passwd] Login with you login name and password get [query] Get property or xmlBlaster state set [query] Set a property or change xmlBlaster setting time Display current time on server gc Run System.gc() command on remote system mem [total|free] Display amount of memory on remote system exit Call System.exit(0) on remote system For query syntax see http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.telnet.html http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.commands.html |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configure |
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Todo |
Most is done, testsuite is missing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See | http://wttools.sourceforge.net/remotecons/package.html | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See API | org.xmlBlaster.engine.admin.extern.TelnetGateway | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | admin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | admin.commands | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See REQ | admin.jmx | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See TEST |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/admin.telnet.xml