GNS3 Talks: Python for Network Engineers with GNS3 (Part 12) - Netmiko, SSH, Python and Cisco

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 37

  • @ciscobulls
    @ciscobulls 6 ปีที่แล้ว +2

    Dear David, I really appreciate your great Netmiko tutorial, not even Netmiko. I have learned a lot about python from the videos uploaded. Thank you so much. A big salute for you and your team.

  • @juliohernandez4890
    @juliohernandez4890 4 ปีที่แล้ว +4

    Hi Mr. David, thanks for your great work. I'm trying to follow your GNS3 talks, but installing netmiko I had to use:
    pip install netmiko==2.4.2 to make it works. Thanks a lot

    • @robertw3885
      @robertw3885 4 ปีที่แล้ว

      Thanks Julio I just had the same issue and this was the fix

    • @juliohernandez4890
      @juliohernandez4890 4 ปีที่แล้ว

      @@robertw3885 Hi Robert, now I'm using Network Automation appliance, is included in Gns3, has netmiko & paramiko installed

    • @robertw3885
      @robertw3885 4 ปีที่แล้ว

      @@juliohernandez4890 Yeah I got that as well. But I set up an Ubuntu vm in virtualbox and then connect to my GNS3 vm thru my home network. Works great! Plus doing it in the Dockers inside GNS3, so I am doing it twice.

  • @kishorekannanp
    @kishorekannanp 7 ปีที่แล้ว

    Thank you David for the detailed presentation which answered all the queries

  • @refaiabdeen5943
    @refaiabdeen5943 7 ปีที่แล้ว

    Another Awesome video !! Cheers David...

  • @kewlguyjason
    @kewlguyjason 4 ปีที่แล้ว

    I'm guessing the answer is "use jinja2 templates" but what if we had to do deeper into the prompt, such as*interface* or *config-bgp* *config-ospf*, is it still possible to configure with just netmiko? I guess we would just have to change what we expect back from the router as the expect value (so not #) or just put in send_config_timing?

  • @mathqesystem
    @mathqesystem 4 ปีที่แล้ว +1

    Hello David,
    I am using the Network Automation appliance which has already installed Netmiko. However, the version installed is the latest one (Version: 3.0.0) which does not support python 2.7. If I run the first part of the code it always throws this error:
    root@NA:~# ./sshXR.py
    Traceback (most recent call last):
    File "./sshXR.py", line 3, in
    from netmiko import ConnectHandler
    File "/usr/local/lib/python2.7/dist-packages/netmiko/__init__.py", line 7, in
    from netmiko.ssh_dispatcher import ConnectHandler
    File "/usr/local/lib/python2.7/dist-packages/netmiko/ssh_dispatcher.py", line 2, in
    from netmiko.a10 import A10SSH
    File "/usr/local/lib/python2.7/dist-packages/netmiko/a10/__init__.py", line 1, in
    from netmiko.a10.a10_ssh import A10SSH
    File "/usr/local/lib/python2.7/dist-packages/netmiko/a10/a10_ssh.py", line 3, in
    from netmiko.cisco_base_connection import CiscoSSHConnection
    File "/usr/local/lib/python2.7/dist-packages/netmiko/cisco_base_connection.py", line 143
    msg = f"Login failed: {self.host}"
    ^
    I checked on the Internet and as a workaround I found that Netmiko version can be downgraded to 2.4.2. Once Netmiko is downgraded the script is working fine.
    github.com/ktbyers/netmiko/issues/1532
    However, to downgrade the version I should always use the NAT cloud. My question is - is there a way to use the Network Automation appliance without downgrading the Netmiko version installed on it?
    Thanks in advance!

  • @sameerthorappa3356
    @sameerthorappa3356 6 ปีที่แล้ว

    thank you so much David Bombal..
    great video....
    i already buy your courses from GNS3 academy and Udemy....
    it's worth.......

    • @davidbombal
      @davidbombal  6 ปีที่แล้ว

      Cool! Enjoy the course Sameer :)

  • @robertjude7880
    @robertjude7880 6 ปีที่แล้ว

    dear David.
    I know nothing about scripting, you video made me understand scripting for networking so simple.
    Thank you so much ... if i need advanced videos where do i buy the same.

  • @alreid12345
    @alreid12345 7 ปีที่แล้ว

    Thanks for the great videos David!!!

    • @davidbombal
      @davidbombal  7 ปีที่แล้ว

      Thank you for all the input and discussions Al! Helps make this better for everyone :)

  • @mohamedfarid7901
    @mohamedfarid7901 5 ปีที่แล้ว

    7:38 ...Line 12 ...what is meaning of (**iso) in python, you used this to call variable points to IP, username & password (dictionary) of network device?
    Thanks in advance David for your time and concern

  • @michaelyang8074
    @michaelyang8074 5 ปีที่แล้ว

    can u automate configuration for interface other than loopback ?

  • @armandoochoaramon4262
    @armandoochoaramon4262 5 ปีที่แล้ว

    Thank you so much, I appreciate your tutorial.

  • @alinmuntean2916
    @alinmuntean2916 5 ปีที่แล้ว

    Hy David, could you do some tutorials with Python - Juniper ? thanks

  • @JohnnyD50
    @JohnnyD50 6 ปีที่แล้ว

    Great Stuff very useful

  • @kishorekannanp
    @kishorekannanp 7 ปีที่แล้ว

    David, please show us how to execute multiple commands in multiple devices using netmiko

    • @davidbombal
      @davidbombal  7 ปีที่แล้ว

      Please watch the next video that shows this.

  • @ricardoborrajo3709
    @ricardoborrajo3709 7 ปีที่แล้ว

    Hello David, really appreciate your great videos, practical content and excellent explanation! You have really opened my mind to this new and exciting area of NetDevOps! Thanks a lot and I shall follow your posts regularly!

  • @kemis1979
    @kemis1979 7 ปีที่แล้ว

    Thank You

    • @davidbombal
      @davidbombal  7 ปีที่แล้ว

      Thank you for watching!

  • @mohamedaminecheloufi7978
    @mohamedaminecheloufi7978 7 ปีที่แล้ว

    great!!!!! you are the best! thx

  • @snehas2519
    @snehas2519 5 ปีที่แล้ว

    Unable to install netmiko on the network automation device in GNS3
    root@NetworkAutomation-1:~# python3 SSH_Python.py
    Traceback (most recent call last):
    File "SSH_Python.py", line 1, in
    from netmiko import ConnectHandler
    ImportError: No module named 'netmiko'
    root@NetworkAutomation-1:~#

    • @mrakamara13
      @mrakamara13 4 ปีที่แล้ว

      The problem in the version of Netmiko
      pip install netmiko ---- by default installs version 3.0.0.
      Unfortunately Netmiko ver 3 does not support python older than ver 3.6
      Solution:
      You should downgrade Netmiko to version 2, like this : "pip install netmiko==2.4.2"

  • @Daily_life_Memories
    @Daily_life_Memories 6 ปีที่แล้ว

    Nice video!! scripts link is missing in the link

    • @davidbombal
      @davidbombal  6 ปีที่แล้ว

      Look in the video description - click "Show more"

    • @Daily_life_Memories
      @Daily_life_Memories 6 ปีที่แล้ว

      David Bombal tnx but i clicked the link and reaching a github 404 error page

    • @davidbombal
      @davidbombal  6 ปีที่แล้ว

      Thanks for letting me know! I have fixed it and here is the link again: github.com/davidbombal/pythonvideos

    • @Daily_life_Memories
      @Daily_life_Memories 6 ปีที่แล้ว

      Thanks a lot ! You're great as your videos are :-) anyway I already made those scripts by pausing videos ..and tested as well ...works great!

    • @davidbombal
      @davidbombal  6 ปีที่แล้ว

      Great! Well done!