MOI Metric Extractor Utility
search cancel

MOI Metric Extractor Utility


Article ID: 236149


Updated On:


Mainframe Operational Intelligence


The MOI Extract utility can extract up to 45 days worth of metric data for specified metrics for analysis by the MOI team.

Metrics that are interesting to you.  Examples would be: 

  • Any event which is worth sharing for further analysis 
  • Metrics that generated a valuable alert or even a potential useless alert 
  • Green Highway learning that is looking correct to you or that is looking different than you expect 
  • Machine learning that seems to be “adapting” vs “not adapting”




Mainframe Operational Intelligence

MOI 2.0.06


MOI Metric Data Extraction

  1. On your MOI appliance, create the following directory in the /tmp directory

         cd /tmp

         mkdir  extract-moi-data

  1. Download the tar file, , moi-metric-extractor-v1_1646418444069.tar,  attached to this Knowledge Document to the /tmp/extract-moi-data directory. 
  2. In the extract-moi-data directory, run the following command to untar/unzip the downloaded tar file:

           tar -xvf moi-metric-extractor-v1_1646418444069.tar

          The following files will be extracted:




  1. You will need to select each metric that you want to extract using the following process:

            * display the desired metric via the MOI UI .   The UI example below is for metric CPU%.

            * Click on the Context URL dropdown button  at the top of the  UI to show the metric  URL

            * Click on the copy icon on the far right of the dropdown to copy the URL

           * Paste the URL into any text editor and then select and copy the metricKey VALUE  as shown below:


          * Go to the tmp/extract-moi-data directory and edit the metricToExtract.csv file with the vi                 editor

          * Insert the copied metricKey VALUE after the   instanceId=  string on the template line


         * Repeat this Step 4 process by inserting additional instanceId= lines into the metricToExtract.csv file and copying additional metricKey VALUES into them.   Add all the metrics that you would like to extract and then save the metricToExtract.csv file.  

         Please ensure that the syntax of the ‘instanceId=’ string on all added lines match the original template line or you will get an error and your metric data will not be extracted.   

        *  You are now ready to start the metric extract process with Step 5 below.


  1.   Clear directory /var/opt/moi/share/backups/ with the following command: 

           rm /var/opt/moi/share/backups/*

  1. Run the script 


  1. Once script has executed successfully, upload ALL files in this directory 


                  to the Support Case along with the output log of the extract script.

Please note: This metric extract  can take 10+ minutes to finish its execution.


moi-metric-extractor-v1_1646418444069.tar get_app