Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColor#000000

No Format
nopaneltrue
> java -jar lib/servicemix-client.jar --help
Apache ServiceMix Kernel client
  -a [SMX4KNL:address]  specify the URL to connect to
  -h [SMX4KNL:host]     specify the host to connect to
  -u [SMX4KNL:user]     specify the user name
  -p [SMX4KNL:password] specify the password
  --help        shows this help message
  [SMX4KNL:commands]    commands to run
If no commands are specified, the client will be put in an interactive mode

...

Warning
titleSending direct commands from the client

The client jar does not yet support passing command line arguments to the remote ServiceMix Kernel.
In order to do so, you can create a text file containing the commands and use the system console to redirect this file to the input stream:

Code Block
> echo osgi/shutdown > command.txt
> java -jar lib/servicemix-client.jar < command.txt
>

#top4.2. Remote Console

Using an SSH client

You can use any standard SSH client to connect to a ServiceMix Kernel instance. The default port is 8101.

...

Warning
titleError messages when using some ssh clients

Some SSH clients will prompt some harmless warnings when connecting to ServiceMix Kernel.
In particular, openssh 5.1p1 will display the following output:

Code Block
channel_by_id: 1: bad id: channel free
channel_input_success_failure: 1: unknown
channel_by_id: 1: bad id: channel free
channel_input_success_failure: 1: unknown

#top4.2. Remote Console

Using another Kernel instance

...

The TCP port is configured at the following location:

Code Block
[SMX4KNL:KERNEL]/etc/org.apache.servicemix.shell.cfg

...

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.

#top4.2. Remote Console

Wiki Markup
{scrollbar}