Data source 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 data source:
|
EdgeCmd command |
Description |
Examples |
|---|---|---|
|
edgecmd get DataSource -cid <componentId> |
Get the data source configuration for the specified component. |
edgecmd get DataSource -cid OpcUa1 |
|
edgecmd set DataSource -cid <componentId> [-file <filepath>] |
Import the data source configuration for the specified component. |
edgecmd set DataSource -cid OpcUa1 -file C:\Users\TestUser\DataSource\Configuration.json |
|
edgecmd set DataSource -cid <componentId> [-<adapterSpecificParameter> <value>] |
Import the data source configuration parameter for the specified component. |
edgecmd set DataSource -cid OpcUa1 -UseSecureConnection true |
|
edgecmd edit DataSource -cid <componentId> [-<adapterSpecificParameter> <value>] |
Change the data source configuration parameter for the specified component. |
edgecmd edit DataSource -cid OpcUa1 -UseSecureConnection false |
|
edgecmd remove Datasource -cid <componentId> [-y] |
Remove the data source configuration for the specified component. |
edgecmd remove Datasource -cid OpcUa1 -y |
|
edgecmd help Datasource -cid <componentId> |
Display the help output for the data source facet. |
edgecmd help Datasource -cid OpcUa1 |
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