Python Forum
Retrieve output from telnet command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve output from telnet command
#2
you can use something like this to find only the ip address from the output.

re.findall(r'(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3})\.(?:[\d]{1,3})/\d+',showint)
Reply


Messages In This Thread
Retrieve output from telnet command - by Networker - Feb-26-2019, 09:32 PM
RE: Retrieve output from telnet command - by searching1 - Mar-12-2019, 01:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  telnet from ssh tunnel oldfart 3 7,157 Jul-17-2020, 02:28 PM
Last Post: noobami99
  telnet to a device under tacacs management kang18 0 1,562 Jun-05-2020, 06:11 AM
Last Post: kang18
  3.6 telnet eyler 3 11,266 Jun-28-2019, 05:22 AM
Last Post: Khanhamid90
  Any suggestion on python library to use for both ssh and telnet? lord_mani 4 3,733 Jun-25-2019, 04:07 PM
Last Post: gb74razor
  telnet question jacklee26 2 2,488 Mar-30-2019, 06:45 AM
Last Post: jacklee26
  Aggregate multiple telnet connections Jibeji 1 4,260 Mar-02-2018, 07:21 PM
Last Post: mpd
  Multithread telnet not working Parallel anna 7 7,447 Feb-05-2018, 01:17 PM
Last Post: anna
  Python telnet script for IP list mangesh 1 59,778 Jun-26-2017, 11:12 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020