Python 3 Network Automation for Network Engineers: Telnet script Part 1. Are you ready to automate?

  Рет қаралды 24,748

David Bombal

David Bombal

Күн бұрын

Пікірлер: 28
@haitran1406
@haitran1406 5 жыл бұрын
Hi David, I am trying this script for a device at my job that only supports Telnet, it is an old Cisco 2950 switch. But i cannot get it to work, it prompts me for username and pw in which i input those 2 values but after that it just hangs and would return a time out socket error of some sort and would not execute the commands. Can you provide some insight as to how i can troubleshoot this? Please let me know if you need more details. I worked along this example in your course using the GNS3 lab environment and got it to work, but i am not sure why I cant get it to work in my production environment.
@meseee1
@meseee1 4 жыл бұрын
David , I have attempted to reach you from udamy course as well. After following every step I got an error that says " syntaxerror: invalid syntax ...line 24 print (tn.read_all().decode('ascii')). my question is does this telnet script work in different setup other than the network automation docker. I just used linux ubuntu connected to router tested telnet and communication, but pyhon script retuned the above. I am just starting to study python.
@saurabhmadhavi4893
@saurabhmadhavi4893 3 жыл бұрын
Even I having the same setup and facing the same issue.
@AVNetworkGuy
@AVNetworkGuy 2 жыл бұрын
Try using: print(tn.read_all().decode())
@lj746
@lj746 6 жыл бұрын
Hi! I see the course calls for GNS3. I have VIRL setup and running in my home PC. Could I take the Python for Network Engineering Udemy class and use my VIRL set up instead of GNS3? Please advise. Thanks!
@davidbombal
@davidbombal 6 жыл бұрын
VIRL, physical equipment or GNS3 could be used in the course. No requirement to have GNS3.
@sumonpaul3376
@sumonpaul3376 4 жыл бұрын
David Sir, I'm face a problem. Python script run of physical machine and i want output in gns3 c3400 series router. But of my physical machine script run but i don’t show any output. Like that python script don’t asked me telnet user name or password. But i am not using loopback interface. But i am ping to Both side my pc to gns3 router. Please sir give me some solution.
@aligohar8737
@aligohar8737 5 жыл бұрын
I am good but David is Genius
@davidbombal
@davidbombal 5 жыл бұрын
lol... thank you! But, not sure I am an genius, just a normal guy.
@HoangVo7
@HoangVo7 6 жыл бұрын
in windows 10, we can use linux subsystem by downloading ubuntu from microsoft store. Is there any way to telnet from ubuntu-in-win10 to router in gns3?
@deepakbagade9437
@deepakbagade9437 6 жыл бұрын
Hi, David!! I am trying to run the scripts in production environment, nothing is happening!!, not even getting an error. The same script runs well in gns3. Please advice is there anything extra we need to do in order to make the script run on production devices.
@RashidMehmud1
@RashidMehmud1 5 жыл бұрын
Hi Deepak, did you figure out, why its not doing any action on real device? i am having the same issue.
@haitran1406
@haitran1406 5 жыл бұрын
Hi Deepak, I am having same issue. Did you ever figure this out?
@jacklee26
@jacklee26 5 жыл бұрын
How to not exit Cisco router on python.just telnet in server and stop.
@GustavoNiederauer
@GustavoNiederauer 6 жыл бұрын
I copy exactly the same, I can put the username , but the prompt for password does not appear. what could be?
@andrewcoleman3741
@andrewcoleman3741 6 жыл бұрын
Does the sections where it's creating the password variable, and the "if password" section match up with what David created (or could there be some empty whitespaces?)?
@christopherlyon8521
@christopherlyon8521 6 жыл бұрын
Usually when entering a telnet password, the entry field is hidden. Just type it as normal, and press enter. You can't see it, but it's there.
@kenmurphy4259
@kenmurphy4259 6 жыл бұрын
Great video David. Can you do a video in your upcoming series detailing how to make your Python scripts idempotent like Ansible for subsequent runs of the script against a set of devices. Thanks again.
@davidbombal
@davidbombal 6 жыл бұрын
Ken, this is already part of my Python course. It will also be in the new course.
@kenmurphy4259
@kenmurphy4259 6 жыл бұрын
Thank you David, much appreciated. Really looking forward to the new course. Your training for Python and Ansible has opened up new avenues for me. Invaluable!
@profetaII
@profetaII 6 жыл бұрын
does getpass works in python3?
@andrewcoleman3741
@andrewcoleman3741 6 жыл бұрын
From the python documentation site, it looks like you can, but I'm no programmer, so take that with a boulder of salt. docs.python.org/3.6/library/getpass.html
@yusef7446
@yusef7446 6 жыл бұрын
Just Amazing.
@davidbombal
@davidbombal 6 жыл бұрын
Thank you, Teddy!
@naingaung7827
@naingaung7827 6 жыл бұрын
like it very much.
@davidbombal
@davidbombal 6 жыл бұрын
Thank you for watching!
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
I just tried o3-mini
6:31
ThePrimeTime
Рет қаралды 226 М.
API Security Fundamentals - Course for Beginners
1:49:04
freeCodeCamp.org
Рет қаралды 23 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 41 М.
Learning Python is HARD!! - CCNA | CCNP Network Engineer
11:16
NetworkChuck
Рет қаралды 119 М.
Network Automation ~ Python Telnet
16:55
Professor Kazanjian
Рет қаралды 5 М.
Cisco Network Automation  - Basic Python3 Telnet Script
17:36
The Network Berg
Рет қаралды 11 М.
Telnet vs SSH Explained
5:00
PowerCert Animated Videos
Рет қаралды 778 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН