Netmiko Python Tutorial - Connecting to Cisco Router and Running Commands

  Рет қаралды 55,595

Roger Perkin

Roger Perkin

Күн бұрын

Пікірлер: 62
@RogerPerkin
@RogerPerkin 5 жыл бұрын
Please subscribe for more videos on Python and Netmiko, if you are looking for Ansible Videos for Network Engineers check out this playlist kzbin.info/www/bejne/rWm2l2aojdOWqZI
@josephjefferson189
@josephjefferson189 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 жыл бұрын
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 жыл бұрын
Very clear and easy. You should have much more subscribers
@allenxd
@allenxd 4 жыл бұрын
subscribed thanks Roger. I am learning Python now to start automating. Great Vid!
@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.
@johnhobbs7544
@johnhobbs7544 4 жыл бұрын
Excellent Roger! Many thanks!
@venuonduty5778
@venuonduty5778 5 жыл бұрын
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
@hdhillon774
@hdhillon774 5 жыл бұрын
Good explanation, please create more videos like this...thanks
@tolgayucel1442
@tolgayucel1442 5 жыл бұрын
Your explanation is so clear. Are you going to keep recording new tutorials ? Subscribed !!
@RogerPerkin
@RogerPerkin 5 жыл бұрын
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...
@thameemyousuf8194
@thameemyousuf8194 3 жыл бұрын
Excellent one..Thanks
@patrickcasavant-cssmv
@patrickcasavant-cssmv 3 жыл бұрын
Well explaned! thanks!!
@RogerPerkin
@RogerPerkin 3 жыл бұрын
Thanks, glad it helped
@mIbrahim1981
@mIbrahim1981 3 жыл бұрын
Thanks so much. So helpful ... Please how to print command in the output plus the result of command
@ashishkumarsharma9488
@ashishkumarsharma9488 4 жыл бұрын
It was very good, Thank you.
@jclm1rt
@jclm1rt 5 жыл бұрын
Great video, thanks a lot!!
@RogerPerkin
@RogerPerkin 5 жыл бұрын
Thanks Julio, glad you enjoyed it
@cpking1720
@cpking1720 5 жыл бұрын
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 жыл бұрын
Hi. David Bombal have made som good videos how to use Netmiko ConnectHandler to multiple devices. kzbin.info/aero/PLhfrWIlLOoKPn7T9FtvbOWX8GxgsFFNwn
@acewhitestar1629
@acewhitestar1629 3 жыл бұрын
Thank You!!!!!!!!!!!!!!!!!!!!!!!
@moemanm1202
@moemanm1202 3 жыл бұрын
this was a very good video, thanks. Out of netmiko, paramiko or ansible. which would you say is better for network automation.
@harsha00761
@harsha00761 4 жыл бұрын
Thank you so much!
@johnhobbs7544
@johnhobbs7544 4 жыл бұрын
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
@gufran.khan449
@gufran.khan449 4 жыл бұрын
How we can pass multiple cmds? Can you share that as well?
@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 жыл бұрын
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
@anonnewuserp9530
@anonnewuserp9530 4 жыл бұрын
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 жыл бұрын
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
@manojk1494
@manojk1494 Жыл бұрын
@RogerPerkin Please provide me the link for the YT video for multiple device connection with Netmiko, which you mentioned in this video.
@BharathKumar-mv6bk
@BharathKumar-mv6bk 4 жыл бұрын
Hi Im getting issue to by pass login for SG300switches . Can you address it how to by pass it . Thanks
@brianachenbaugh1470
@brianachenbaugh1470 5 жыл бұрын
wondering how to send different commands to different routers?
@emmanueloluwayemisi
@emmanueloluwayemisi 3 жыл бұрын
Am facing an issue with netmiko on ubuntu 20.04 connecthandler issue. not installed
@luiseduardosotoj1183
@luiseduardosotoj1183 3 жыл бұрын
Hello Roger, may I know how do you got Secure CRT for Ubuntu?
@RogerPerkin
@RogerPerkin 3 жыл бұрын
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 🙂
@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?
@alejandroatriano9138
@alejandroatriano9138 4 жыл бұрын
thanks
@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 жыл бұрын
kzbin.info/www/bejne/Y6muZ3aticemfJo
@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 жыл бұрын
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 жыл бұрын
@@UnidenHU I figured it out. It was using the wrong networking drivers. I was not using asa drivers. Thanks for the reply.
@Kunta_Y17
@Kunta_Y17 4 жыл бұрын
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 жыл бұрын
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
@isaiahamie8210
@isaiahamie8210 2 жыл бұрын
python to create vlans on multiple cisco switches using vtp
@diaamohamed8826
@diaamohamed8826 3 жыл бұрын
Amazing , but since 2 years you didn't update this play list so please go ahead and complete it 💪
@amarrastogi3991
@amarrastogi3991 5 жыл бұрын
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!
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Python for Network Engineers
9:07
Cisco U. by Learning & Certifications
Рет қаралды 2,8 М.
Python SSH Client - Paramiko. SSH with Python.
7:21
DevOps Journey
Рет қаралды 80 М.
Parse Cisco IOS to JSON with Python and Netmiko
17:15
Data Knox
Рет қаралды 22 М.
Let's Build a Netmiko Script
11:20
Cisco U. by Learning & Certifications
Рет қаралды 3,8 М.
Python Netmiko for ArubaOS and HPE Comware - Install & Example Script
10:29
Airheads Broadcasting
Рет қаралды 11 М.
Network Automation For Network Engineers - Netmiko
24:45
Silesio Carvalho
Рет қаралды 996
Top 5 Python Libraries for Network Automation
7:03
CBT Nuggets
Рет қаралды 18 М.
get started with Ansible Network Automation (FREE cisco router lab)
15:02