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

PI Interface for TCP Response

FTP server

  • Last UpdatedFeb 14, 2023
  • 1 minute read

The interface measures FTP Server response times for points with Location2 set to 2.

TCPResponse connects to the FTP port of the specified machine, for example, a machine specified using DEVICE=www.somecompany.com in the InstrumentTag. The FTP port is either the default PORT (21) or user-specified by PORT= in the InstrumentTag of the PI point. After establishing the connection, the interface waits for the FTP server to send a message that contains the text 220. In other words, TCPResponse performs a substring search for 220 in the received reply.

Note: RFC 2821 defines a status code of 220 as awaiting input, when the connection is completed. You should wait for this greeting message before sending any commands. You can instruct the interface to perform a substring search for a different text string by specifying the case-sensitive string by REPLY= in the InstrumentTag. (The keyword REPLY itself is not case sensitive.)

The response time measured by the interface is the amount of time required from the time of the connection request to the time the interface receives the message containing 220. If the interface does not receive a message containing 220, it writes the value Bad Input. If the interface does not receive a reply within a user-specified timeout duration, it writes I/O Timeout.

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