Thanks Vincent. It worked.

jabong@jabong1143:~/Downloads/apache-servicemix-6.1.0/bin$ ./client -l 0 -u
karaf "bundle:list" | grep camel-test
246 | Active |  50 | 2.16.1                             | camel-test

On Thu, Mar 10, 2016 at 6:09 PM, Vincent Zurczak <
[email protected]> wrote:

> Hi,
>
>
> Le 10/03/2016 13:17, Debraj Manna a écrit :
>
> I can check a bundle state from Karaf Console by doing:-
>
> karaf@root>bundle:list | grep camel-test
> 246 | Active |  50 | 2.16.1                             | camel-test
>
> Is there a way I can do this programatically via some script running on
> the same machine as Karaf or via some REST End Point that Karaf exposes?
>
> I am using Karaf 3.0.5 running under ServiceMix 6.0.1.
>
>
> Did you try...
>
> client -u karaf "bundle:list" | grep camel-test
>
>
> ... (assuming "karaf" is the user name)?
> And you can do this remotely with SSH.
>
> Regards,
>
>                 Vincent.
>
> --
> Vincent Zurczak
> Linagora: www.linagora.com
>
> [image: Twitter] <https://twitter.com/VincentZurczak> [image: Vincent
> Zurczak @ LinkedIn]
> <http://fr.linkedin.com/pub/vincent-zurczak/18/b35/6a7> [image: My Skype
> ID] <callto://vincent.zurczak> [image: My English blog]
> <http://vzurczak.wordpress.com>
>

Reply via email to