Work with Point Created snapshots
- Last UpdatedOct 02, 2024
- 2 minute read
To delete a Point Created (Pt Created) snapshot value one point at a time:
Use the Archive Manager tool in PI System Management Tools. For more information, see Archive Editor.
To export points with snapshot values of Pt Created and delete those values from the snapshot table:
-
Create a piconfig script file called gettags.txt. Include the following commands in the file:
@table pisnap
@select status = Pt Created, tag = *
@ostr tag, time
@output snap_to_delete.txt
@ends -
Save and close the gettags.txt file.
-
Open a command prompt.
-
Go to the PI\adm directory.
-
Run piconfig, redirecting the previously created script file. (If you used a different path or filename for your script file, substitute the actual path and file name of your script file for c:\gettags.txt in the following example.)
Piconfig < c:\gettags.txt
-
Open the snap_to_delete.txt file from the PI\adm directory to verify which points have Pt Created value in the snapshot. Edit the file to remove any points that you do not plan to backfill.
-
Save the snap_to_delete.txt file.
-
Run piconfig with the following commands:
@table piarc
@mode edit, t
@istr tag, time
@modi mode = remove
@input snap_to_delete.txt
@endsNote: If the Snapshot_DoNotReplacePTCreatedOnOOO tuning parameter is not set to 1 (the default is 0), skip this procedure.
Find and manage past Pt Created events
To manage both current and past Pt Created events, create and run separate piconfig scripts for snapshots and historical data, substituting the appropriate file names and commands as needed.
-
Modify the piconfig script file to target historical data. Create a new script file called getpasttags.txt. Include the following commands in the file:
@table pisnap
@select status = Pt Created, tag = *
@ostr tag, time
@output past_snap_to_delete.txt
@ends -
Save and close the getpasttags.txt file.
-
Open a command prompt.
-
Go to the PI\adm directory.
-
Run piconfig, redirecting the previously created script file. (If you used a different path or filename for your script file, substitute the actual path and file name of your script file for c:\getpasttags.txt in the following example.)
Piconfig < c:\getpasttags.txt
-
Open the past_snap_to_delete.txt file from the PI\adm directory to verify which points have Pt Created value in the snapshot. Edit the file to remove any points that you do not plan to backfill.
-
Save the past_snap_to_delete.txt file.
-
Run piconfig with the following commands:
@table piarc
@mode edit, t
@istr tag, time
@modi mode = remove
@input past_snap_to_delete.txt
@ends