Beruflich Dokumente
Kultur Dokumente
PI TR-011
IT Monitor Server and Interfaces
Version 2.1
Course Content
Day 1 Installing and Managing the Server
Course Content
Day 2 Consulting and Organizing Data
8. PI ProcessBook
9. PI DataLink
10.PI Module Database
Course Content
Day 3 Gathering Information from IT Infrastructure
Course Content
Day 4 Gathering Information from IT Infrastructure
Course Content
Day 5 Gathering Information from IT Infrastructure
22.PI Security
23.Distributed Interfaces
24.PI IP Flow and PacketCapture
25.Global Recap exercise
26.Advanced Topics
27.IT Monitoring Suggestions
1.0 Introduction
to PI and IT Monitor
Objectives:
What is IT Monitor?
Printers
Networking equipment
Servers and computers
Storage Area Networks (SANs)
Uninterruptible Power Systems (UPSs)
Applications
Voice Over IP Systems
And many more
Copyright 2007 OSIsoft, Inc.
IT Monitor
10
11
The
Visuals
The
Analytics
The
Server
Structure /
Asset
Data
Product
Lean
Asset
Situational
Quality Manufacturing Management Awareness
Real-Time
Data
Custom
Data
IT Data
Relational
Data
Web
Services
ERP /
Maintenance
12
The
Server
The
Analytics
The
Visuals
Data Access
RtBaseline Services for
Thin Clients
OLEDB
Module Database
Analysis Framework
ODBC
PI Archive
Data Storage, Management Services,
Audit Trail, Batch
Custom Programming
OPC / HDA
MCN HealthMonitor
& System Management Tools
RLINK
Real-Time Interfaces
Real-Time Data
Custom Data
IT Data
APIs / SDKs
IT Monitor
Relational Data
OLEDB / ODBC
ORACLE / SQL
ERP / Maintenance
RLINK SERVERS & GATEWAYS
SAP / JD EDWARDS / PEOPLESOFT
MAXIMO / INDUS / MIMOSA
Web Services
SOA / External Data
Legacy Applications
13
The
Analytics
The
Server
Windows Server 2003
The
Visuals
Visual Studio.NET
RtReports
Compliance & Standard
Sigmafine
Facility Monitor
PI Analytics
(Performance Equations, Totalizer, Alarms, RTSQC)
14
The
Visuals
The
Analytics
Smart Clients
BatchView
SQC Client
AlarmView
Thin Clients
ProcessBook
RtWebParts
RtActiveView
RtGauge
RtGraphic
RtMessenger
RtTimeRange
RtTreeView
RtTrend
RtTable
RtXYPlot
RtActiveView
RtGauge
RtGraphic
RtTable
RtTagSearch
RtTimeRange
RtTreeView
RtTrend
RtKPI
RLINK iViews
ActiveView
ProfileView
DataLink
RtPortal iViews
Additional Clients
DataLink Server *
RtReports Editor
RtReports Generator
15
16
2.1 PI Architecture
Client Stations
- ProcessBook
- DataLink
- RtWebParts
- Profile
- BatchView
- SQC
PI Server
Other System
Analytical
tools
- ERP
- Maintenance
- Lims
- ACE
- Sigmafine
Data
Acquisitio
n Node
Data
Acquisitio
n Node
Data
Sources
Data
Sources
18
IT Monitor Architecture
Client Stations
- ProcessBook
- DataLink
- Etc.
Intranet/Interne
t
- ActiveView
- RtWebParts
IT Monitor Server
(PI Server)
Data
Sources
- Printer
- Switch
- Server
- Etc.
Copyright 2007 OSIsoft, Inc.
19
PI Server Subsystems
Foreign Data Source
PI Server Core
Subsystems
Snapshot
Archive
Client Node
Interfaces
Random Simulator
RampSoak Simulator
Basic IT Monitor
Interfaces
PI Network
Manager
Update Mgr
Base
Server Applications
Message
PI SQL
Equations
Totalizer
Batch
Batch Generator
Alarm
SQC
Redirector
Backup
Utilities
Recalculator
License
20
Client
Application
Request
PI Network
Manager
PI Base
Subsystem
Response
PI Snapshot
Subsystem
PI Archive
Subsystem
22
Snapshot
Event Queue
Data
Compression
file(s)
PISnapSS
Shared Memory
Archive
PIArchSS
Online Archives
Archive
Cache
Primary Archive
Copyright 2007 OSIsoft, Inc.
23
PI Archives
Online Archives
Primary Archive
24
2.3 PI Points
What is a PI Point?
26
PI Point Attributes
27
Point Names
* ? ; { } [ ] \ `
Also, avoid _ because it is used in SQL queries as the wildcard
character
28
Point Classes
BASE
Included in all point
types
Totalizer
SQC_Alarm
Classic
Alarm
Base +18
Base +26
Base +15
Base +22
29
Point Types
Int16:
Int32:
Float16:
Float32:
Float64:
Digital:
Discrete value
(Up/Down, High/Medium/Low, On/Off)
String:
30
Float16
31
Float32 - Float64
32
33
Zero = 50
Span = 100
Zero = 0
Span = 100
Zero = -50
Span = 100
34
Step Attribute
Step=0
Step=1
35
Point Changes
Deleting a point
Renaming a point
36
3.1 Installation
IT Monitoring Products
PI Server
PI Interfaces (see notes below for complete list)
PI Interface Configuration Utility
PI System Management Tools (+ IT add-ins)
PI ProcessBook
PI DataLink
Demo and Samples
38
Start PI services
Stop PI services
39
41
42
43
PI TagConfigurator
44
Settings
Connect on startup
Allow point deletion, creation
45
Import Tags
46
Export Tags
47
Recommendations
All the attributes are exported, not only those that have
changed
48
49
5.0 PI Backup
51
Online Backup
PI Backup subsystem
52
53
- Backup is driven by
backup application
11
Features:
- Full read/write PI Server
operation except for less
than 1 second
Base
BaseSubsystem
Subsystem
Point
PointDB
DB
Module
ModuleDB
DB
Security
DBs
Security DBs
Snapshot
SnapshotSubsystem
Subsystem
Snapshot
SnapshotTable
Table
11
VSS-aware
VSS-aware Backup
BackupClient
Client
PI Backup Subsystem
PI Backup Subsystem
(pibackup.exe)
(pibackup.exe)
11
Archive
ArchiveSubsystem
Subsystem
Archive
ArchiveTable
Table
Archive
0
(primary)
Archive 0 (primary)
Archive
Archivenn
11
Batch
BatchSubsystem
Subsystem
Batches/Batch
Batches/BatchUnits
Units
11
Message
MessageSubsystem
Subsystem
Message
MessageLog
LogFiles
Files
54
Backup
Backup
Subsystem
Subsystem
(pibackup.exe)
(pibackup.exe)
Base
BaseSubsystem
Subsystem
Point DB
Point DB
Module
ModuleDB
DB
Security
DBs
Security DBs
11
Snapshot
SnapshotSubsystem
Subsystem
Snapshot Table
Snapshot Table
Features:
- No subsystems
stopped
33
piartool
piartool-backup
-backup
- No closed files
44
- Read-only operation
during each file copy
Backup
BackupScripts
Scripts(simple
(simplewrappers)
wrappers)
pibackup.bat
pibackup.bat
pibackuptask.bat
pibackuptask.bat
Archive
ArchiveSubsystem
Subsystem
Archive
ArchiveTable
Table
Archive
Archive00(primary)
(primary)
Archive
Archivenn
55
Batch
BatchSubsystem
Subsystem
Batches/Batch
Batches/BatchUnits
Units
66
Message
MessageSubsystem
Subsystem
Message
MessageLog
LogFiles
Files
55
pisrvsitestart.bat, pisrvsitestop.bat,
pisitestart.bat, pisitebackup.bat,
pintbackup.bat, pibackup_3.4.370.bat
56
57
Example:
PIBackup.bat E:\PI\Backup 2 *-60d -install
58
59
60
61
62
Permanent Backup
OSIsoft recommends:
Making a permanent backup of the archive files
Backing up the configuration files along with the
archives
Backing up files that are not part of the backup
script:
63
Backup Complete
64
66
67
The server should be disconnected from the network for the time
of the restoration, and reconnected prior to the final restart
68
Objectives:
70
Exception reporting
Compression algorithms
Scan rates
Scaling (float16)
Precision of information
Performance
Storage space
Network utilization
Dynamics of the scanned value
Copyright 2007 OSIsoft, Inc.
71
New value
(scan or
exception
based)
Exception
Report
Snapshot
Exception
PI
compression
algorithm
PI
Archives
Compression
PI Server
72
Temperature
Time
Copyright 2007 OSIsoft, Inc.
73
Exception Test:
ExcMax (time)
Current Snapshot
+ ExcDev
- ExcDev
74
New Value
Exception
Current Snapshot
12:00
50.0
Yes
12:00
50.0
12:01
50.3
No
12:00
50.0
12:02
51.1
Yes
12:02
51.1
No
12:02
51.1
12:12
51.4
Yes
12:12
51.4
75
Temperature
E: Exception
P
P: Previous
Time
76
Temperature
Time
Copyright 2007 OSIsoft, Inc.
77
Exception Test
Temperature
Snapshot value
Trend if
previous
value is sent
+/- ExcDev
Previous value
Time
78
79
Compression Test:
Last archived
value
Current
snapshot
ev
+ CompD
ev
- CompD
80
Temperature
A: Archived Value
Copyright 2007 OSIsoft, Inc.
Time
81
Compression Results
Temperature
Time
Copyright 2007 OSIsoft, Inc.
82
Compression Results
Temperature
After
Raw values
Exception
Compression
scanned
Time
Copyright 2007 OSIsoft, Inc.
83
Behavior of Compression
84
Data Flow
85
Exception Reporting
Attributes
ExcDev or
ExcDevPercent
ExcMax
ExcMin
Compression
Attributes
CompDev or
CompDevPercent
CompMax
CompMin
Compressing
86
87
Recommendation
88
CPU:
Memory:
Disk space:
Ping:
1 second
10 seconds
1 minute
1 minute
89
90
91
PI Time Format
* : (NOW)
t : 00:00:00 on the current day (TODAY)
18-feb-07 16:00:00
+8h : + 8 hours
Combined
93
Absolute Time
dd-mmm-yy HH:mm:ss
dd
mmm
yy
HH
mm
ss
Day
Month (Jan, Feb, Mar, Apr, May, )
Year
Hours in 24 hour format
Minutes
Seconds
Example:
18-feb-07 10:43:29
Copyright 2007 OSIsoft, Inc.
94
Absolute Time
dd-mmm-yy HH:mm:ss
"Date" fields default to the current date
"Time" fields default to 00.
Expression
Meaning
25
18-Feb-07
8:
25 8
21:30:01.02
95
Meaning
Current time
Monday, Tuesday,
Wednesday, Thursday,
Friday, Saturday.
Sunday
96
Relative Time
Number of:
Weeks (w)
Days (d)
Years (y)
Months (mo)
Hours (h)
Minutes (m)
Seconds (s)
+2.5h, -0.5m
Meaning
+2d
+ two days
-1.5h
+32m
+ 32 minutes
-15 s
- 15 seconds
Copyright 2007 OSIsoft, Inc.
97
Combined Formats
Meaning
*-8h
8 hours ago
t-7d
y+11h
Yesterday at 11:00:00 AM
Monday + 14.5h
98
Directed Exercise
PI Time
Tuesday-2d
1 6:
y+8h
*-30m
Today at 6:00 AM
The 4th of the current month at 16:00
12 hours ago
99
PI Connection Manager
Viewing Connection Information
Use the check
boxes to connect /
disconnect from the
available PI servers
Connection settings
Connection information
101
PI Connection Manager
Editing Connection Settings
102
PI Connection Manager
Adding a New Connection
103
In PI ProcessBook:
Tag Search command from Tools Menu
Using toolbars:
From an object properties window:
In PI DataLink:
104
Start searching
according to the
criteria
Copyright 2007 OSIsoft, Inc.
Display the
attributes/values
for selected
points
Validate
selectio
n
105
106
1- Define
condition
2- Click 'Add'
3- Click 'Search
107
108
Pt. Attr...
Pt. Values...
109
8.0 PI ProcessBook
PI ProcessBook
Objectives:
111
What is PI ProcessBook?
Software to facilitate
building and
visualization process
diagrams, values and
trends in real time
PI ProcessBook
includes Visual Basic
for Applications (VBA)
as a development
environment
112
Menus
Toolbars
113
File Menu
114
115
116
117
118
PI ProcessBook Modes
Run Mode:
Used to browse PI
ProcessBook elements
Build Mode:
119
Opening Elements
Multiple
copies
121
View Modes
Outline Mode
122
Outline View
123
1.
2.
3.
Static Elements
Dynamic Elements
124
Dynamic Elements
Trends
X-Y Plots
Bar Graphs
Dynamic Values
ActiveX Controls
125
126
Zoom
127
Full Screen
128
129
Trend Cursors
130
131
132
133
Hold the CTRL or the SHIFT key and click on the desired
items
Selected items are framed with a red rectangle
134
then draw a
In a new window:
Select one or many values, then click on
an Ad-Hoc trend
to create
135
Unavailable Data
136
Exercise 4
Familiarizing with ProcessBook
Objectives
137
Building a PI ProcessBook
Using File/New or
icon
139
ProcessBook Elements
Display
Linked Display
Operating System Command
Linked ProcessBook
Text
140
141
142
143
Calculator, Notepad
Excel Spreadsheet, Word Document, Access Database
Web site in Internet Explorer
144
Trend Building
In Build mode:
1.
2.
3.
145
146
147
148
149
150
Trend Modification
The
button is used to modify the selected
trends font
151
Exercise 5
Building a PI ProcessBook hierarchy and adding trends to displays
Objectives
152
Static Shapes
Rectangles
Ellipses/Circles
Lines/Polylines
Polygons
Arcs
Connectors
Graphics from Symbol Library and Imported Image Files
153
Lines
Colors
154
Symbol Library
The
155
156
Alignment
157
158
Object Grouping
159
Exercise 6
Adding Static Elements to Displays
Objectives
160
Dynamic Elements
Value
Bar
Multi-State Symbols
Command Button
161
Dynamic Elements
Bars and Values
162
Fill color
Background color
Fill color
Background color
163
Bar Graphs
Customized colors
164
Dynamic Values
165
Multi-State Objects
Bar Graphs
Dynamic Values
Shapes
Symbols
166
Command Buttons
167
Layers
168
Open a display
Do not select anything
Use the Color ( ), Font (
) and Line Style (
tools to define what will be become the default
properties
169
170
171
172
9.0 PI DataLink
PI DataLink
Objectives:
174
What is PI DataLink ?
175
PI DataLink Menu
Functions that retrieve a single value
Functions that retrieve series of values
Functions that retrieve calculated values
Alternate point identification methods
Trend display tool
Tag search, Module Database, Connections,
Settings and Help
176
PI DataLink Settings
Determines how tags
selected in the "Tag
Search" dialog window
are copied on the
spreadsheet: Columns or
Rows
Determines if the PI
Server's name is copied
automatically in PI
DataLink dialog boxes
Option to display
interval end time
instead of start time
177
Current Value
Function: PICurrVal
178
Archive Value
179
Interpolated Values
3.5
3
Values
2.5
2
1.5
1
0.5
0
0
Time
180
Tag Attributes
Function: PITagAtt
181
Update a Spreadsheet
182
TODAY()
NOW()
183
To Edit an Array
Manually:
1.
2.
3.
4.
2.
3.
184
In an Excel cell:
185
60
Sampled
40
20
0
0
186
Sampled Data
Function: PISampDat
187
188
A
F (interpolation)
G (interpolation)
B
E
Start
End
Time
Time
Inside (B,C,D)
Outside (A,B,C,D,E)
Interpolated (F,B,C,D,G)
189
Function: PINCompDat
190
191
Syntax:
=IF(Logical_test, value_if_true, value_if_false)
192
Timed Data
Function: PITimeDat
Must
reference
cells
193
Calculated Data
194
195
Conversion Factors
Conversion
Factor
Units/day
Units/hour
24
Units/minute
1440
Units/second
86400
196
Computing totals
Flow 7
(m3/h)
5
PI considers this
flow to be m3/d
3
1
0
0
10
11
Time (hours)
Normal total = 3m3/h x 3h + 5m3/h x 2h + 1m3/h x 3h = 22 m3
PI total = (3 m3/d x 3/24 d + 5 m3/d x 2/24 d + 1 m3/d x 3/24 d) * 24 h/d = 22m3
197
Trapezoidal Rule in PI
Archived
Average
value
Archived
Integral (Area under curve)
t1
t2
198
m3/hr
50
40
30
5 sec
Total for the example time slice
= 40 somethings * 5 seconds
unit of time
= 40 somethings * 5 seconds * 1 day
day
86400 seconds
= 0.0023 somethings * conversion factor
= 0.0023 somethings * 24 = 0.0556 m3
Copyright 2007 OSIsoft, Inc.
199
Function: PISampFilDat
200
Filtering Syntax
0, 0.125, 34.56
"This is a string"
'ba:active.1' = "Active"
201
Filtering Syntax
Logical and Mathematical Operators
202
Expression Calculation
203
Up to 30 text items
Items can be:
Text
Numbers
References to cell
204
Function: PICompFilDat
205
Function: PINCompFilDat
206
Expression Calculation
Function: PIExpDat
207
For one specific time in the past (Archive Value dialog box)
For a specific list of timestamps (Timed Data dialog box)
To obtain statistics or totals on an expression (Advanced Calculated
Data dialog box)
208
Notes:
209
210
time
1day
max
1day
max
1day
max
1day
max
1day
max
1day
max
1day
max
1day
1day
1day
1day
1day
1day
PI Expression
1day
time
8h
max
8h
max
8h
max
8h
max
8h
max
8h
max
8h
max
Note that if the time interval in the PI expression was changed to 1 day, ie
TagMax('Srv1 CPU', '*-1d', '*'), the results of both expressions would be identical.
211
Time Filtered
Function: PITimeFilter
212
213
214
Trend Wizard
Format Properties
215
216
PointID to Tag
217
12.0 PI Interfaces
PI Interfaces
Objectives:
219
What is a PI Interface?
Interfaces
+
Buffering
PI Server
Data Acquisition
Node
(Optional)
Data Sources
Copyright 2007 OSIsoft, Inc.
220
Interface Files
221
Interface Operation
Startup steps:
Establishes connection to the host PI Server
Retrieves point list from PI Server
Validates point configuration with the data source
Starts data collection
Once started, communicate with the PI Server every 2 minutes
(configurable), for point list updates (addition, modification or deletion)
222
Interface Configuration
Once installed, 2 ways to configure the interface:
223
224
ICU
.Bat File
Description
Host
/HOST
Point
Source
/PS
Interface /ID
ID#
Scan
classes
/F
225
Scan Classes
/f=00:01:00,00:00:15 /f=00:01:00,00:00:45
226
Directed Exercise
227
UniInt-based Interfaces
228
229
/stopstat="Intf Shut"
230
231
232
233
234
Load the .bat.new file multiple times using the Import tool
Then make sure the Interface ID number is set to what you need
235
Install services from the same .exe file, with different ServiceIDs:
pisnmp.exe install auto display "SNMP-1" serviceid 1
pisnmp.exe install auto display "SNMP-2" serviceid 2
-ServiceID 3, 4, 5
236
237
I/O Rate
Performance Points
Performance
Counters
238
Troubleshooting Interfaces
PIPC.LOG Files
Double-click to view
Configure the service that writes messages to the PIPC.LOG file and
controls his size
Interface Documentation
239
Basic PI Interfaces
Simulators
Basic versions
Random Interface
Ramp_Soak Interface
PI Ping Basic Interface (32 tags max.)
PI SNMP Basic Interface (32 tags max.)
PI Performance Monitor Basic Interface (512 tags max. and limited to
local data collection)
240
Interface Recommendations
241
Shutdown Events
242
Database Security
244
245
Security Recommendations
Ref: PI Server Security Best Practices (Support Website)
247
Security Recommendations
Ref: PI Server Security Best Practices (Support Website)
PI Server Security:
PI Trusts: Do not use the piadmin user in your
interfaces trusts.
Medium security (users and groups):
248
Distributed Interfaces
Objectives:
250
Distributed Architecture
Intranet/Interne
t
PI Client Tools
- ProcessBook
- DataLink
- Etc.
Data
Sources
- Printer
- Switch
- Server
- Etc.
- PI ActiveView
- Reports
- RtWebParts
Data
Acquisition
(and
buffering)
node(s)
<-Trust ->
IT Monitor Server
(PI Server)
Authentication
251
23.1 PI Buffering
Buffering Service
With buffering
Buffering
Service
Snapshot
Without bufferingSubsystem
Interface
Data
Acquisition
Node
PI Server
253
Buffering Service
254
PI Buffer Subsystem
Windows
PI Server version
3.4.375 and later
Compression
Algorithm
On the PI Server
On the data
acquisition node
Maximum Buffering
Capacity
2 GB
255
Buffering Principles
Memory Buffer #1
Interface
15
1 10
2
3
9
16
4 11
17
5 126 181319
7 14 20
8
PI Server
14
24
23
22
21
20
19
18
17
16
15
13
12
11
10
1
2
4
3
6
5
7
9
8
149
10
11
12
13
16
17
15
1
2
4
3
8
7
5
6
24
18
19
20
21
22
23
And
In
When
normal
new
full,values
the
PI
Memory
server
are
Then
Memory
Buffer
is
operation,
communication
sent
nottoavailable,
#2
Memory
is
data
flushed
Buffer
#2
fills
to diskthrough
Memory
flows
resumes,
Buffer
#2
and
Buffer
Memory
filled#1
again #1Buffer
fills
Memory
Buffer
is sent#1to
the server
Memory Buffer #2
15
9 16
10
11
18
13 14
20
21
22 17
23 12
24 19
File Buffer
9 10 11 12 13 14
15 16 17
18 19 20
256
PI Buffer Subsystem
257
258
259
Buffering Settings
260
PI Buffer Subsystem
261
PI Buffer Subsystem
262
Buffering Dependency
263
264
PI Trust Mechanism
PI Trust
Table
PI
Other
User PI Databases
Data Acquisition
Node
Copyright 2007 OSIsoft, Inc.
266
PI User Authentication
NonInteractive
login
User
Authentication
(by user and
password)
Group
authentication
PINetMG
R
PI TRUST
Authentication
Access to
PI Databases
(according
to
credentials)
Interacti
ve login
267
Available Credentials
268
Row
Trust IPAddr
Trust Netmask
Machine IPAddr
Result of AND
Match
0.0.0.0
0.0.0.0
192.168.168.121
0.0.0.0
Yes
192.168.168.0
255.255.255.0
192.168.168.121
192.168.168.0
Yes
192.168.168.0
255.255.255.0
192.168.175.004
192.168.175.0
No
192.168.168.22
255.255.255.255
192.168.168.22
192.168.168.22
Yes
192.168.168.22
255.255.255.255
192.168.168.20
192.168.168.20
No
269
OSUser
OSUser
PIUser
Result
pidemo
Domain
270
Trusts can be created and managed with the Trusts plugin for SMT
271