8.4.3 Loading Scenario Metadata

The sm_load.sh script loads translated XML table data files into the target database.

Note:

To avoid corrupting the Behavior Detection process, never load scenarios while the process is running.
To load scenario, dataset, and network metadata, follow these steps:
  1. Navigate to the following directory: cd <OFSAAI Installed Directory>/db_tools.
  2. Optional: Edit the metadata configuration files (that is, scnros.cfg, dataset.cfg, and network.cfg) with identifying information for the scenarios, datasets, or networks that you want to load:
    • <scnro_ctlg_id> in the scnros.cfg file and/or
    • <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 loading scenarios. You must separate values with a period per line.
    • <data_set_id> in the dataset.cfg file
    • <network_id> in the network.cfg file
  3. Copy the XML files you plan to load into the directory that the load.dirname specifies in the install.cfg file.
    • (Optional) <Enter one of the user's choices while performing this step.>
    • (Optional) <Enter another of the user's choices while performing this step.>
  4. Execute the sm_load.sh script:
    1. Enter sm_load.sh dataset to load dataset metadata.
    2. Enter sm_load.sh scenario to load scenario metadata.
    3. .Enter sm_load.sh network to load network metadata.