The framework can be administrated over Telnet since the collection of commands in the Parser Service is made available to (remote) Telnet clients.
The Bosch IoT Gateway Software provides Util Telnet bundle to enable administrators supervise the server using Telnet client applications.
Enabling Telnet administration
To enable the Telnet administration:
fw>$i -s ../bosch-iot-gateway-sdk/runtime/osgi/bundles/com.prosyst.mbs.util.telnet.jar
Make sure it is active.
Using commands over Telnet
After connecting to the framework, you can monitor it by sending text commands. The Telnet Bundle receives the commands and refers to the Parser Service to load their execution. After a command is executed, its output is returned to the Telnet client. By default, in the Telnet application you do not see the runtime information being dumped by the framework and its bundles. To activate this, use the dump command from the Telnet client, which will make the Parser service forward the information from System.out and System.err to the Telnet output.
Telnet-specific commands
Framework administration over Telnet includes commands that are Telnet-specific:
Telnet Commands |
Shortcut |
Description |
|---|---|---|
help |
- |
Print help messages online. |
spy |
- |
Turn online messages on and off. |
finger |
- |
Print a list of users that are currently connected to the same Telnet server. |
logout |
- |
Terminate the client-server connection over Telnet. |
The other commands accessible over Telnet belong to the set of commands managed by the Parser Service.
The Util Telnet bundle properties concern mainly the specific features of the Telnet communication mechanism and can be configured through the OSGi Configuration Admin service.