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
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.
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.)
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.
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?
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
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?
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
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
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
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.
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.
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
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.
Thanks a lot.. keep failing to parse nokia 7210 on my python, but now it works following your video :D
Very clear and easy. You should have much more subscribers
Do appreciate you break down the steps to show how these command works individually before building a script. This helps very much.
subscribed thanks Roger. I am learning Python now to start automating. Great Vid!
Good explanation, please create more videos like this...thanks
Excellent, I like this video very much. And this made me to start coding again after a decade. Keep sharing .........
That's great thanks for the feedback
Excellent Roger! Many thanks!
Excellent one..Thanks
It was very good, Thank you.
Your explanation is so clear. Are you going to keep recording new tutorials ? Subscribed !!
Thank You Tolga, I am planning on doing some more Netmiko tutorials hopefully in the next few weeks, glad you enjoyed it.
@@RogerPerkin still waiting...
Well explaned! thanks!!
Thanks, glad it helped
Thank You!!!!!!!!!!!!!!!!!!!!!!!
Great video, thanks a lot!!
Thanks Julio, glad you enjoyed it
Thanks so much. So helpful ... Please how to print command in the output plus the result of command
Thank you so much!
@RogerPerkin
Please provide me the link for the YT video for multiple device connection with Netmiko, which you mentioned in this video.
this was a very good video, thanks.
Out of netmiko, paramiko or ansible. which would you say is better for network automation.
How we can pass multiple cmds? Can you share that as well?
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.)
That is exactly what I did, I just didn't say send underscore command when I typed it in
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.
Hi. David Bombal have made som good videos how to use Netmiko ConnectHandler to multiple devices. ruclips.net/p/PLhfrWIlLOoKPn7T9FtvbOWX8GxgsFFNwn
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?
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
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?
Am facing an issue with netmiko on ubuntu 20.04 connecthandler issue. not installed
thanks
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
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
@@RogerPerkin Thanks
wondering how to send different commands to different routers?
Hi Im getting issue to by pass login for SG300switches . Can you address it how to by pass it .
Thanks
Hello Roger, may I know how do you got Secure CRT for Ubuntu?
It's not. It is just another window running on Windows 10. ubuntu is running in a VM on VMWare workstation
@@RogerPerkin thanks Roger 🙂
Amazing , but since 2 years you didn't update this play list so please go ahead and complete it 💪
python to create vlans on multiple cisco switches using vtp
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
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
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.
You have to import the time module. Use from the time module the time method
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.
ruclips.net/video/-xK6CwTbsF8/видео.html
@@trueoxfordcomma I already figured it out but thanks for the info anyhow.
How do you do a sh running-config on this, it is failing, every other command works.?
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:)
@@UnidenHU I figured it out. It was using the wrong networking drivers. I was not using asa drivers. Thanks for the reply.
How to run multiple commands using the same code
Hi Amar, I am planning a few more Netmiko videos soon and I will be sure to address your question!
@@RogerPerkin ok thanks, if you don't mind, can you resolve some of my code issues
@@amarrastogi3991 send me a message via my website www.rogerperkin.co.uk/
I could not follow that at alll,, tooo confusing.
Great video! Thank you very much!