mConsole General Description

mConsole is a universal management application suitable for administration and monitoring of different types of servers - OSGi frameworks, mPRM backend servers, the mConsole framework itself, etc. It is available in two forms, distributed with two of the ProSyst products: one for mBS, and one for mPower Remote Manager. The current document describes working with the general components of mConsole - login box, settings dialogs, etc.

Contents:


Prerequisites

Virtual Machines

To run mConsole of mBS you need JDK 1.2.2 or higher, or a compatible JVM.

For Starting mConsole

Make sure you have the pgui.jar and the resource.jar archives available in the bin/mconsole/lib folder.

For Establishing Connection to an OSGi Framework

  1. Framework administration through this application is acquired over the ProSyst Message Protocol (PMP). Hence, to be able to perform management operations, provide:
  2. mConsole needs to log on the framework with some valid username & password. The User Admin Bundle (useradm.jar), which is responsible for monitoring user accounts on the server, activated.


Starting/Stopping mConsole

To start mConsole:

To stop mConsole:


Login Box

The first dialog you see when you start mConsole is the login box. This dialog also appears when you disconnect from a session with a server. In the login box you define connection settings for the desired servers. It also allows you to define and save for future use a number of ready-to-use connection settings that can be reused each time you want to establish a connection with the specified server. Figure 1.1 shows the login box and its main components.

Login Box
Figure 1.1: Login Box

The left pane of the login box will contain a list of preset servers (OSGi frameworks, mPRM backend servers, etc.). The right pane displays the settings for the selected server.

If you set a server along with its properties to this list, you can easily connect to and administrate it any time you need without having to re-enter the information necessary for this.

Adding a New Preset Server

  1. Press the New button in the right pane.
  2. Set the server connection settings in the right pane.
  3. When ready with all settings, press Add.

Defining Connection Settings

You can define the connection settings for a target server and either save them for future reusing, or use them directly for establishing connection without saving.

Defining the Server Name

The Server Name field indicates the user-friendly name of the current OSGi framework as you want it to appear in the list. The exact syntax doesn't matter.

Selecting the Server Type

The Server Type combo box indicates the type of connection to be used. It contains three non-editable options. You must select the right one.


Figure 1.2: Selecting the server type

Connection Settings for an OSGi Framework (MBS Server Type)

To log in an OSGi framework, select the MBS option from the Server Type combo box. The URL, mBS User Name and Password fields will appear in the login dialog (like in Figure 1.1). You have to fill them with appropriate values.

Specifying the URL. The URL field defines the URL of the framework to be connected. The syntax of the URL is specific to the connection scheme that will be used, for example: socket, datagram, comm, etc. Each scheme is provided by a specific connection factory service. This pattern of communication is described in the IO Connector Service Specification, part of the OSGi Service Platform Service Compendium release 4.

Note: Only the socket scheme is enabled by default! To be able to use a different scheme, the scheme must be provided by some connection factory running on both the mConsole as plug-in, and on the connected server. In addition, the PMP Bundle must be configured to create a connection over the appropriate URI for that scheme.

The syntax of a socket URL is:

socket://<host>:<port>[;timeout=<timeout>]

where <host> stands for the host on which the server is running. <port> is the port on which the server is listening. The [..] brackets show an optional part, they are not part of the URI. The timeout... part shows the timeout in milliseconds for the connection.

Specifying the User Account. The mBS User Name and Password fields require a valid user account with administrative rights, existing in the User Admin Service on the target framework. With them, you are identified as a user and logged on to the server. The default user existing in the User Admin is admin with password admin. It possesses administrative rights. All other users need to be created manually by an administrator.

Tip: Change the default administrator user you will be using, or change the password of the admin user to avoid security breaches.

Connection Settings for the mConsole Framework (MC Server Type)

To administrate the local mConsole, select the mConsole option from the Server Type combo box (see Figure 2). This is the only setting you are to define. If you want to save the mConsole connection settings, specify a display name in the Display Name field. Otherwise, specifying it is not obligatory. The URL field will have a default value mConsole and cannot be edited.

Connection Settings for mPower Remote Manager Systems (MPRM Server Type)

Defining the connection and login properties for mPRM administration through mConsole is out of the scope of this document. Please refer to the mPRM product documentation for information about it.

Connecting to a Server

To connect a preset server:

  1. Select the necessary server entry from the list. Its preset connection settings will appear in the right pane.
  2. Press Connect.

To connect a new server:

  1. Enter its proper connection settings.
  2. Press Connect.


Components of the mConsole Window

Figure 2 illustrates the basic components of the main window.

Main window
Figure 2: Main window

The main window of mConsole has menus, toolbars, a central pane with tabs, and a status bar. The exact number and types of menus, toolbars and tabs depends on the server type you have chosen, and on the plugins you have activated in mConsole. The window shown in Figure 2 is the window that appears first after connecting to an OSGi framework. The main panel shows the bundle tree and the framework properties.


Administrating the mConsole Framework

mConsole is based on an OSGi framework (mBS, more specifically). Therefore, you can administrate it like any standard OSGi framework. To do this, you must first log in choosing MC connection type (see Connection Settings for the mConsole Framework). You will be allowed to perform most operations allowed for ordinary frameworks - manage the bundles, system properties, bundle configurations, etc. See OSGi Framework Administration through mConsole for more information.

The administration of the local mConsole framework is not acquired by a connection but is acquired using the org.osgi.framework.BundleContext object of its bundles.

The following window appears when you log in the mConsole framework:


Figure 3: mConsole framework

Default Bundle Configuration of mConsole

By default, the mConsole framework contains the following list of bundles running:

Bundle Description
osgilib.jar OSGi Library Bundle. Provides the packages of the most essential OSGi services.
putil.jar ProSyst Util Bundle. Provides the most essential ProSyst system services.
db.jar DB Bundle. Provides a persistent database for storing bundle data.
config.jar Config Bundle. Provides the OSGi Configuration Admin Service.
log.jar Log Bundle. Provides the OSGi Log Service.
connector.jar Connector Bundle. Provides the OSGi IO Connector Service.
socketconn.jar Socket Connection Bundle. Provides a Socket Connection Factory. It is necessary for creating a socket PMP connection to the remote or local framework. If you want to use some other scheme, start the appropriate IO Provider for it.
socksconn.jar SOCKS Connection Factory Bundle. Provides a Connection Factory for connection over proxy servers supporting SOCKS version 4 or version 5.
mclib.jar Management Container Library Bundle. Exports the mConsole API.
usradmex.jar User Admin Extension Bundle. Provides extension to the OSGi User Admin Service.
pmp.jar PMP Bundle. Provides the ProSyst Management Protocol (PMP).
mbslogin.jar mBS Login Bundle. Provides the Login Service for mBS administration.
mclogin.jar mConsole Login Bundle. Provides the Login Service for mConsole administration through its BundleContext.
prmlogin.jar mPRM Login Bundle. Provides the Login Service for mPRM systems.
container.jar Management Container Bundle. It provides the VisualContainer service.
bundles.jar Manages all bundle information about the connected framework.
services.jar Monitors the services in the connected framework.
mbsgam.jar mBS Gateway Action Manager Bundle. Provides access to the components of the connected OSGi framework.
additional.jar Provides the runtime information, built-in HTTP server, resource monitor and permission management.
osgieditors.jar Provides the general property editor, the custom property editors of all ProSyst bundles from the osgi category, and the custom property editor of the Boot Bundle.
editors.jar Contains all other custom property editors.


Changing the Default Settings of Your mConsole

To change the properties of your mConsole, choose General -> Settings or press the button from the toolbar. The Settings dialog that appears contains a set of tabs defining settings of different components. The number of tabs displayed in this dialog may vary because each mConsole plug-in can add new settings tabs.

The default tabs added to the Settings dialog are: General, for editing general properties, Toolbars, for modifying the visual settings of the tool, Container Console for changing the settings of the mConsole runtime console, and HTTP Server for controlling the built-in HTTP server.

Note: For description of the Bundles tab of the Settings dialog, which appears only after connecting to an OSGi framework, refer to OSGi Framework Administration through mConsole: Bundle-Related Settings.

General Settings

This tab is available even if you are not connected to a framework. It allows you to fix the browser which will be used to display the user's guide, the colors of the mConsole application, and some visual settings.

Setting the browser
Figure 4.1: Setting general properties

Setting the Browser for the Help Documentation. This option is available for Windows OS users only. All other users must specify browser location for the OS.

If you mark the Use default OS browser check box, the documentation will be displayed in the default browser on invoking. If you unmark it, you are to indicate the location of the desired browser in the field below. Press Default if you want to return to the default settings (the check box is marked). Press OK when finished.

For users of operating systems other than Windows, the check box will be disabled.

Use System Colors. If you check this option, the next time you start mConsole, it will appear in the OS system colors you have defined.

View Toolbar. If you uncheck this option, the toolbar will be hidden.

View Console. If you check this option, the runtime console of the mConsole framework will appear at the bottom of the main panel. It contains information messages about the operations performed by mConsole.

View Status Bar. If you uncheck this option, you will not see the status bar.

Toolbar Settings

This is done by entering the Toolbar tab of the Settings dialog. The following dialog appears:


Figure 4.2.1: Changing the toolbar settings

It allows you to determine the buttons displayed in the toolbars, their order and their appearance. The Toolbar combo box on top of the dialog allows you to select the toolbar which you want to edit:


Figure 4.2.2: Selecting the toolbar

On the left of the dialog, there is a list of the buttons not currently available on the selected toolbar, with their icons. On the right, there is a list of the buttons currently available on the toolbar. If you select a button from either list, a brief description of it will appear in the Information field.

To add a button to the toolbar:

To remove a button from the toolbar:

To change a button's location on the toolbar:

To show/hide the labels of the toolbar buttons, check/uncheck the View Labels checkbox.

To show/hide the entire toolbar, check/uncheck the View Toolbar checkbox.

If you want to restore the default toolbar settings of mConsole, press Defaults. When finished with all changes, press OK to set them or press Cancel to abolish them.

Container Console Settings

This tab allows you to change the appearance of the remote console of the connected framework and the runtime console of the mConsole framework. It is itself divided into a number of options:


Figure 4.3: Container console settings

Built-in HTTP Server Settings

mConsole possesses a small HTTP server which maps the necessary aliases to bundle locations. It is configured by entering the HTTP Server tab of the Settings dialog.

HTTP Server
Figure 4.4: Configuring the http server

You may define whether the mConsole will use the HTTP server or not by checking/unchecking the Use internal HTTP server radio button from the Bundles panel of the settings dialog. By default, the button is checked.

You can modify the primary and secondary ports of the HTTP server. Their default values are 1080 and 18080, respectively.

The Max User Count field indicated the maximum number of users allowed to the HTTP server. Default value: 20.

You may also supply a Root Directory for the bundles allowing you to install bundles without mapping aliases for them.

All bundles administrated via the HTTP server (installed, updated etc.) are granted aliases. They are displayed in the File Mapping table. You can manually add or remove aliases by pressing the Add or Remove button. Clear deletes the entire list.

The current Server Status and Server Port are displayed for information below the aliases table.

If you have any problems running the HTTP server or if you have changed its settings, press the Stop Server button and then the Start Server button to restart it.

The Default button returns the default configuration. After finishing with all changes, press OK.


mConsole