8.4.2 Extracting Scenario Metadata
Scenario metadata includes XML files that contain the table data for scenario, dataset, and network logic.
The sm_extract.sh script invokes a Java tool, which creates these files. You
            start this script as
                    follows:
                sm_extract.sh <mode> -notarget | -target <name>where:
                     
               - mode (mandatory) is the scenario, network, or dataset.
- -notarget, if included, implies that the system does not save the target environment to the generated XML files.
- -target <name> identifies the same target (in <name>) for all extracted XML files.
To extract scenario, dataset, and network metadata, follow these steps:
               - Navigate to the cd <OFSAAI Installed Directory>/db_toolsdirectory.
- Edit the metadata configuration files with identifying information for the
                    scenarios, datasets, or networks for extraction:- <scnro_ctlg_id> in the scnros.cfg file and/or
- <scnro_ctlg_id>.<scnro_id> in the scnros.cfg
                            file
                           Note: Providing both <scnro_ctlg_id> and <scnro_id> in the scnros.cfg file allows finer granularity when extracting scenarios. If you provide both a scenario catalog ID and a scenario ID on a line, you must separate them with a period.
- <data_set_id> in the dataset.cfg file
- <network_id> in the network.cfg file
 
- Execute the sm_extract.sh script in this order:- Enter sm_extract.sh dataset to extract dataset metadata.
- Enter sm_extract.sh scenario to extract scenario metadata.
- Enter sm_extract.sh network to extract network metadata.