This video is a quick demo / example use case for Scrapli. Scrapli is a python module that makes CLI screen scraping for network devices easy! In this video, We'll walk through a quick overview & demo - then show how scrapli can be used in an example script.
I am currently working on studying for the following Cisco DevNet exam: Developing Applications using Cisco Core Platforms and APIs (DEVCOR 350-901). In future videos - I'll be taking the example script here and creating a containerized web app to review for the exam.
Example code on GitHub: https://github.com/0x2142/example-scr...
Additional details in the blog: https://0x2142.com/automating-the-cli...
Scrapli: https://github.com/carlmontanari/scrapli
Cisco PyATS & Genie: https://developer.cisco.com/pyats/
Links / Follow me elsewhere:
Blog: https://0x2142.com
Twitter: / 0x2142
Mastodon/Fediverse: @[email protected]
GitHub: https://github.com/0x2142
If this video was helpful to you, please consider subscribing & sharing! Thank you!
Want to support this channel? Buy me a coffee: https://www.buymeacoffee.com/0x2142
Thanks for watching!
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chapters:
0:00 - Intro
1:35 - Scrapli Install & Setup
3:30 - Scraping the CLI
5:13 - Using Cisco Genie to Parse CLI Output
8:06 - Use Case Example (Collecting Port Info)
Standard Disclaimer: Any comments / opinions here are my own, and do not represent my current or former employers.