Deployment

Deploy R Scripts for the First Time

Before you begin

The following table outlines the steps that you must complete to deploy and configure this module for the first time. These instructions assume that you have completed the steps for deploying the basic system architecture.

These tasks may be completed by multiple people in your organization. We recommend, however, that the tasks be completed in the order in which they are listed.

If you are deploying this module in APM Now, before you begin completing these tasks, review the system requirements for this module to identify the supported features for this module in APM Now . Unless noted, all deployment tasks in the following table are applicable for the deployment of this module in APM Now.

Results

StepTaskNotes
1Ensure that your R Server is configured according to the R Scripts system requirements.This step is required.
2In GE Digital APM, specify the R Server credentials.This step is required.

Upgrade or Update R Scripts to V4.3.0.6.0

Before you begin

The following tables outline the steps that you must complete to upgrade this module to V4.3.0.6.0. These instructions assume that you have completed the steps for upgrading the basic GE Digital APM system architecture.

These tasks may be completed by multiple people in your organization. We recommend, however, that the tasks be completed in the order in which they are listed.

Procedure

Upgrade R Script Metadata

About this task

If you are upgrading directly from V3.6.0.8.0, after upgrading your database to V4.3.0.6.0, you must run a script in order to upgrade existing R script metadata. This step is not required if you are upgrading from any V3.x version other than V3.6.0.8.0.

Note: If you are unsure whether you need to complete this step, or if you would like assistance, please contact GE Global Support.

Procedure

  1. Copy the script corresponding to your type of database.

    Oracle

    
                        -- select * from dbo.[MI_CTIT_RSCRIPTS]
                        UPDATE MI_CTIT_RSCRIPTS
                        SET CTIT_RSCR_DEFN_MEM = REPLACE(CTIT_RSCR_DEFN_MEM, '"DataType":"n"', '"DataType":"N"');
                        UPDATE MI_CTIT_RSCRIPTS
                        SET CTIT_RSCR_DEFN_MEM = REPLACE(CTIT_RSCR_DEFN_MEM, '"DataType":"c"', '"DataType":"C"');
                        UPDATE MI_CTIT_RSCRIPTS
                        SET CTIT_RSCR_DEFN_MEM = REPLACE(CTIT_RSCR_DEFN_MEM, '"DataType":"d"', '"DataType":"D"');
                        UPDATE MI_CTIT_RSCRIPTS
                        SET CTIT_RSCR_DEFN_MEM = REPLACE(CTIT_RSCR_DEFN_MEM, '"DataType":"l"', '"DataType":"L"');
                    

    SQL

    
                        -- select * from dbo.[MI_CTIT_RSCRIPTS]
                        UPDATE dbo.[MI_CTIT_RSCRIPTS]
                        SET CTIT_RSCR_DEFN_MEM = CAST(REPLACE(CAST(CTIT_RSCR_DEFN_MEM as NVarchar(MAX)),'"DataType":"n"', '"DataType":"N"') AS NText)
                        UPDATE dbo.[MI_CTIT_RSCRIPTS]
                        SET CTIT_RSCR_DEFN_MEM = CAST(REPLACE(CAST(CTIT_RSCR_DEFN_MEM as NVarchar(MAX)),'"DataType":"c"', '"DataType":"C"') AS NText)
                        UPDATE dbo.[MI_CTIT_RSCRIPTS]
                        SET CTIT_RSCR_DEFN_MEM = CAST(REPLACE(CAST(CTIT_RSCR_DEFN_MEM as NVarchar(MAX)),'"DataType":"d"', '"DataType":"D"') AS NText)
                        UPDATE dbo.[MI_CTIT_RSCRIPTS]
                        SET CTIT_RSCR_DEFN_MEM = CAST(REPLACE(CAST(CTIT_RSCR_DEFN_MEM as NVarchar(MAX)),'"DataType":"l"', '"DataType":"L"') AS NText)
                    
  2. Using SQL Server Management Studio (for SQL) or SQL Developer (for Oracle), run the script.

    The R script metadata is upgraded.

Specify R Server Credentials

Procedure

  1. On the left navigation menu, select Admin, and then select Operations Manager.
  2. In the Operations section, select Connections.
  3. Select the R Server tab.

    The R Server workspace appears.

  4. In the Server Address box, enter the appropriate URL to the R Server (e.g., http://MyRServer:7400/deployr).
  5. In the User Name and Password boxes, enter the DeployR username and password that you want to use for the connection.
  6. Select Save.

    The R Server credentials are saved.

  7. Select Test Connection to confirm that the connection is valid.

What to do next