Skip to main content

How to migrate Orbix configuration from a file based domain to a CFR based domain?

  • May 17, 2013
  • 0 replies
  • 0 views

Summary This article explains an easy way to migrate configuration scopes from a file based Orbix 6 domain to a configuration repository based Orbix 6 domain, as an alternative to invoking multiple error-prone itadmin commands.
Article Number 27783
Environment Orbix 6.3 All Supported Operating Systems
Question/Problem Description How to migrate Orbix configuration from a file based domain to a CFR based domain?
How to add configuration information contained in a configuration scope in a file based domain to a configuration repository based Orbix domain without having to run multiple itadmin commands?
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution Orbix provides a simple mechanism for converting a complete Orbix configuration scope from a file based domain to a TCL script which can be run with itadmin in order to update a CFR (Configuartion Repository).

Assuming a file based domain created with itconfigure and called sample-domain exists, the configuration of this Orbix domain is available in a configuration file called sample-domain.cfg. This file can be easily edited with a text editor.

Assuming the following scope contained in sample-domain.cfg needs to be migrated or added into a configuration repository

example_scope
{
    event_log:filters = ["IT_GIOP=*", " IT_ATLI2_IP=*"];

    access_control
    {
        binding:server_binding_list = ["OTS AccessControl", "AccessControl", "OTS", ""];

        orb_plugins = ["local_log_stream", "iiop_profile", "giop", "iiop", "portable_interceptor"];

        binding:client_binding_list = ["AccessControl OTS POA_Coloc", "AccessControl POA_Coloc", "OTS POA_Coloc", "POA_Coloc", "AccessControl OTS GIOP IIOP", "AccessControl GIOP IIOP", "OTS GIOP IIOP", "GIOP IIOP"];

        local_log_stream:filename="server.log";
    };
};

The above scope can be converted to a TCL script which can be easily run with the itadmin command in order to enter the data into the configuration repository. For this task Orbix provides the following TCL script:
%IT_PRODUCT_DIR%\\asp\\6.3\\bin\\file_to_cfr.tcl

In the file based domain (after sourcing the sample-domain_env script) run the above script as follows:
itadmin file_to_cfr.tcl -output_to_file example_scope.tcl -scope example_scope

The above command will create the TCL script example_scope.tcl.

In the CFR based domain, after sourcing the according environment script, run the above script with itadmin as follows:
itadmin example_scope.tcl

The above will create the scope and the variables in the CFR. The contents of the scope can be then printed out with:
itadmin scope show example_scope

For further details on itadmin and managing the Orbix configuration please consult the following Orbix documentation:
Orbix Administrator's Guide
Workaround
Notes
Attachment

Created date: 12 January 2012
Last Modified: 13 February 2013
Last Published: 12 May 2012
First Published date: 12 January 2012

#KnowledgeDocs
#Orbix