Hi,

the ls command is a shortcut for services:list in Karaf, take a look at the
help ls --help for details.
so if you want to know more of a bundle use bundle:info, this will show you
if there is an issue with your bundle what the cause is.
We have more then 200 commands available, just use the <tab> for
completion. It'll tell you which commands are available.
Ususally those commands are grouped, for example bundle:* for commands
concerning your bundle, service:* for services, osgi:* for using the
framework etc.
The most common used would be osgi:list or list for listing all bundles,
with -a it also lists all "system" bundles. Take a look at the
documentation at [1] for all available commands.

regards, Achim

[1] - http://karaf.apache.org/manual/latest/commands/commands.html


2014-03-20 14:55 GMT+01:00 <[email protected]>:

>  Hi,
>
> I want to check the status of the services (and why they are NOT
> satisfied) in my Karaf (v 2.3.2/3.0.0) container, but the OSGi commands
> that worked fine in the native container gives me different output or don't
> work at all in Karaf.
>
> OSGi commands that not work as before/at all in Karaf:
> karaf@root()> ls                  (In Karaf, the service are listed in
> another format and the "State" column is missing in the output?)
> karaf@root()> ls -c <ID>     (In Karaf, this command complains about
> "Error executing command osgi:ls undefined option -c" when trying to
> display information about NOT satisfied services in a bundle?)
> karaf@root()> comp <ID>   (In Karaf, this command complains about
> "Invalid component ID!" whatever ID I use to display information about a
> NOT satisfied service?)
>
> I have checked the list of available Karaf container commands with "help",
> but none of these seems to give me the information that I'm missing (i.e.
> the status of the services and why they are NOT satisfied).
>
> Are there any other commands that I can use to get this information, am I
> using the commands wrong or will the existing commands be updated/fixed to
> give this information in Karaf container?
>
> Regards
> SteffeC
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Reply via email to