Export/Import/Retire Models via Utility

You can import and export the models between Sandbox to Production or vice versa using the Utility.
To import the models:
  1. Navigate to <MMG_PACK>OFS_MMG/bin and execute in the following format:
    ./model_pipeline_utility.sh IMPORT TARGET_WORKSPACE LOGIN_USER LOCALE FILE_NAME OBJECTIVE_ID OVERWRITE_FLAG

    Table 11-30 Fields and icons on the Sandbox Summary page

    Field Description
    Import Command to import the Model into Workspace
    Workspace The name of the Workspace to which you are importing the Model
    Login_User The logged in user name.
    Locale The application language preferences

    For example: en_US

    File_name The file name with the following format:

    Workspace name_Model ID_Model version.zip

    For example: CS_1638105398036_0.zip

    Objective_ID The ID of the objective.

    Note:

    For the OVERWRITE_FLAG, you enter the input as Y, the utility imports the models in the approved status.

    If you enter as N, the models are imported but not in the approved status.

    To export the models, perform the following steps:
    Prerequisite:
    Before you export, ensure the Models and Drafts are available in the UI / setup.
    1. Navigate to <MMG_PACK>OFS_MMG/bin and execute in the following format:

      ./model_pipeline_utility.sh MODEL EXPORT WORKSPACE_NAME LOGIN_USER LOCALE MODEL_ID MODEL_VERSION [v]

      Table 11-31 Fields and icons on the Sandbox Summary page

      Field Description
      Export Command to export the Model from the Workspace
      Workspace The name of the Workspace from which the model is exported
      Login_User The logged in user name.
      Locale

      The application language preferences.

      For example: en_US

      Model ID The Model ID
      Model Version The version of the Model

    Note:

    Currently, if the user gives Production Workspace name during the import of model dump through the utility, the utility migrates the dump to the Production Workspace as well. This should be restricted, as the models in sandbox may or may not be promoted, and the invalid status will be shown in the Production Workspace.
    Before you retire, ensure the Models are in the published state.
    1. Navigate to <MMG_PACK>OFS_MMG/bin and execute in the following format:

      ./model_pipeline_utility.sh MODEL RETIRE WORKSPACE_NAME LOGIN_USER LOCALE MODEL_ID MODEL_VERSION [v]

      Table 11-32 Fields and icons on the Sandbox Summary page

      Field Description
      Retire Command to retire the Model.
      Workspace The name of the Workspace from which the model is exported
      Login_User The logged in user name.
      Locale

      The application language preferences.

      For example: en_US

      Model ID The Model ID
      Model Version The version of the Model

    Note:

    Currently, if the user gives Production Workspace name during the import of model dump through the utility, the utility migrates the dump to the Production Workspace as well. This should be restricted, as the models in sandbox may or may not be promoted, and the invalid status will be shown in the Production Workspace.