4.1. Console and CommandsPage edited by Guillaume Nodet4.1. Console and CommandsOverviewKaraf provides a powerful console and a set of commands that can be used to perform various tasks. Commands can be located in the root shell or in a sub-shell. A sub-shell is a group of related commands, like commands related to the OSGi framework or the log system. The following shells are available out-of-the-box, but the console can be easily extended: Admin shellThis shell is described extensively in section 4.7. Administration. Config shellThis shell is described extensively in section 4.8. Configuration. Features shellThe features shell contains a few commands to provision entire applications easily. Log shellThe log shell contains a few commands to display the log entries, retrieve or change the log levels:
See the documentation on the logging system for more informations. OBR shellOBR (OSGi Bundle Repository) is a proposed specification that defines an xml format for repositories of OSGi bundles and an associated service to access it. Karaf proposes a number of commands that can be used to deal with such repositories. Note that this feature is not installed by default. To install it, you must run the following command: ka...@root:/> features:install obr
OSGi shellThe OSGi sub-shell provides commands for managing the OSGi framework: listing OSGi bundles, services, managing bundle lifecycles.
Package shell
Shell shell
Examples: cat mvn:org.apache.servicemix/servicemix/3.2.1/pom or log:display | grep error SSH shell
Wrapper shellNote that this feature is not installed by default. To install it, you must run the following command: ka...@root:/> features:install wrapper
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
