Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

init() - Start Management Console session for MC-CLI

Function:

BcAdminMain.init()

Starts a Management Console session in which you can administer the BeanConnect configuration via the MC-CLI. The configuration file console.properties.xml is read from the config subdirectory of the specified console subdirectory console_home in BeanConnect. If it is not present, the file console.properties.xml is generated.

Parameters:

console_home (String)

Installation directory of the Management Console.

log_mc_msgs (BcDef.BOOL_TRUE / BcDef.BOOL_FALSE)

BcDef.BOOL_TRUE (Default):
The messages that are generated asynchronously by the Management Console are output at stdout.
BcDef.BOOL_FALSE:
The messages that are generated asynchronously by the Management Console are not output.

Return:

None

Exceptions:

BcParameterException, BcObjectException, BcToolException

Note:

The thrown BcToolException may be due to the fact that another Management Console session already exists (starter from the graphical user interface or via the MC-CLI). Close this session.
If no other session exists, you may need to delete the serialization file ConsoleInUse.txt in the Management Console home directory.

Example:

...
import sys
import BcAdminMain
...
consoleHome=sys.argv[1]
BcAdminMain.init(consoleHome)
...