Netmiko Python Tutorial - Connecting to Cisco Router and Running Commands

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 62

  • @RogerPerkin
    @RogerPerkin  5 лет назад +2

    Please subscribe for more videos on Python and Netmiko, if you are looking for Ansible Videos for Network Engineers check out this playlist
    ruclips.net/video/w8Sf3rXncs0/видео.html

  • @josephjefferson189
    @josephjefferson189 4 года назад +4

    Thank you, Roger. Your videos are the best on this subject. Your pace is just right, not like some others who lose as as students because they hurry as though they have to go to the bathroom.

  • @lutfisiswanto8393
    @lutfisiswanto8393 3 года назад +1

    Thanks a lot.. keep failing to parse nokia 7210 on my python, but now it works following your video :D

  • @AhmedAli-dz1hy
    @AhmedAli-dz1hy 4 года назад +1

    Very clear and easy. You should have much more subscribers

  • @wizardcoc2254
    @wizardcoc2254 2 года назад

    Do appreciate you break down the steps to show how these command works individually before building a script. This helps very much.

  • @allenxd
    @allenxd 4 года назад +1

    subscribed thanks Roger. I am learning Python now to start automating. Great Vid!

  • @hdhillon774
    @hdhillon774 5 лет назад +1

    Good explanation, please create more videos like this...thanks

  • @venuonduty5778
    @venuonduty5778 5 лет назад +1

    Excellent, I like this video very much. And this made me to start coding again after a decade. Keep sharing .........

    • @RogerPerkin
      @RogerPerkin  5 лет назад

      That's great thanks for the feedback

  • @johnhobbs7544
    @johnhobbs7544 4 года назад

    Excellent Roger! Many thanks!

  • @thameemyousuf8194
    @thameemyousuf8194 3 года назад

    Excellent one..Thanks

  • @ashishkumarsharma9488
    @ashishkumarsharma9488 4 года назад

    It was very good, Thank you.

  • @tolgayucel1442
    @tolgayucel1442 5 лет назад +3

    Your explanation is so clear. Are you going to keep recording new tutorials ? Subscribed !!

    • @RogerPerkin
      @RogerPerkin  5 лет назад +1

      Thank You Tolga, I am planning on doing some more Netmiko tutorials hopefully in the next few weeks, glad you enjoyed it.

    • @mohibul373
      @mohibul373 4 года назад

      @@RogerPerkin still waiting...

  • @patrickcasavant-cssmv
    @patrickcasavant-cssmv 3 года назад

    Well explaned! thanks!!

  • @acewhitestar1629
    @acewhitestar1629 3 года назад

    Thank You!!!!!!!!!!!!!!!!!!!!!!!

  • @jclm1rt
    @jclm1rt 5 лет назад +1

    Great video, thanks a lot!!

    • @RogerPerkin
      @RogerPerkin  5 лет назад

      Thanks Julio, glad you enjoyed it

  • @mIbrahim1981
    @mIbrahim1981 3 года назад

    Thanks so much. So helpful ... Please how to print command in the output plus the result of command

  • @harsha00761
    @harsha00761 4 года назад

    Thank you so much!

  • @manojk1494
    @manojk1494 Год назад

    @RogerPerkin
    Please provide me the link for the YT video for multiple device connection with Netmiko, which you mentioned in this video.

  • @moemanm1202
    @moemanm1202 4 года назад

    this was a very good video, thanks.
    Out of netmiko, paramiko or ansible. which would you say is better for network automation.

  • @gufran.khan449
    @gufran.khan449 4 года назад +1

    How we can pass multiple cmds? Can you share that as well?

  • @johnhobbs7544
    @johnhobbs7544 4 года назад +1

    Note: I had to add an underscore character between the word "send" and the word "command" in the "connection.send command ("show ip interface brief")
    in order for this to work. This is consistent with the list of available commands in the output of dir(connection) on my system. (I'm running Ubuntu 20.04 in WLS2 on Win 10.)

    • @RogerPerkin
      @RogerPerkin  4 года назад

      That is exactly what I did, I just didn't say send underscore command when I typed it in

  • @cpking1720
    @cpking1720 5 лет назад +2

    Thanks for your video. I’m new to Python and trying to use it for network automation learning. Please how can I loop through a list of network devices e.g [Router1, Router2] and apply different configurations (e.g, loopback0 to Router1 and loopback1 to Router2) from a txt. file to each of the devices in the list at each loop? Please help with code tips. Thanks.

    • @mraboyum
      @mraboyum 5 лет назад +1

      Hi. David Bombal have made som good videos how to use Netmiko ConnectHandler to multiple devices. ruclips.net/p/PLhfrWIlLOoKPn7T9FtvbOWX8GxgsFFNwn

  • @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?

    • @RogerPerkin
      @RogerPerkin  4 года назад +1

      The best option is with Jinja2 or you can push a text file / take a look at Nornir though as this is a Python automation framework that uses Netmiko and makes network automation with Python much easier

  • @miguelangeldiaz8393
    @miguelangeldiaz8393 3 года назад

    When you have 2 or more devices, but one of them is not reachable the script cut all the entire process, how to make the process continues doesnt matter if there is one device unreachable?

  • @emmanueloluwayemisi
    @emmanueloluwayemisi 3 года назад

    Am facing an issue with netmiko on ubuntu 20.04 connecthandler issue. not installed

  • @alejandroatriano9138
    @alejandroatriano9138 4 года назад

    thanks

  • @anonnewuserp9530
    @anonnewuserp9530 4 года назад +1

    Hi Roger,
    Your videos are very informative. My problem is I don't have a network device to practice with. Is there any way to connect to a device?
    Thank you

    • @RogerPerkin
      @RogerPerkin  4 года назад +1

      Hi, what do you have? Assume you are running on a PC or a laptop? You can spin up GNS3 or EVE-NG on your laptop and easily create a virtual router, or take a look at the Devnet always on Sandbox routers, they are Cisco devices available in the cloud for testing things like this

    • @anonnewuserp9530
      @anonnewuserp9530 4 года назад

      @@RogerPerkin Thanks

  • @brianachenbaugh1470
    @brianachenbaugh1470 5 лет назад +1

    wondering how to send different commands to different routers?

  • @BharathKumar-mv6bk
    @BharathKumar-mv6bk 4 года назад +1

    Hi Im getting issue to by pass login for SG300switches . Can you address it how to by pass it .
    Thanks

  • @luiseduardosotoj1183
    @luiseduardosotoj1183 3 года назад

    Hello Roger, may I know how do you got Secure CRT for Ubuntu?

    • @RogerPerkin
      @RogerPerkin  3 года назад +2

      It's not. It is just another window running on Windows 10. ubuntu is running in a VM on VMWare workstation

    • @luiseduardosotoj1183
      @luiseduardosotoj1183 3 года назад

      @@RogerPerkin thanks Roger 🙂

  • @diaamohamed8826
    @diaamohamed8826 3 года назад

    Amazing , but since 2 years you didn't update this play list so please go ahead and complete it 💪

  • @isaiahamie8210
    @isaiahamie8210 2 года назад

    python to create vlans on multiple cisco switches using vtp

  • @Kunta_Y17
    @Kunta_Y17 4 года назад +1

    My I have a step by step guide on how to install "netmiko"on visual studio as I am having a hard time finding the library

    • @RogerPerkin
      @RogerPerkin  4 года назад +2

      Yves, you don't install Netmiko on visual studio. You install Netmiko in your host machine. For me i am running Ubuntu 18.04 and I install netmiko with pip3 install netmiko - "that's it!" Then you can access your terminal from within Visual Studio Code and run your netmiko commands

  • @Prashanthkadem
    @Prashanthkadem 5 лет назад

    Hi Roger. I'm trying to ping particular ip with count 1000 in my test lab using netmiko and I'm trying to automate this for every 15 minutes for an hour. Do u happen to have a code for this.
    I've tried writing code for this but I'm unsuccessful.

    • @Doest700
      @Doest700 5 лет назад

      You have to import the time module. Use from the time module the time method

  • @haitran1406
    @haitran1406 5 лет назад

    How can i get it to where it prompts me for the username and password and i have to manually type it in after i execute the script before i can login. I dont want to hardcode the username and password in my script for security purposes.

    • @trueoxfordcomma
      @trueoxfordcomma 5 лет назад

      ruclips.net/video/-xK6CwTbsF8/видео.html

    • @haitran1406
      @haitran1406 5 лет назад

      @@trueoxfordcomma I already figured it out but thanks for the info anyhow.

  • @WebSoldier228
    @WebSoldier228 5 лет назад

    How do you do a sh running-config on this, it is failing, every other command works.?

    • @UnidenHU
      @UnidenHU 5 лет назад +2

      maybe it times out for you. You can add the delay_factor = 30 or whatever number, to increase the wait time for your device to get that:)

    • @WebSoldier228
      @WebSoldier228 5 лет назад +1

      @@UnidenHU I figured it out. It was using the wrong networking drivers. I was not using asa drivers. Thanks for the reply.

  • @amarrastogi3991
    @amarrastogi3991 5 лет назад +1

    How to run multiple commands using the same code

    • @RogerPerkin
      @RogerPerkin  5 лет назад

      Hi Amar, I am planning a few more Netmiko videos soon and I will be sure to address your question!

    • @amarrastogi3991
      @amarrastogi3991 5 лет назад

      @@RogerPerkin ok thanks, if you don't mind, can you resolve some of my code issues

    • @RogerPerkin
      @RogerPerkin  5 лет назад

      @@amarrastogi3991 send me a message via my website www.rogerperkin.co.uk/

  • @deondoc
    @deondoc 4 года назад

    I could not follow that at alll,, tooo confusing.

  • @Toleukhan
    @Toleukhan 3 года назад

    Great video! Thank you very much!