Scrapli - Asynchronous Network Automation

  Рет қаралды 3,033

IPvZero

IPvZero

Күн бұрын

Check out the Scrapli docs here: carlmontanari....
Check Scrapli out on Github: github.com/car...

Пікірлер: 25
@1983Moseley
@1983Moseley 3 жыл бұрын
Hey dude, I've been listening to the Hangouts on the train. Very interesting. I'm so chuffed that you got a 1st at Uni. That's massive. Well done brother!
@IPvZero
@IPvZero 3 жыл бұрын
Thanks, brother! Was a lot of work but worked it in the end :)
@blaineturner6547
@blaineturner6547 2 жыл бұрын
Great overview of both Scrapli and async. Been talking with colleagues about async operations and for some reason was fuzzy on the terminology until this vid helped hammer it home. Thanks for taking the time to put this together!
@IPvZero
@IPvZero 2 жыл бұрын
Thanks so much, Blaine. I really appreciate your kind words and hearing your feedback :) -John
@mc-rt2xg
@mc-rt2xg 8 ай бұрын
Thank you! I have tried it too and it works really fast!
@barbossa1677
@barbossa1677 Жыл бұрын
Awesome demo Are you John McGovern ? the trainer at cbt nuggets ? you sounds familiar
@Gtv7020
@Gtv7020 3 жыл бұрын
Congratulations on 1st Class Honors!
@IPvZero
@IPvZero 3 жыл бұрын
Thanks, Gezahegn! I really appreciate it :) -John
@djmezza1
@djmezza1 3 жыл бұрын
Congratulations John!
@IPvZero
@IPvZero 3 жыл бұрын
Thanks, Ryan. Really appreciate it man :)
@carlosmontero6777
@carlosmontero6777 3 жыл бұрын
This is great! Thanks for sharing
@IPvZero
@IPvZero 3 жыл бұрын
Thanks Carlos!!
@muhammad.rafi2012
@muhammad.rafi2012 3 жыл бұрын
ahh John, thanks for remembering back to your KZbin password :P
@IPvZero
@IPvZero 3 жыл бұрын
Haha thanks Muhammad! Hopefully be a lot more active now :)
@damianbrathwaite4918
@damianbrathwaite4918 3 жыл бұрын
Congratulations to you.
@IPvZero
@IPvZero 3 жыл бұрын
Thanks, Damian!!
@qman2852
@qman2852 3 жыл бұрын
What are the advantages of async with Scrapli vs nornir with Scrapli?
@IPvZero
@IPvZero 3 жыл бұрын
Hey Qman. Nornir with Scrapli is also a very good option. However, Nornir does use threading and as you scale out your network, particularly when dealing with thousands of devices, threads can become resource heavy and costly. At the scale of a few hundred devices I cant imagine you'd notice any great difference, if at all. Dealing with a massive number of devices, though, asyncio will produce faster and more scalable results. To quote from a Real Python article: "For I/O-bound problems, there’s a general rule of thumb in the Python community: 'Use asyncio when you can, threading when you must.'” Hope that helps :)
@jimwelch707
@jimwelch707 Жыл бұрын
I came across this video and implemented everything as suggested and even though I have installed the scrapli[asyncssh] library I get this error: ModuleNotFoundError: No module named 'scrapli_asyncssh:'. Then after the error it offers he following for a solution 'pip install scrapli[asyncssh]. After searching the web for a solution and not finding any, I thought perhaps someone on this thread might have a fix. Any ideas, anyone? Running Python 3-11
@jaimerosariojusticia
@jaimerosariojusticia 3 жыл бұрын
Awesome!
@IPvZero
@IPvZero 3 жыл бұрын
Thanks Jaime! :)
@eddurguti
@eddurguti 2 жыл бұрын
Hi John, can you limit on how many devices you can access at a time, I have about 10k and was thinking maybe doing 100 at a time?
@IPvZero
@IPvZero 2 жыл бұрын
Hey, Ed. You could use something like a semaphore within Asyncio which will manage an internal counter to break up the concurrency. So you could do it in blocks of 100. That said, if you plan to do only 100 connections at a time I can't imagine youd see much performance difference of using asyncio over threading. In that case, it's probably way easier to use the Nornir framework (and the nornir_scrapli plugin for the connections). Your concurrency will be implemented automatically with threading and you will get the benefit of built in inventory management and cool filtering features. This makes it way easier. I have a couple of videos on how to do such a thing: Simple filtering with Nornir: kzbin.info/www/bejne/mp_ZlJprfc5niZI Advanced filtering with Nornir: kzbin.info/www/bejne/o52zlZyDlM-gi6M Or if you wanna stick with Asyncio - look towards using semaphores. Although i havent written any such examples for that as of yet :) Hope that helps! -John
@eddurguti
@eddurguti 2 жыл бұрын
@@IPvZero thank you. I probably need to start looking into nornir. Love your videos man.
@IPvZero
@IPvZero 2 жыл бұрын
@@eddurguti Thanks, brother. Genuinely appreciate the kind words :)
Scrapli CFG - Network Automation
21:05
IPvZero
Рет қаралды 3 М.
Network Automation: Desired State!
13:08
IPvZero
Рет қаралды 1,3 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 57 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 22 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 6 МЛН
NETCONF Network Automation (the easy way)!
14:08
IPvZero
Рет қаралды 3 М.
Automated Network Testing with NAPALM!
7:59
IPvZero
Рет қаралды 2,1 М.
Automating the CLI: Using Scrapli & Cisco Genie to Collect Interface Utilization
12:26
0x2142 - Networking Nonsense
Рет қаралды 3,6 М.
*FREE* NETCONF Network Automation Lab!
9:21
IPvZero
Рет қаралды 3,2 М.
Simple Automated SSH Python Bot
17:50
NeuralNine
Рет қаралды 32 М.
Vim is Amazing | Editing for Automation!
13:55
IPvZero
Рет қаралды 2,6 М.
Introduction to Nornir3!
9:05
IPvZero
Рет қаралды 3,4 М.
How to Automate Cisco Networks with NETCONF!
14:21
IPvZero
Рет қаралды 4,5 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 57 МЛН