You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Luis Carmona <lc...@openpartner.cl> on 2019/04/22 22:34:39 UTC

Telnet login and data capture

Hi, 

has anyone used Nifi to read data from a Telnet connection. What I'm trying to do is to open the telnet connection, send a Login string, and then after receive all the traffic that will come from that connection from the server to NIFI. 



Any clues ? 


Thanks in advance 

RE: [EXT] Telnet login and data capture

Posted by "Peter Wicks (pwicks)" <pw...@micron.com>.
You should look at the ExecuteStreamCommand processor. Write up a script that does what you want in Bash or Python, pass any variables you need either through command line arguments or STIDIN (the contents of the FlowFile is passed as STDIN, I’ve written up whole Python scripts using ReplaceText and passed them straight into Python), and finally write out responses you want to keep to STDOUT.  All text sent to STDOUT will be saved as the contents of the outgoing FlowFile from this processor.

--Peter

From: Luis Carmona <lc...@openpartner.cl>
Sent: Monday, April 22, 2019 4:35 PM
To: users <us...@nifi.apache.org>
Subject: [EXT] Telnet login and data capture

Hi,

has anyone used Nifi to read data from a Telnet connection. What I'm trying to do is to open the telnet connection, send a Login string, and then after receive all the traffic that will come from that connection from the server to NIFI.



Any clues ?


Thanks in advance