Listing Historian Tags
list-historian-tags lists all tags available from a specific historian/data source. Note that this script does not take into account permissions configured in TrendMiner. All tags which are available for the user configured in the data source details are listed.
Download the support script package from the download server.
Log in using your TrendMiner file server credentials. If you don't know these or your credentials are not working, please contact your TrendMiner Customer Success Manager or send a support request to support@trendminer.com
This script is executable from every installation which has access to the TrendMiner connector which is connected to the data source/historian for which you want to test the indexing performance. There are different scripts for different operating systems included in the downloadable file (Windows, Linux, MacOS).
This article focuses on the Windows version: the list-historian-tags.exe script which can be executed on Windows machines.
Create a configuration file e.g. "config-list-hist-tags.json". The content of the config file should look like:
{ "Connector": "http://trendminer-connector.example.org" }
Connector: the URL of the connector which is used to connect to the historian/data source.
Run the script.
-config string
Configuration file to use (optional) (default "config.json")
-historianName string
Historian/data source name to benchmark. This name should be the data source name configured in ConfigHub, or you can fetch the list of configured data sources via the connector api: How to get the list of configured data sources?
-out string
File to write tag names to, use - for stdout (optional) (default "tags.txt")
Make sure the config file is in the same windows folder as the list-historian-tags.exe
Open a command window and run the list-historian-tags.exe script with the correct parameters.
Example commands:
list-historian-tags.exe -config config-list-hist-tags.json -out taglist.txt -historianName "My IP21 data source"
list-historian-tags.exe -historianName "My IP21 data source" -out -