Skip to main content

PI Data Ingestion Prerequisites

This page lists all prerequisites that need to be verified before ingesting data from a PI system into TDengine, including network connectivity, ports and protocols, authentication and permissions, and software dependencies. We recommend that PI administrators and network administrators complete this checklist together before creating PI data ingestion tasks.

1. PI System Connection Requirements

1.1 PI Data Archive

ItemDescription
Server AddressHostname or IP address of the PI Data Archive Server
Default Port5450 (PI Data Archive standard port)
ProtocolPI SDK / PI AF SDK proprietary protocol

1.2 PI AF Server

When using AF mode (PI Data Archive + AF Server), the following is also required:

ItemDescription
AF Server AddressHostname of the PI AF Server
AF Database NameName of the AF Database to connect to
Default Port5457 (PI AF Server standard port)
ProtocolPI AF SDK proprietary protocol
note

The ports listed above are PI system defaults. The PI connector (taosx-pi.exe) communicates with the PI system through PI AF SDK, and the ports are managed internally by the SDK — no manual port configuration is needed in the connector. However, the firewall must allow these ports; otherwise, the SDK connection will fail. If your PI system uses non-standard ports, please confirm the actual port numbers with your PI administrator.

2. Network and Firewall Requirements

The host running taosX (or taosx-agent) must be able to access the following ports on the PI system:

SourceDestinationPortProtocolDescription
PI Connector (taosX/taosx-agent host)PI Data Archive Server5450/TCPPI AF SDK proprietary protocolRequired, reads PI Point data
PI Connector (taosX/taosx-agent host)PI AF Server5457/TCPPI AF SDK proprietary protocolRequired when using AF mode
taosx-agenttaosXtaosX configured portgRPCRequired when using Agent proxy mode

If your network environment has firewalls or network isolation, ensure the above ports are allowed.

tip

How to verify port connectivity: On the taosX / agent host, you can use the following commands for quick verification:

# Windows PowerShell
Test-NetConnection -ComputerName <PI_SERVER_HOST> -Port 5450
Test-NetConnection -ComputerName <AF_SERVER_HOST> -Port 5457
# Linux (only for verifying taosX ↔ agent connectivity)
nc -zv <HOST> <PORT>

3. Authentication and Service Account Requirements

The PI Connector (taosx-pi.exe) runs as a subprocess of taosX or taosx-agent and connects to the PI system through PI AF SDK. Authentication is handled by the Windows operating system (Kerberos or NTLM integrated authentication) — it does not rely on PI's internal account/password system.

3.1 Authentication Mode

The Username/Password/Domain fields in the connection configuration (all optional) control the authentication mode:

Field valuesAuthentication modeDescription
All blank (recommended)Windows Integrated AuthenticationThe connector accesses PI using the Windows identity of the taosx-agent service account (Kerberos or NTLM)
Username + Password (± Domain) filled inExplicit credentialsAccesses PI using the specified Windows account, overriding the service account identity
tip

By default, you do not need to fill in Username, Password, or Domain. Leaving them blank uses Windows integrated authentication, where the connector accesses PI using the taosx-agent service account's Windows identity. This is the recommended approach for production environments. For a detailed explanation, see Connection Configuration and Authentication.

taosx-agent runs as the Windows Local System account by default, which in a domain environment corresponds to the machine account (e.g., DOMAIN\machinename$). In production environments, we recommend configuring taosx-agent to run under a dedicated domain service account for easier permission management on the PI side.

3.2 PI Data Archive Permissions

The service account running the connector needs the following permissions on the PI Data Archive:

  • Permission to read PI Point data (via PI Identity or PI Mapping)
  • Permission to read PI Point attributes

The PI administrator should use PI System Management Tools (SMT) to create a Mapping that maps the Windows account's SID to a PI Identity with read permissions (SMT → Security → Mappings).

3.3 PI AF Server Permissions

When using AF mode, the service account also needs:

  • Read permission on the target AF database
  • Read permission on AF Elements and their Attributes

In PI System Explorer (PSE), add the Windows account to the AF database access control and grant Read and Read Data permissions.

3.4 Service Account Recommendations

RecommendationDescription
Create a dedicated domain service accountAvoid using Local System (machine account), personal accounts, or high-privilege administrator accounts
Principle of least privilegeGrant only read access to PI data; no write permission is needed
Domain accountWhen the PI system uses domain authentication, use a domain account to support Kerberos
Password policyRecommend setting password to never expire, or coordinate with password rotation policies

4. Software Dependencies

The PI connector depends on PI AF SDK (PI AF Client), which must be installed on the host running taosX or taosx-agent.

DependencyMinimum VersionDescription
Operating SystemWindows Server 2016+ / Windows 10+PI AF SDK only supports Windows
PI AF SDK (PI AF Client)2018+Obtain the installer from OSIsoft / AVEVA
.NET Framework4.8+Runtime dependency for PI AF SDK
warning

PI AF SDK only supports Windows. If taosX is deployed in a Linux environment, you must connect to the PI system through taosx-agent (deployed on a Windows host) as a proxy.

5. Validation Checklist

Before creating a PI data ingestion task, please confirm each of the following items:

Network and Connectivity

  • PI Data Archive Server hostname confirmed (hostname recommended over IP; using IP may affect Kerberos authentication): _______________
  • PI AF Server hostname confirmed (if using AF mode): _______________
  • AF database name confirmed (if using AF mode): _______________
  • PI Data Archive is accessible from taosX/agent host (port 5450)
  • PI AF Server is accessible from taosX/agent host (port 5457, if using AF mode)
  • On the taosx-agent host, manually verified PI connectivity using PI System Management Tools (SMT) or PI System Explorer (PSE) — isolate environment issues before testing taosX
  • If using Agent proxy mode, taosx-agent service is running, taosX ↔ agent network is connected, and agent status shows online in Explorer

Authentication and Permissions

  • taosx-agent's Windows running identity confirmed (default: Local System → domain machine account DOMAIN\machinename$; or a custom domain service account)
  • That Windows identity has a Mapping configured in PI Data Archive pointing to the appropriate PI Identity (read permission)
  • AF mode: that identity has Read / Read Data permissions in AF Server Security
  • Connection configuration Username/Password/Domain are left blank (use Windows integrated authentication)

Software Environment

  • taosX/agent host operating system is Windows
  • PI AF SDK (PI AF Client) is installed
  • .NET Framework 4.8+ is installed

TDengine Side

  • TDengine cluster is deployed and running normally
  • Target database has been created (or ready to create in Explorer)
  • taosX is installed and accessible through Explorer

Task Configuration

  • PI Data Archive Server name uses hostname format
  • Clicked Connectivity Check button and connection test passed