|
Page Edited :
FELIX :
4.2. Remote Console
4.2. Remote Console has been edited by Chris Custine (Apr 28, 2009). Content:4.2. Remote ConsoleThe remote console feature allows to connect to a running ServiceMix instance from a remote computer and perform all the operations that are usually accessible from the local console. Launch optionsThe Karaf shell scripts supports a number of options to control the remote console:
These options affect two system properties that can be set if you don't use the standard shell scripts:
Using the client jarFrom Apache ServiceMix Kernel 1.1.0 and posterior versions, it is possible to use a more lightweight way to connect to a ServiceMix Kernel instance using the following command line: java -jar lib/servicemix-client.jar There are a few parameters that can be set on the command line to change the URL used to connect to the Kernel, the user or the password.
Using an SSH clientYou can use any standard SSH client to connect to a ServiceMix Kernel instance. The default port is 8101. > ssh -p 8101 -l smx localhost s...@localhost's password: smx s...@root:/>
Using another Kernel instanceFirst, open a terminal and launch a Kernel in server mode (you could use a Kernel in console mode too): bin/servicemix server On another terminal, start a Kernel in client mode: bin/servicemix client
Once the console appears, you can run the remote rsh command to connect to the other Kernel: remote rsh tcp://localhost:8101/ -u smx -p smx
You can also do that in a single command line from the prompt by appending the previous ServiceMix command to the shell command: bin/servicemix client remote rsh tcp://localhost:8101/ -u smx -p smx
To verify that your are connected to the remote Kernel, run the following command: info and check the system informations. ConfigurationThe TCP port is configured at the following location: [SMX4KNL:KERNEL]/etc/org.apache.servicemix.shell.cfg The defaut configuration is as below: startLocalConsole=${servicemix.startLocalConsole}
startRemoteShell=${servicemix.startRemoteShell}
sshPort=8101
sshRealm=servicemix
hostKey=${servicemix.base}/etc/host.key
The port used can easily be changed by changing the default port 8101 in the sshPort property. The security realm used by the console when authenticating remote users is named servicemix, so you can override this realm as explained in the 4.5. Security framework |
Unsubscribe or edit your notifications preferences
