GetPIThreadInformation Class
- Last UpdatedDec 15, 2025
- 3 minute read
Get Thread Information for a PI Subsystem on a PI Data Archive
The Get-PIThreadInformation cmdlet gets thread information for the specified subsystem from the specified PI Data Archive.
The connection parameter specifies the connection to a PI Data Archive to use.
This cmdlet returns the same thread information output by "piartool.exe -thread <subsystem> -info"
Inheritance Hierarchy
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellGetPIThreadInformation
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[CmdletAttribute("Get", "PIThreadInformation", SupportsShouldProcess = true)] public class GetPIThreadInformation : OSICmdletBase
<CmdletAttribute("Get", "PIThreadInformation", SupportsShouldProcess := true)> Public Class GetPIThreadInformation Inherits OSICmdletBase Dim instance As GetPIThreadInformation
[CmdletAttribute(L"Get", L"PIThreadInformation", SupportsShouldProcess = true)] public ref class GetPIThreadInformation : public OSICmdletBase
[<CmdletAttribute("Get", "PIThreadInformation", SupportsShouldProcess = true)>] type GetPIThreadInformation = class inherit OSICmdletBase end
The GetPIThreadInformation type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GetPIThreadInformation |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive to use | |
| History | Retrieves historical thread information | |
| Subsystem | PI Data Archive Subsystem for which to retrieve the thread information |
Examples
Get-PIThreadInformation -Subsystem Archive -Connection $con
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the thread information objects for the PI Archive Subsystem from the PISRV1 PI Data Archive
Examples
(Get-PIThreadInformation -Subsystem Archive -Connection $con | Where-Object -Property ThreadType -EQ Flush).Details
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the historical flush thread details for the PI Archive Subsystem on the PISRV1 PI Data Archive
Examples
(Get-PIThreadInformation -Subsystem Archive -Connection $con | Where-Object -Property ThreadType -EQ RPC).Details
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the RPC thread details for the PI Archive Subsystem on the PISRV1 PI Data Archive
Examples
(Get-PIThreadInformation -Subsystem Base -Connection $con | Where-Object -Property ThreadType -EQ RPC).Details
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets the RPC thread details for the PI Base Subsystem on the PISRV1 PI Data Archive