Data filters 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 filters:
|
EdgeCmd command |
Description |
Examples |
|---|---|---|
|
edgecmd get DataFilters -cid <componentId> [-file <filepath>] |
Get the data filters configuration for the specified component. |
edgecmd get DataFilters -cid OpcUa1 |
|
edgecmd set DataFilters -cid <componentId> [-file <filepath>] |
Import the data filters configuration for the specified component. |
edgecmd set DataFilters -cid OpcUa1 -file C:\Users\TestUser\DataFilters\Configuration.json |
|
edgecmd add DataFilters -cid <componentId> -id <itemid> [-AbsoluteDeadband <value>] [-PercentChange <value>] [-ExpirationPeriod <value>] |
Add the data filters configuration for the specified component. |
edgecmd add DataFilters -cid OpcUa1 -id DuplicateData -AbsoluteDeadband 0 -PercentChange 35 |
|
edgecmd edit DataFilters -cid <componentId> -id <itemid> [-AbsoluteDeadband <value>] [-PercentChange <value>] [-ExpirationPeriod <value>] |
Change the data filters configuration for the specified component. |
edgecmd edit DataFilters -cid OpcUa1 -id DuplicateData -AbsoluteDeadband 3 -PercentChange 35 |
|
edgecmd remove DataFilters -cid <componentId> [-id <itemid>] [-y] |
Remove the data filters configuration for an item in the specified component. |
edgecmd remove DataFilters -cid OpcUa1 -y |
|
edgecmd help DataFilters -cid <componentId> |
Display help output for the data filters facet. |
edgecmd help DataFilters -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