当前位置: 首页 > 工具软件 > OSGi > 使用案例 >

OSGI:osgi命令(备查)

谢鸿飞
2023-12-01

osgi> help

close - shutdown and exit
   scope: equinox

tac
   scope: gogo
   parameters:
      String[]   

start - start the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to start

diag - Displays unsatisfied constraints for the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   IDs of bundle(s), for which to display unsatisfied constraints

resolve - resolve bundles
   scope: felix
   parameters:
      Bundle[]   target bundles (can be null or empty)

shutdown - shutdown the OSGi Framework
   scope: equinox

gc - perform a garbage collection
   scope: equinox

ls - get specified path contents
   scope: felix
   parameters:
      String   path with optionally wildcarded file name

ls - get current directory contents
   scope: felix

sl - display the start level for the specified bundle, or for the framework if no bundle specified
   scope: equinox
   parameters:
      Bundle[]   bundle to get the start level

setbsl - set the start level for the bundle(s)
   scope: equinox
   parameters:
      int   new start level
      Bundle[]   bundle(s) to change startlevel

profilelog - Display & flush the profile log messages
   scope: equinox

frameworklevel - query framework active start level
   scope: felix

frameworklevel - set framework active start level
   scope: felix
   parameters:
      int   target start level

echo
   scope: gogo
   parameters:
      Object[]   

se - display registered service details. Examples for [filter]: (objectClass=com.xyz.Person); (&(objectClass=com.xyz.Person)(sn=Jensen)); passing only com.xyz.Person is a shortcut for (objectClass=com.xyz.Person). The filter syntax specification is available at http://www.ietf.org/rfc/rfc1960.txt
   scope: equinox
   parameters:
      String[]   Optional filter for filtering the displayed services. Examples for the filter: (objectClass=com.xyz.Person); (&(objectClass=com.xyz.Person)(sn=Jensen)); passing only com.xyz.Person is a shortcut for (objectClass=com.xyz.Person). The filter syntax specification is available at http://www.ietf.org/rfc/rfc1960.txt

stop - stop bundles
   scope: felix
   flags:
      -t, --transient   stop bundle transiently
   parameters:
      Bundle[]   target bundles

telnet - start/stop a telnet server
   scope: equinox
   parameters:
      String[]   

sto - stop the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to stop

install - install and optionally start bundle from the given URL
   scope: equinox
   flags:
      -start   specify if the bundle should be started after installation
   parameters:
      String   Location of bundle to install

man
   scope: equinox
   parameters:
      String[]   

fork - execute a command in a separate process
   scope: equinox
   parameters:
      String   command to be executed

status - display installed bundles and registered services
   scope: equinox
   parameters:
      String[]   [-s <comma separated list of bundle states>] [segment of bsn]

start - start bundles
   scope: felix
   flags:
      -p, --policy   use declared activation policy
      -t, --transient   start bundle transiently
   parameters:
      String[]   target bundle identifiers or URLs

help - displays available commands
   scope: felix

help - displays information about a specific command
   scope: felix
   parameters:
      String   target command

setprop - set OSGi properties
   scope: equinox
   parameters:
      String[]   list of properties with values to be set; the format is <key>=<value> and the pairs are separated with space if more than one

setfwsl - set the framework start level
   scope: equinox
   parameters:
      int   new start level

getprop - displays the system properties with the given name, or all of them
   scope: equinox
   parameters:
      String[]   name of system property to dispaly

ss - display installed bundles (short status)
   scope: equinox
   parameters:
      String[]   [-s <comma separated list of bundle states>] [segment of bsn]

help
   scope: equinox
   parameters:
      String[]   

b - display details for the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   (<id>|<location>)

install - install bundle using URLs
   scope: felix
   parameters:
      String[]   target URLs

uninstall - uninstall the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to uninstall

type
   scope: gogo
   parameters:
      String[]   

setp - set OSGi properties
   scope: equinox
   parameters:
      String[]   list of properties with values to be set; the format is <key>=<value> and the pairs are separated with space if more than one

inspect - inspects bundle capabilities and requirements
   scope: felix
   parameters:
      String   ('capability' | 'requirement')
      String   (<namespace> | 'service')
      Bundle[]   target bundles

getopt
   scope: gogo
   parameters:
      List   
      Object[]   

bundles - display details for all installed bundles
   scope: equinox
   parameters:
      String[]   [-s <comma separated list of bundle states>] [segment of bsn]

gosh
   scope: gogo
   parameters:
      String[]   

bundlelevel - query bundle start level
   scope: felix
   parameters:
      Bundle   bundle to query

bundlelevel - set bundle start level or initial bundle start level
   scope: felix
   flags:
      -i, --setinitial   set the initial bundle start level
      -s, --setlevel   set the bundle's start level
   parameters:
      int   target level
      Bundle[]   target identifiers

p - display imported/exported package details
   scope: equinox
   parameters:
      Bundle[]   Bundle whose packages to display. If not present displays all exported packages

p - display imported/exported package details
   scope: equinox
   parameters:
      String   Package name of the package to display

update - update bundle
   scope: felix
   parameters:
      Bundle   target bundle

update - update bundle from URL
   scope: felix
   parameters:
      Bundle   target bundle
      String   URL from where to retrieve bundle

not
   scope: gogo
   parameters:
      Function   

services - display registered service details. Examples for [filter]: (objectClass=com.xyz.Person); (&(objectClass=com.xyz.Person)(sn=Jensen)); passing only com.xyz.Person is a shortcut for (objectClass=com.xyz.Person). The filter syntax specification is available at http://www.ietf.org/rfc/rfc1960.txt
   scope: equinox
   parameters:
      String[]   Optional filter for filtering the displayed services. Examples for the filter: (objectClass=com.xyz.Person); (&(objectClass=com.xyz.Person)(sn=Jensen)); passing only com.xyz.Person is a shortcut for (objectClass=com.xyz.Person). The filter syntax specification is available at http://www.ietf.org/rfc/rfc1960.txt

props - Display system properties
   scope: equinox

r - refresh the packages of the specified bundles; if -all option is specified refresh packages of all installed bundles
   scope: equinox
   flags:
      -all   specify to refresh the packages of all installed bundles
   parameters:
      Bundle[]   list of bundles whose packages to be refreshed; if not present refreshes all bundles

source
   scope: gogo
   parameters:
      String   

exit - exit immediately (System.exit)
   scope: equinox

cd - change current directory
   scope: felix
   parameters:
      String   target directory

cd - get current directory
   scope: felix

update - update the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to update

update - Update the specified bundle from the specified location
   scope: equinox
   parameters:
      Bundle   Bundle to update
      URL   Location of the new bundle content

h - print bundle headers
   scope: equinox
   parameters:
      Bundle[]   bundles to print headers for

i - install and optionally start bundle from the given URL
   scope: equinox
   flags:
      -start   specify if the bundle should be started after installation
   parameters:
      String   Location of bundle to install

pr - Display system properties
   scope: equinox

cat
   scope: gogo
   parameters:
      String[]   

getPackages - lists all packages visible from the specified bundle
   scope: equinox
   parameters:
      Bundle   bundle to list the visible packages

set
   scope: gogo
   parameters:
      String[]   

up - Update the specified bundle from the specified location
   scope: equinox
   parameters:
      Bundle   Bundle to update
      URL   Location of the new bundle content

up - update the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to update

un - uninstall the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to uninstall

sh
   scope: gogo
   parameters:
      String[]   

requiredBundles - lists required bundles having the specified symbolic name
   scope: equinox
   parameters:
      String[]   symbolic name for required bundles to be listed; if not specified all required bundles will be listed

grep
   scope: gogo
   parameters:
      String[]   

log - display some matching log entries
   scope: felix
   parameters:
      int   maximum number of entries
      String   minimum log level [ debug | info | warn | error ]

log - display all matching log entries
   scope: felix
   parameters:
      String   minimum log level [ debug | info | warn | error ]

s - display installed bundles and registered services
   scope: equinox
   parameters:
      String[]   [-s <comma separated list of bundle states>] [segment of bsn]

t - stop the named thread with an IllegalStateException
   scope: equinox
   parameters:
      String   stop
      String   the thread on which to perform the action

t - display threads and thread groups
   scope: equinox

t - stop the named thread with the provided throwable
   scope: equinox
   parameters:
      String   stop
      String   the thread on which to perform the action
      Class   the class of the throwable to throw (default = java.lang.IllegalStateException)

disconnect
   scope: equinox

packages - display imported/exported package details
   scope: equinox
   parameters:
      String   Package name of the package to display

packages - display imported/exported package details
   scope: equinox
   parameters:
      Bundle[]   Bundle whose packages to display. If not present displays all exported packages

bundle - display details for the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   (<id>|<location>)

lb - list all installed bundles
   scope: felix
   flags:
      -l, --location   show location
      -s, --symbolicname   show symbolic name
      -u, --updatelocation   show update location

lb - list installed bundles matching a substring
   scope: felix
   flags:
      -l, --location   show location
      -s, --symbolicname   show symbolic name
      -u, --updatelocation   show update location
   parameters:
      String   subtring matched against name or symbolic name

refresh - refresh the packages of the specified bundles; if -all option is specified refresh packages of all installed bundles
   scope: equinox
   flags:
      -all   specify to refresh the packages of all installed bundles
   parameters:
      Bundle[]   list of bundles whose packages to be refreshed; if not present refreshes all bundles

stop - stop the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to stop

telnetd
   scope: gogo
   parameters:
      String[]   

which - determines from where a bundle loads a class
   scope: felix
   parameters:
      Bundle   target bundle
      String   target class name

sta - start the specified bundle(s)
   scope: equinox
   parameters:
      Bundle[]   bundle(s) to start

threads - display threads and thread groups
   scope: equinox

threads - stop the named thread with an IllegalStateException
   scope: equinox
   parameters:
      String   stop
      String   the thread on which to perform the action

threads - stop the named thread with the provided throwable
   scope: equinox
   parameters:
      String   stop
      String   the thread on which to perform the action
      Class   the class of the throwable to throw (default = java.lang.IllegalStateException)

headers - display bundle headers
   scope: felix
   parameters:
      Bundle[]   target bundles

refresh - refresh bundles
   scope: felix
   parameters:
      Bundle[]   target bundles (can be null or empty)

headers - print bundle headers
   scope: equinox
   parameters:
      Bundle[]   bundles to print headers for

format
   scope: gogo
   parameters:
      Object   

format
   scope: gogo

exec - execute a command in a separate process and wait
   scope: equinox
   parameters:
      String   command to be executed

setibsl - set the initial bundle start level
   scope: equinox
   parameters:
      int   new start level

history
   scope: gogo

until
   scope: gogo
   parameters:
      Function   
      Function   

uninstall - uninstall bundles
   scope: felix
   parameters:
      Bundle[]   target bundles

init - uninstall all bundles
   scope: equinox

classSpaces - lists required bundles having the specified symbolic name
   scope: equinox
   parameters:
      String[]   symbolic name for required bundles to be listed; if not specified all required bundles will be listed

each
   scope: gogo
   parameters:
      Collection   
      Function 

 类似资料: