Enabling the OSGi Console for an AppNode
The enableconsole command dynamically enables the OSGi console on the given port for a running AppNode. Advanced users can telnet to the port and execute native OSGi commands to get information about an AppNode's status. This is useful when collecting diagnostic data remotely. By default, the OSGi port is closed.
The enableconsole command can only be executed against a running AppNode. It should be issued from bwadmin interactive mode, not from the command line.
If you are testing and running applications in TIBCO Business Studio, you can also access the OSGi commands from the Console view.
bwadmin Command Line
- In a terminal, navigate to BW_HOME\bin and type bwadmin.
bwadmin[admin]> cd MyDomain
bwadmin[admin@MyDomain]> cd MyAppSpace
Start the AppNode, if it is not already running:
bwamdin[admin@MyDomain/MyAppSpace]> start appnode MyAppNode
- Run the enableconsole command, passing the host and OSGi port number. For example:
Open a new terminal window and use the
telnet command to access the OSGi console:
telnet JSMITH-W520 9060
The OSGi console is opened in a terminal.
- Use OSGi commands to retrieve information about the engine, the AppNode, the running application. For a list of commands, enter: help. See the topic called OSGi Runtime Statistics Commands for more information.
- When you are done, use the disconnect command to gracefully quit the telnet session, and leave the OSGi port open for reentry. Use the telnet stop command to close the connection after the debugging session is complete. Do not use the telnet exit command as this will shut down the AppNode.