Python Forum
Issue when running telnet program using python3
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue when running telnet program using python3
#3
Hi @buran, Thanks for your inputs.

First, yes.. im using 3.5 and 3.7, Tried both but same result tho.

"by any chance, does your file ipadd.txt has a header? Add print(HOST) after line 10 or show the output from print on line 9."

- For the ipadd.txt (im not aware of any header that has been added)
- adding print(host) on line before or after 10 doesn't work tho, I have added it under line 20. Which display the host.

Line 20: print("host:",HOST)
Output: host: 10.200.200.2


Also just want to share that script seems working in a way that it can connect to the device and change the hostname.

- Another issue occur is with the password? Just want to ask if you encountered this?
Quote:Warning (from warnings module):
File "/usr/lib/python3.5/getpass.py", line 63
passwd = fallback_getpass(prompt, stream)
GetPassWarning: Can not control echo on the terminal.
Warning: Password input may be echoed.

Again Thanks
Reply


Messages In This Thread
RE: Issue when running telnet program using python3 - by searching1 - Dec-21-2018, 03:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  telnet from ssh tunnel oldfart 3 7,221 Jul-17-2020, 02:28 PM
Last Post: noobami99
  telnet to a device under tacacs management kang18 0 1,594 Jun-05-2020, 06:11 AM
Last Post: kang18
  Selector file descriptor issue in simple multiclient server program dohpam1ne 0 2,954 May-28-2020, 02:39 PM
Last Post: dohpam1ne
  3.6 telnet eyler 3 11,335 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,810 Jun-25-2019, 04:07 PM
Last Post: gb74razor
  telnet question jacklee26 2 2,539 Mar-30-2019, 06:45 AM
Last Post: jacklee26
  Retrieve output from telnet command Networker 1 4,152 Mar-12-2019, 01:36 PM
Last Post: searching1
  Aggregate multiple telnet connections Jibeji 1 4,297 Mar-02-2018, 07:21 PM
Last Post: mpd
  mysql connector/telnet issue (re: text game) rebubula76 1 2,558 Feb-06-2018, 08:00 PM
Last Post: rebubula76
  Multithread telnet not working Parallel anna 7 7,536 Feb-05-2018, 01:17 PM
Last Post: anna

Forum Jump:

User Panel Messages

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