Check out the Scrapli docs here: carlmontanari.... Check Scrapli out on Github: github.com/car...
Пікірлер: 25
@1983Moseley3 жыл бұрын
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!
@IPvZero3 жыл бұрын
Thanks, brother! Was a lot of work but worked it in the end :)
@blaineturner65472 жыл бұрын
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!
@IPvZero2 жыл бұрын
Thanks so much, Blaine. I really appreciate your kind words and hearing your feedback :) -John
@mc-rt2xg8 ай бұрын
Thank you! I have tried it too and it works really fast!
@barbossa1677 Жыл бұрын
Awesome demo Are you John McGovern ? the trainer at cbt nuggets ? you sounds familiar
@Gtv70203 жыл бұрын
Congratulations on 1st Class Honors!
@IPvZero3 жыл бұрын
Thanks, Gezahegn! I really appreciate it :) -John
@djmezza13 жыл бұрын
Congratulations John!
@IPvZero3 жыл бұрын
Thanks, Ryan. Really appreciate it man :)
@carlosmontero67773 жыл бұрын
This is great! Thanks for sharing
@IPvZero3 жыл бұрын
Thanks Carlos!!
@muhammad.rafi20123 жыл бұрын
ahh John, thanks for remembering back to your KZbin password :P
@IPvZero3 жыл бұрын
Haha thanks Muhammad! Hopefully be a lot more active now :)
@damianbrathwaite49183 жыл бұрын
Congratulations to you.
@IPvZero3 жыл бұрын
Thanks, Damian!!
@qman28523 жыл бұрын
What are the advantages of async with Scrapli vs nornir with Scrapli?
@IPvZero3 жыл бұрын
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 Жыл бұрын
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
@jaimerosariojusticia3 жыл бұрын
Awesome!
@IPvZero3 жыл бұрын
Thanks Jaime! :)
@eddurguti2 жыл бұрын
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?
@IPvZero2 жыл бұрын
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
@eddurguti2 жыл бұрын
@@IPvZero thank you. I probably need to start looking into nornir. Love your videos man.
@IPvZero2 жыл бұрын
@@eddurguti Thanks, brother. Genuinely appreciate the kind words :)