Interface definition file
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
An interface definition file describes how to determine which device a point is monitoring. For example, PI SNMP points have the string in the instrumenttag property. The file includes the PI Point attribute which stores the device name, as well as two regular expressions to determine what part of that attribute is the device name and how to reconstruct that attribute if the device name is changed. Here is the XML:
<CinterfaceDefinitionEntry>
<m_sInterfaceName>pisnmp</m_sInterfaceName>
<m_sDeviceAttribute>instrumenttag</m_sDeviceAttribute>
<m_sDeviceRegexp>^HOST=([^;]+)
<m_sReplaceRegexp>^(HOST=)[^;]+lt;/m_sReplaceRegexp>
<m_iReplaceAfterIndex>1</m_iReplaceAfterIndex>
<m_sLocation1>interface instance</m_sLocation1>
<m_sLocation2>time normalization</m_sLocation2>
<m_sLocation3>group SNMP requests?</m_sLocation3>
<m_sLocation4>scan class number</m_sLocation4>
<m_sLocation5>point level debugging</m_sLocation5>
</CinterfaceDefinitionEntry>
Note that in addition to the point attribute and the device determining regular expression, the file also contains descriptions of the location codes, so point attributes can be displayed more clearly to the user. This file is compiled with the ITOrganizer.dll file.