Register an OSI PI Extractor
This topic describes the steps to register and configure an OSI PI extractor in order for OSI PI data to egress to FactoryTalk DataMosaix.
Prerequisites
- A project is created using FactoryTalk DataMosaix
Register an OSI PI Extractor
- On the Management Console, select theExtractor Infotab.The Extractor list is displayed.
- Click the Add [+] icon.TheExtractor Info Detailpage is displayed.
- Provide a unique name for your Extractor. The Source Name works as the identifier for your extractor. You can search for an extractor with the Source Name. By default, DataMosaix generates a source name.Source Name example: EXT_1406230728_createproject_v1.Here, EXT stands for extractor, 140623 is the date in ddmmyy format, 0728 is the timestamp in hhmm format, and createproject_v1 is the project in which you are currently working. You can use the default source name or create your own.
- Provide the location details for which you are creating the extractor. This information can help you to identify an extractor when you have many extractors for different plants/sites/locations.
- From the Associated Roles drop-down list, select at least one role. You can refer to various roles and capabilities by clickingRole Reference.You can select multiple roles from the Associated Roles drop-down list. In the search bar, you can search for any specific role from the list. If you want to apply all the roles to the application, select theSelect Allcheckbox.NOTE:The Associated Roles drop-down is visible and available only for Project Admin users or users within the Organization with a Project Admin Role assigned.Next, you can select a pipeline or create a new pipeline. When you create a new pipeline, you have the option of selecting from an existing dataset or creating a new dataset.
- From the pipeline drop-down, select a pipeline. On selecting a pipeline, the Pipeline External ID and Dataset Name fields are populated.To create a new pipeline, select the+ Create Pipelineoption.The Create Pipeline dialog box is displayed.
- Provide the following Pipeline information to create a new pipeline:
- Pipeline Name
- Pipeline External ID
- Pipeline Description
- When you create a pipeline, you can either select an existing dataset or create a new dataset. Select a Dataset from the drop-down if you want to use an existing Dataset.If you choose to create a new Dataset, the Dataset related fields are displayed. Provide the following dataset information:
- Dataset Name
- Dataset Description
- ClickAdd. Based on the options you choose (select or create), the Pipeline and Dataset information is either generated or created and displayed on the Extractor Info Detail page.
- Select the source type of extractor as FT HISTORIAN.The fields relevant to the OSI PI extractor appear on the screen for you to fill in details.
- In the PI Host, provide the hostname or IP address of the OSI PI server that you want to connect to.You can leave the OSI PI server username and password fields empty.
- In the Username and Password fields provide the credentials to connect to the PI Host if you need it. If the PI host server is on local host you can leave it blank.NOTE:The Save and Apply button enables only after you provide all the required details.
- ClickSave and Apply.TheGenerated info Saveddialog box is displayed and it contains the configuration information. You can view the configuration file details by clickingView generated configuration file. Alternatively, you can also copy and save the information for future use by clickingCopy All. You can also download the config.yml file that includes all the configuration information that you can use to run the extractor.
- ClickDownload.The config.yml file is downloaded in the Downloads folder of your local machine.
- ClickCloseto close the dialog box.The new extractor is displayed under Extractor Listing.
- Navigate to your project in CDF by clicking [Continue to Main Site] and selectIntegrate>Connect to source systems.
- On the Extract data screen, locate theRockwell FactoryTalk Historian SEextractor and select it.
- Download the PI extractor msi file from CDF.
- Copy the downloaded config.yml file to the folder where the extractor is installed. The default location is: C:\Cognite\PiExtractor\config. You must paste the copied config.yml file into the 'config' folder.
- Run the extractor on the command line.Alternatively, you can run the PI extractor as a Windows service. To learn more, refer to Run as a Windows service.
- Once the extractor has been configured and executed successfully, navigate to your project in CDF Project and open the pipeline by selectingIntegrate>Monitor Extractors.
- Click the pipeline link.You should see the information mentioning that the extractor has run successfully.
- Click on the Data set link under basic information section to open the Data set details.
- Click on the Data tab.You should see the asset and time series data. You may also see Assets depending on the configuration of the namespace on the PI Server.
Troubleshooting the OSI PI Extractor
- Use a yml Lint site to validate your yml file.
- Look at the log file in the logging folder (as configured in the configuration file) for any error messages. You can find the log file in the following location: C:\Cognite\logs\log.txt.
- Double-check your PI servername and, if necessary, the username, password. You may need quotes around username, password, servername.
- Double-check that all references to dataset and pipeline IDs are correct.
- Double-check that the client ID and secret in the on-prem configuration file is correct.
- If you start the extractor but the dataset remains empty (no linked timeseries), this may be because the timeseries already existed before the extractor ran successfully and those timeseries are not linked to the dataset. Try one of the following:
- Change the value of theexternal-id-prefixfield in the time-series section of the config.yml file and restart the extractor.
- Using postman or your favorite api client, delete all timeseries and restart the extractor.
Provide Feedback