Explainer
What shows third-party client connections to a PI Server
Short answer
No single AVEVA product produces one report of every third-party client on a PI Server. Build the inventory by correlating PI SMT connection views and Network Manager Statistics with each application's access path, its effective identity from mappings versus trusts, and request and byte rates sampled over a clock-synchronized window.
On this page
- What the PI Server can and cannot name
- Reading connections and permissions in PI SMT
- What each connector changes about attribution
- Mapping versus trust: the identity that actually applied
- Measuring frequency and throughput over a synchronized window
- Worked example: one OPC DA/HDA connector over a one-hour window
- Assembling the report and the three decisions
- Questions asked
No single AVEVA tool turns the PI Server's connection table into the report you want: one product that lists every third-party application with its name, access path, security identity, throughput and target member. PI System Management Tools gives you the raw pieces — the Data Archive connection views, Network Manager Statistics and the searchable Data Archive message log — and the report exists only once you correlate those pieces with each application's configured access path, the mapping or trust that granted it access, and request and byte counts sampled over a clock-synchronized window. Build that correlation once, keep it as a living spreadsheet, and it answers the three questions behind the request: which connections to move for load sharing, which identities to narrow, and which connections to shut down.
What the PI Server can and cannot name #
The Data Archive sees sockets, presented users and PI identities. It does not see application names, owners or purpose. One application can hold several connections, and an intermediary such as PI OPC Server or a Web API node terminates the upstream client and opens its own downstream connection, so the server-side list shows the intermediary's host rather than the application's. That single fact is why a connection screenshot cannot be the report: for intermediated paths it undercounts applications, and for direct clients that open several sessions it overcounts them.
Keep AF and Data Archive records separate from the start, because an application's metadata path and its time-series path need not terminate on the same component. The first column of the report — application name and owner — therefore comes from your own inventory and each application's configuration, not from the server.
Reading connections and permissions in PI SMT #
PI System Management Tools is the graphical interface for Data Archive administration, documented in AVEVA's PI Server administration guides, and it works against all selected Data Archive servers and collectives, so one pass covers both members of a replication pair. Three views carry the audit:
- The connection views list each live session with its client host, the user it presented, and the mapping or trust that matched.
- Network Manager Statistics shows the connections and the permissions your users and applications actually receive, which is where you confirm the effective identity instead of assuming it from the host name.
- The Data Archive message log is searchable across the selected servers and collectives; its connection, authentication and security messages give session start and end times, which a live view cannot.
Respect the gap: these views show state at the moment you look. A client that connects, pulls a day of history and disconnects between two manual checks never appears in a screenshot. The message log and the sampled counters catch it, which is why the measurement below is a window, not an instant.
What each connector changes about attribution #
The third-party paths in use are RDBMS, PI OPC Server, OLEDB, Web API, AF SDK, OPC DA/HDA and plain API clients. These labels describe different interfaces at different layers; they are not interchangeable connection types, and an entry that only says RDBMS in an application's configuration needs that application's actual driver confirmed before it becomes an inventory row.
Split the paths by who terminates the connection:
- Direct clients — AF SDK and OLEDB among them — land on the server with the application host's own address, so the server-side record attributes itself. That library still fails in client-specific ways, and why an AF SDK application cannot connect on a client machine covers the connection-side checks.
- Intermediated clients — anything reaching PI OPC Server, Web API or an OPC DA/HDA server — hide behind the intermediary. Record the intermediary's downstream endpoint as its own row, then use the intermediary's client list or logs to attribute upstream consumers. The same applies when an HTTP hop is involved; why an ASP historian to PI Web API connection test fails shows what the Web API layer adds beyond plain connectivity.
- For every configured endpoint, record whether it points at the primary or the secondary member, then confirm against server-side observation where the requests actually went. Configuration describes intent; the receiving server's connection list establishes where the workload landed.
Mapping versus trust: the identity that actually applied #
The documented division of labor: trusts were typically used to authenticate PI interfaces, while mappings were used to authenticate Windows users on the Data Archive. A mapping ties an authenticated Windows identity to a PI identity. A trust grants a PI identity based on attributes of the connection itself, with no login presented — which is why it suited unattended interfaces. The audit records which mechanism actually matched each connection, because the effective identity decides the permissions, and a familiar application name decides nothing.
Keep three separate columns: the service account the application runs under, the identity the connection presents, and the effective PI identity after the mapping or trust match. A row that resolves to a trust holding piadmin goes to the top of the security list — the vendor explicitly advises against giving that powerful identity to trusts.
AF is authorized separately. A Data Archive trust or mapping says nothing about the same application's AF permissions, so an application that reads both gets two identity rows from two different security models, and each is judged on its own.
Measuring frequency and throughput over a synchronized window #
A connection count is not a load measurement. An idle session can sit open for weeks, and a short-lived client can issue an expensive historical query and disconnect before anyone looks. Measure three separate columns: access frequency in requests, returned data volume in bytes, and server resource demand. Returned bytes are not total network bytes — protocol overhead and the requests themselves ride the same wire.
The method, for cumulative counters:
- Synchronize clocks on the application host, the intermediary and the server before sampling, and record the window's start and end times.
- Take two samples of each counter per connection.
- If the second sample is smaller than the first, the counter reset: discard the pair and resample.
- Compute the rate as the second sample minus the first, divided by the elapsed seconds.
- Use the same window on the application, the intermediary and the server, and label the scope in every rate column. Gateway-level bytes must not appear as per-application throughput without an attribution method.
Prove the method once per audit: run a single isolated read from one application and confirm that the counters you expect to move actually move.
Worked example: one OPC DA/HDA connector over a one-hour window #
The case: an OPC DA/HDA client behind a PI OPC Server — the typical intermediated path from the list above — sampled on its downstream connection during a business-hours audit.
Inputs:
- Window: 09:00:00 to 10:00:00, an elapsed 3,600 s, with clocks synchronized on both hosts.
- Counter source: the connection's cumulative request and byte counters in the server-side statistics view.
- Sample A at 09:00:00: 1,437,602 requests and 6,300,000,000 bytes.
- Sample B at 10:00:00: 1,473,602 requests and 6,480,000,000 bytes.
- Both samples are example readings for this case, not documented rates; the method is what carries over.
The rule in words: subtract the earlier sample from the later one, divide by the elapsed seconds, and reject the pair if the counter went down.
The arithmetic:
- Requests: 1,473,602 − 1,437,602 = 36,000 requests over 3,600 s, so 36,000 ÷ 3,600 = 10.0 requests per second.
- Bytes: 6,480,000,000 − 6,300,000,000 = 180,000,000 bytes over 3,600 s, so 180,000,000 ÷ 3,600 = 50,000 bytes per second, and 50,000 × 8 = 400,000 bits per second, or 0.4 Mbit/s.
The result: this one connector sustained 10.0 requests per second and 50,000 bytes per second for that hour.
The decision: 36,000 requests in one hour from a single downstream connection is a real, attributable workload, so this connector goes on the load-sharing list — first candidate to repoint at the secondary member or to move its polling out of the daytime peak — with its trust kept narrow. Contrast the connection sampled over the same window whose counters do not move: it consumes a session slot but no throughput, so it goes to the shutdown-review list, not the load plan. The working rule the whole audit applies: tens of thousands of requests per hour from one connection means load sharing; a zero delta over a business-hours window means shutdown review.
Assembling the report and the three decisions #
| Report field | Source | What it decides |
|---|---|---|
| Application name and owner | Your inventory and the application's configuration | Who confirms the row before any change |
| Client host | Connection views and message log | Where the workload originates |
| Connector and intermediary | Application configuration plus server-side observation | Whether PI sees the application or a gateway |
| Target member, primary or secondary | Configured endpoint plus server-side observation | Whether the load can be moved |
| Mapping or trust and effective identity | Security configuration and connection details | The security-review ranking |
| Requests and bytes over the window | Sampled counters | The load-sharing ranking |
Load sharing: rank connectors by their request and byte deltas, move the heaviest one first, and re-measure with the same window after each move. Load moves one connector at a time, never as a cutover.
Security review: rank by what the effective identity can do, not by how often it connects. Trusts resolving to piadmin are dealt with first, then mappings to accounts shared across several hosts. For intermediated paths, one broad downstream identity serves every upstream consumer, and what anonymous OPC UA gateway access exposes from a historian shows how far an unauthenticated gateway row can reach.
Shutdown review: a connection with no owner and no expected endpoint after one full pass gets one confirmation call to the presumed owner, then its trust is disabled or its identity narrowed — not left in place for a later round. Before disabling anything, confirm the consumer does not feed an operator screen or a system with a safety-related function, and make the change under change control in a planned window.
Questions asked
How often should the client inventory be rebuilt?
Rerun the correlation quarterly, and again after any new connector goes live, a collective member is promoted, or the Data Archive is upgraded, because each of those can change which paths and identities exist. Keep the previous snapshot so the comparison shows which connections appeared, disappeared or changed identity, which is faster than reading every row fresh.
Can the same application appear under two identities?
Yes. A service on one host can match a mapping for its Windows service account while a script on the same host matches a trust, so one workload shows up twice with different permissions. Record both rows, decide which mechanism should remain, and remove the other rather than leaving duplicate access paths.
Do clients of the secondary member need their own audit pass?
Yes. A client configured for the secondary arrives on that node with its own mapping or trust match, so run the same connection, log and counter review on every member of the collective. Expect the counts to differ between members, because the primary and the secondary carry different client populations and replication traffic.
What is the fastest way to spot an unwanted connection?
Sort the inventory rows by owner. Every row without a named owner and a named purpose is the candidate list, because a wanted connection in a maintained plant always has someone who admits to it. Confirm with the presumed owner before touching anything, since an unclaimed row can also mean the inventory is incomplete rather than the connection being rogue.