History recovery EdgeCmd scripts
- Last UpdatedMay 01, 2025
- 1 minute read
- PI System
- Adapter for RDBMS 1.1
- Adapters
The following EdgeCmd commands configure specific facets of the history recovery:
|
EdgeCmd command |
Description |
Examples |
|---|---|---|
|
edgecmd add historyrecoveries -cid <componentId> -StartTime <time> |
Start the history recovery for the specified component. |
edgecmd add historyrecoveries -cid OpcUa1 -StartTime 2021-01-09T05:55:00.0 |
|
edgecmd delete historyrecoveries -cid <componentId> -id <historyRecoveryId> |
Cancel the history recovery for the specified component and delete its state. |
edgecmd delete historyrecoveries -cid OpcUa1 -id HistoryRecovery1 |
|
edgecmd cancel historyrecoveries-cid <componentId> -id <historyRecoveryId> |
Cancel the history recovery for the specified component. |
edgecmd cancel historyrecoveries -cid OpcUa1 -id HistoryRecovery1 |
|
edgecmd resume historyrecoveries -cid <componentId> -id <historyRecoveryId> |
Resume a failed history recovery. |
edgecmd resume historyrecoveries -cid OpcUa1 -id HistoryRecovery1 |
Use EdgeCmd utility to add and remove adapter, and to configure facets of the components.
Note: The examples in this topic are using the default port number 5590. If you specified a different port number for your adapter, you need to add it in the command. For example: edgecmd -port 5591 <RestOfTheCommand>
If a command contains slashes, you must add escape characters as follows:
In Windows , add a second slash. style="box-sizing: inherit;">
Example: TestUser\OilCompany becomes TestUser\\OilCompany
In Linux , add three additional slashes. style="box-sizing: inherit;">
Example: TestUser\OilCompany becomes TestUser\\\\OilCompany