Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

Interface definition file

  • Last UpdatedOct 04, 2024
  • 1 minute read

An interface definition file describes how to determine which device a point is monitoring. For example, PI SNMP points have the HOST=<device_name> 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=([^;]+)

lt;/m_sDeviceRegexp>
<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.

TitleResults for “How to create a CRG?”Also Available in