We talk about APIs so often you might feel like something’s wrong with you if you keep logging into the CLI to get things done. Of course, there are reasons you’re interacting with the CLI, and it’s not just that you’re resistant to change. Sometimes the CLI is really the best way to accomplish configuration tasks to gather important information. Fair enough.
What if you want to automate those interactions with the CLI? Is there a way? Historically, maybe we’ve used TCL paired with expect. Or more on trend lately, netmiko or NAPALM. And now a new Python-based CLI scraper has been born…scrapli, as in, “scrape CLI”. See what they did there?
Our guests are Carl Montanari and Dmitry Figol to talk to us about the joys of CLI scraping with scrapli.
ITProTV helps you make your heavy networking skills–and others–even heavier. Get a 7-day free trial and 30% savings off of any plan you choose! Visit ITPro.TV/packetpushers and use promo code PACKETPUSHERS at checkout.
Sponsor: Dell Technologies
If you’re interested in an enterprise-ready, open source NOS for your data center, Dell Technologies’ Enterprise SONiC Distribution is open source networking made real. It brings together the innovation and scalability of open source SONiC with the trusted enterprise expertise of Dell Technologies with its family of open networking PowerSwitch platforms, enterprise-ready features, and global support. Visit packetpushers.net/dellsonic for more details.
Scrapli on GitHub
carlmontanari/scrapli – GitHub
Carl Montanari on LinkedIn
Dmitry Figol on LinkedIn