piartool command-line options
- Last UpdatedNov 07, 2025
- 8 minute read
- PI System
- PI Server
To list available options, at a command prompt, type piartool -?.
|
Option |
Name |
Description |
|
-ac -hist|-future|-arcset |
Archive create |
Create and register an archive of fixed size. You can specify -hist for historical records, -future for future records, or -arcset N, where 0 is historical and 1 is future. |
|
-acd |
Dynamic archive create |
Create a PI archive that grows dynamically in size. The maximum size is 2 TB. To create a dynamic archive with a maximum size less than 2 TB, use piarcreate instead. Note: Using the ‑acd option can negatively affect performance. We recommend creating a fixed-size archive using the ‑ac option instead. |
|
-ads path |
Archive disable shift |
Remove the specified archive from shift participation. |
|
-aes path |
Archive enable shift |
Add the specified archive to shift participation. |
|
-afl -dump |
AF link: dump |
Monitor the link between a PI AF server and Data Archive, and return the state of the link between Data Archive and PI AF server. Optionally, to list all information related to the configuration and status of the link available from PI Base Subsystem in addition to PI AF Link Subsystem, include the ‑verbose parameter. |
|
-afl -mdbstat |
AF link: MDB state |
Monitor the link between a PI AF server and Data Archive, and return the state of the MDB. Possible returned values are:
|
|
-afl -mdbwait |
AF link: MDB wait |
Monitor the link between a PI AF server and Data Archive, and wait for the MDB to become available for editing. By default, the wait time is five minutes. You can specify these additional parameters:
|
|
-afl -trace |
AF link: trace |
Monitor the link between a PI AF server and Data Archive, and specify AF-link tracing behavior. Additional parameters are:
|
|
-al |
Archive list |
List all registered archives. Additional parameters and argument are:
|
|
-ar path |
Archive register |
Register a specified archive. To register archives in bulk, use the wildcard characters * and ?. To match all possibilities with any number of characters, use *. To match a single character, use ? any number of times. Note: There is no need to specify the archive set. The PI Archive Subsystem registers the given archive to the appropriate archive set. |
|
-as -hist|-future|-arcset |
Archive statistics |
Monitor PI Archive Subsystem activity and statistics. You can specify -hist for historical records, -future for future records, or -arcset N, where 0 is historical and 1 is future. For more information about output from this option, see Output from piartool -as. |
|
-au -hist|-future|-arcset path |
Archive unregister |
Unregister a specified archive. To unregister archives in bulk, use the wildcard characters * and ?. To match all possibilities with any number of characters, use *. To match a single character, use ? any number of times. You can specify -hist for historical records, -future for future records, or -arcset N, where 0 is historical and 1 is future. |
|
-aw -hist|-future|-arcset N |
Archive walk |
List details of the records in an archive. You can specify -hist for historical records, -future for future records, or -arcset N, where 0 is historical and 1 is future. |
|
-backup path |
Perform a Data Archive server backup |
Start a Data Archive server backup. The path argument specifies the target directory for the backup files. For a complete list of arguments that modify that backup, see Launch backups with the piartool utility. |
|
-backup command |
Run a backup command |
Run a backup command. For a complete list of backup commands and a list of possible arguments, see Auxiliary backup commands for the piartool utility. |
|
-bfs |
Buffered source statistics |
List any PI Buffer Subsystem registered with PI Snapshot Subsystem along with the buffered source's registration ID. Additional options include:
|
|
-block subsystem |
Block |
Wait for specified subsystem to respond. By default, waits up to 3,600 seconds. Use in Data Archive start scripts to pause the script until the subsystem is available. For subsystem, you can specify two subsystems, separated by a comma (that is, subsystem1, subsystem2), to confirm that those subsystems can communicate. Additional parameters and argument:
|
|
-cad tagmask |
Archive cache diagnostics |
Display the events in the read and write archive cache for every point that matches the specified tag mask. Additional parameters:
|
|
-cas |
Archive cache summary |
Display a summary of the contents of the archive cache, including the number of events in the read and write caches, for every point with values in the caches. Additional parameter and argument:
|
|
-de path |
Dump event queue |
Dump specified event queue file. Additional parameter and argument:
|
|
-flush |
Flush |
Flush all values in the read and write cache. |
|
-fs |
Force shift |
Force an archive shift in the historical set. |
|
-idci |
ID conversion |
This option is no longer supported. To create ID conversion files, use piarchss -idci. |
|
-lic |
Licensing information |
List license information. Use with one of the following arguments:
|
|
-module UID |
PI Modules lookup by UID |
Look up the module path for a UID. This option is useful when debugging error messages in the PI message log that report the UID of a module, but the not the module path. |
|
-msg message |
Send message |
Send the specified message to the message log. |
|
-ooo |
Out-of-order snap events |
Show tags with out-of-order events. Additional parameters and argument:
|
|
-qs |
Queue statistics |
Monitor event queue activity and statistics. Updates every five seconds. Additional parameter and arguments:
|
|
-qwait |
Event queue wait time |
Wait for the event queue to empty. By default waits up to 300 seconds. Optional argument:
|
|
-registerhacert |
Register HA certificate |
Register or check certificates used for a Data Archive collective. You must specify one of the following parameters:
|
|
-remote |
Remote system |
Run utility against a remote system. When you include this argument as the last argument in any valid command, the utility prompts you for remote-system login information. If successful the utility runs against the remote system. |
|
-rsso |
Redundant single -on (RSSO) |
When using OIDC authentication configured against an AIM server, the output displays the following RSSO-related information:
|
|
-sd tagmask |
Snapshot dump |
Display snapshot information for every point that matches the specified tag mask. Additional parameter:
|
|
-ss |
Snapshot statistics |
Monitor PI Snapshot Subsystem activity and statistics. Updates every five seconds. Additional parameter and arguments:
|
|
-sys |
System commands for collective management |
Manage the collective with the following parameters:
|
|
-systembackup |
System backup |
Subsystem offline mode for audit file access. |
|
-thread subsystem -info|-history |
Subsystem thread list |
When -info is used, list the specified subsystem's threads. When -history is used, list the last 100 RPCs that have run or are currently running for the specified subsystem. Use the -history parameter to track the amount of time it takes for an RPC to run. |
|
-v |
Version |
Display version and build information. |
|
-upd subsystem producer |
Update producer statistics |
Display update producer statistics. See Producers and associated subsystems. Additional parameter:
|
Note: Starting with PI Server 2015, the -aag option is not supported; the archive activity grid is no longer available.