Explainer
Using AF templates to monitor tags across multiple PI historians
Short answer
Build the fleet status display on an AF server template with one element per historian. Seven tags on each of 23 servers is 161 point references, and a spreadsheet client pays the 23-server connection setup on every open. A persistent AF-mapped display keeps connections established, and each value carries a freshness check so a stale green value never reads as healthy.
On this page
- Decide what each historian row shows
- Inventory the points before building the model
- Know where the multi-server startup delay comes from
- Map every plant with one server template
- Drive the colors from limits and freshness
- Add notifications so a down server finds you
- Worked example: sizing the display
- Questions asked
Build the fleet status display on a PI AF server template with one element per historian, not on another spreadsheet. Seven monitored tags on each of 23 historians is 23 × 7 = 161 point references, and a spreadsheet client pays the connection setup to all 23 servers every time the workbook opens — your current 23-server uptime workbook already takes about three minutes to load, and a workbook carrying all 161 references would be far worse. An AF-mapped display separates connection establishment from value reads: connections are built once and held, refreshes only fetch values, and each value carries a freshness check so an old green value never reads as a healthy server.
Decide what each historian row shows #
Define the operator view before configuring anything. Each row needs the plant name, the historian identity, the monitored values, their red-yellow-green states, and an indication of whether the data is current. The seven tags are mostly performance points — processor usage, memory usage, drive space — plus interface heartbeats.
Confirm early whether "seven tags" means seven points on each historian or seven points distributed across the fleet. On the per-server reading the display covers 161 point references; on the distributed reading fewer, but every interface heartbeat still needs an explicit mapping, because seven selected points per server may not cover all 49 interfaces.
Inventory the points before building the model #
Use the processor, memory, drive-space, and heartbeat points already collected into PI. Reading them through the historian APIs means the display client never queries operating-system counters over WMI, which your security policy rules out. If a metric is missing on a site, treat that as a collection requirement on that historian, not a reason to open WMI.
- List the seven measurements and their point names on each historian.
- Record the data type, units, and timestamp behavior of each point.
- Identify which interface each heartbeat represents and how it behaves when healthy — increments, toggles, or follows another documented pattern.
- Read each point directly using the identity the monitoring display will run under.
- Fix missing points, access failures, and collection faults before adding any display logic.
Metric names alone are not enough. Memory usage can be a percentage or an amount; drive space can be used or free, which reverses the alarm comparison. A heartbeat can hold a plausible last value after its producing interface stops. Separate a point fault from a binding fault: if a direct read succeeds but the display shows nothing, inspect the AF attribute mapping; if the direct read also fails, investigate point existence, permissions, connection status, and the collection path.
Know where the multi-server startup delay comes from #
The three-minute Excel startup is a measured symptom. The half-hour figure for an expanded workbook is an estimate, not a measurement. A client reading distributed historians must establish a session with each server and authenticate before values appear; with 23 remote sites, slow or unavailable destinations delay startup, especially when workbook calculations run sequentially. Changing the visualization does not repair a slow network path or an authentication problem — measure first.
- Time a cold start against one historian, separating connection establishment from the first successful point read.
- Add historians in controlled groups and record which additions increase startup time.
- Compare the initial open with a subsequent refresh once the connections are established.
- Repeat with the same account and network location the operational display will use.
- In a test, take one historian offline and watch how the client behaves.
PI DataLink stays fine for occasional uptime reports. For continuous at-a-glance status, a persistent display built on the AF model is the better fit, because it holds its 23 sessions instead of rebuilding them on every open. Compare both against the same point set rather than inferring performance from the application name.
Map every plant with one server template #
Create a server template carrying the attribute set for your health measurements. PI AF's attribute templates exist exactly for this: attributes defined on a template are created automatically on every element instantiated from it, and you then point each element's attributes at that server's own points. Instantiate one server element per historian, group them by plant where that helps operators find the affected site, and bind each attribute to the correct PI point — the underlying point names can differ between sites as long as each attribute resolves.
| Setting | Where it lives | What it does |
|---|---|---|
| Common measurement attributes | Server template | Gives every server the same display-facing structure |
| Historian and point reference | Each element's attribute configuration | Selects the actual data source for that server |
| Warning and alarm limits | Template defaults, overridden per element | Common rules with justified local exceptions |
| Freshness expectation | Monitoring configuration per measurement | Defines when a last value becomes unsuitable for live status |
| Interface association | Element hierarchy or documented mapping | Identifies which interface a heartbeat represents |
Commission one server element, then a second with different point bindings. That exposes references accidentally fixed to the first historian. Expand the fleet a few elements at a time instead of waiting to model everything at once — a single-template model monitoring a handful of servers is a day-scale build on one machine, and the remaining plants fill in during spare hours.
Drive the colors from limits and freshness #
Attach the red-yellow-green rules to the template as analyses or multi-state configurations evaluated against each attribute's limits, with the freshness check as part of the rule. The deciding check for each symptom:
| Screen symptom | Condition to distinguish | Deciding check |
|---|---|---|
| Whole display opens slowly | Connection setup or initial reads | Time connection separately from value retrieval |
| One value missing | Wrong binding or point-level access failure | Read that exact point under the display account |
| One plant's values all stale | Site connectivity or historian availability | Check the server connection and returned data status |
| Heartbeat looks normal but never changes | Interface failure or stale data | Compare the timestamp with the expected update pattern |
| Current value shows the wrong color | Limits, units, or comparison direction | Compare the displayed value with the configured rule |
The freshness check is what keeps the display honest. A disk-free value frozen since this morning is still a valid number with a green color under a value-only rule; comparing its timestamp against the expected update interval turns it red or stale instead.
Add notifications so a down server finds you #
Attach notification rules to the server template so every element inherits them. Configure them to trigger when a value crosses its limits or a freshness check fails, and to send an email alert when a historian stops responding. Each new server element then arrives with monitoring and alerting already attached — adding plant 24 costs one element and its point bindings, nothing else.
Worked example: sizing the display #
Take the per-server reading of the requirement: 7 tags per historian, 23 historians.
- Point references: 23 × 7 = 161.
- Status symbols: 161, one per reference, if every tag gets its own indicator; if you aggregate per server, 23 server-level indicators driven from the worst of each element's seven checks.
- Sessions: one per historian, 23 total, established once and reused — versus a spreadsheet client that re-establishes up to 23 sessions on every workbook open.
- Freshness thresholds, set per measurement: processor and memory points that update on a short collection interval get a tight threshold, for example flag a value older than two collection intervals; a heartbeat gets a threshold matched to its documented toggle or increment pattern; drive space, which changes slowly, gets a longer one so it does not false-alarm.
The decision: for the always-on red-yellow-green screen, build the AF server template, instantiate 23 server elements, bind the 161 references, drive each indicator from limits plus a timestamp check, and hang notifications on the template. Keep DataLink for the occasional uptime report. If a direct point read fails under the display account after the model is built, fix the point or the permission on that historian — do not work around it in the display layer.
Questions asked
Why is the Excel workbook so slow to open compared with a display built on AF?
A spreadsheet client opens the workbook, then connects and authenticates to each historian before any value appears. With 23 remote servers those connection attempts run up front, so a workbook that touched all of them could spend tens of minutes loading. A persistent display built on the asset model holds its sessions, so value refreshes are reads, not reconnects.
How many point references does a seven-tag, 23-server display involve?
If the seven tags exist on every historian, the display resolves 23 times 7, which is 161 point references. If the seven tags are spread across the fleet instead, the count is lower, but each interface heartbeat still needs its own mapping so you know which interface it represents and how it should behave.
Do I still need WMI access to the servers?
No. Processor, memory, and drive-space values are already collected into the historians as performance points, so the display reads points through the historian APIs and never queries the operating system directly. If a metric is missing on a site, add it as a collection requirement on that site's historian rather than opening WMI to the monitoring client.
How do I stop an old value from showing as green?
Give each measurement a freshness expectation in the monitoring configuration: compare the value's timestamp against the expected update pattern, and drive the status symbol from that check, not from the value alone. A heartbeat that stopped changing, or a disk-free point frozen from this morning, then shows as stale instead of healthy.
Should I add alerts as well as the status display?
Yes. Attach notification rules to the server template so every element inherits them, and have them trigger when a value crosses its limits or the freshness check fails. That way a down historian raises an alert even when nobody is looking at the display, and each new server element arrives with monitoring already configured.
How do I roll the model out across 23 plants without a big team?
Commission one server element, then a second with different point bindings to expose any reference accidentally fixed to the first site. After that, add elements a few at a time. A usable single-template model monitoring a handful of servers is a day-scale job; the remaining plants can be added in spare hours because the structure is already built.