THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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.
All these parameters are detailed in the help screen:
Panelcode | ||||||
---|---|---|---|---|---|---|
| ||||||
| ||||||
No Format | nopanel | true|||||
> java -jar lib/karaf-client.jar --help
Apache Felix Karaf client
-a [address] specify the URL to connect to
-h [host] specify the host to connect to
-u [user] specify the user name
-p [password] specify the password
--help shows this help message
[commands] commands to run
If no commands are specified, the client will be put in an interactive mode
|
For example, to shut down the Kernel from the command line, you can run the following command:
Panelcode | ||||||
---|---|---|---|---|---|---|
| ||||||
| ||||||
No Format | nopanel | true|||||
> java -jar lib/karaf-client.jar
smx@root:/> osgi:shutdown
smx@root:/>
>
|
The client jar also supports passing command line arguments to the remote Karaf.
...