| | |
Telnet to 2 routers at the same time
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2009
Posts: 1
Reputation:
Solved Threads: 0
I have been using python since the last few months. I am trying to telnet into one router and then telnet into another router from the first router. I know how to use telnetlib to telnet into a router but I have no clue on how I should proceed if I need to telnet into 2 routers at teh same time.
I am working on a Windows PC. I heard of a expect module but don't know what to do. Any suggestions will be really appreciated.
Thanks!
I am working on a Windows PC. I heard of a expect module but don't know what to do. Any suggestions will be really appreciated.
Thanks!
•
•
Join Date: May 2008
Posts: 620
Reputation:
Solved Threads: 98
Ok, just to make sure I understand, you're running on computer A and can telnet to computer B. You want computer B to telnet to computer C?
Why not telnet from computer A to computer C directly?
If the above A -> B -> C scenario is what you're trying to do, you will need to 'convince' computer B to telnet to computer C. I suspect that you will either have to run the 'standard' telnet application on computer B, or run another program on computer B that achieves the same goal. If it was necessary, you could probably even 'create' a python file on computer B and run it to establish the connection to computer C. The options available to you could be limited by the access granted to your connection to computer B.
Why not telnet from computer A to computer C directly?
If the above A -> B -> C scenario is what you're trying to do, you will need to 'convince' computer B to telnet to computer C. I suspect that you will either have to run the 'standard' telnet application on computer B, or run another program on computer B that achieves the same goal. If it was necessary, you could probably even 'create' a python file on computer B and run it to establish the connection to computer C. The options available to you could be limited by the access granted to your connection to computer B.
![]() |
Similar Threads
- 5 ways insiders exploit your network (Network Security)
- Router Information (ASP.NET)
- I need help (Viruses, Spyware and other Nasties)
- How do you apply/use the OSI MODEL? (Networking Hardware Configuration)
- Which networkcard supports Fedora The Best (*nix Hardware Configuration)
Other Threads in the Python Forum
- Previous Thread: Memory game - Matrix problem
- Next Thread: Creating Instantces of objects w/ pygame
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied apache application argv array beginner book change code color converter countpasswordentry dan08 dictionary dynamic edit editing enter examples excel file filename float format function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl pyqt pysimplewizard python random recursion redirect remote reverse scrolledtext session simple smtp software sprite statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython





