Running OSGi Commands from BWAdmin Command Line

Follow these steps to run OSGI commands from the BWAdmin command line.

Before you begin Ensure the AppNode is running.
    Procedure
  1. From the CLI, navigate to the /bin folder.
  2. Start BWAdmin.
  3. Enter an OSGI command. OSGI commands can be run from the command line in the format osgi [options] [command] . In the following example, the option -n is used to specify the AppNode MyAppNode, and the la command is used to print information about applications on MyAppNode.
    bwamdin[admin@MyDomain/MyAppSpace]> osgi -n MyAppNode "la"
    OSGI Command Options
    Option Description
    -descr/ -descriptionDescription of an entity
    -t/-outputfileThe OSGI command output is provided in a newly created text file. The text file is written to the /bin folder by default, but you can specify a different location, for example, C:/temp/OSGI_OUTPUT.txt.
    -d/-domainSpecifies the domain name.
    -a/-appspaceSpecifies the name of the AppSpace.
    -n/-appnodeSpecifies the name of the AppNode.
    --helpLists all OSGI commands.

    For more information on specific commands, see OSGi Commands.