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
- From the CLI, navigate to the
/binfolder. - Start BWAdmin.
- 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-nis used to specify the AppNodeMyAppNode, and thelacommand is used to print information about applications onMyAppNode.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.