2014. 11. 22. 07:17

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


CommandDescription
startStarts a bundle given an ID or symbolic name
stopStops a bundle given an ID or symbolic name
installAdds a bundle given a URL for the current instance
uninstallRemoves a bundle given a URL for the current instance
updateUpdates a bundle given a URL for the current instance
activeLists all active bundles in the current instance
headersList the headers for a bundle given an ID or symbolic name
ssLists a short status of all the bundles registered in the current instance
services <filter>Lists services given the proper filter
diagRuns 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/