OSGI Useful commands
help
: lists all available commands
ss | grep text
: lists services which matches with text
bundle [bundle id]
: prints detailed information like Id,Status, Data Root and etc.
b [build id]
: prints all meta data related to this bundle
update [bundle id]
: applies newest bundle
diag [bundle id]
: prints diagnose messages
packages [package name]
: lists all the bundles which use the given package. Wild card can be used at package name.
install file:[file path]
: install a bundle into running OSGI environment.
* [bundle symbolic name] also can be sued instead of [bundle id]
* And more useful console
Command | Description |
---|---|
start | Starts a bundle given an ID or symbolic name |
stop | Stops a bundle given an ID or symbolic name |
install | Adds a bundle given a URL for the current instance |
uninstall | Removes a bundle given a URL for the current instance |
update | Updates a bundle given a URL for the current instance |
active | Lists all active bundles in the current instance |
headers | List the headers for a bundle given an ID or symbolic name |
ss | Lists a short status of all the bundles registered in the current instance |
services <filter> | Lists services given the proper filter |
diag | Runs diagnostics on a bundle given an ID or symbolic name |
Refer :
http://www.ibm.com/developerworks/library/os-ecl-osgiconsole/
http://isurues.wordpress.com/2009/01/01/useful-equinox-osgi-commands/