I remember how frustrated I was at the beginning of my journey with pexpect. I never knew what string to put as an expect argument, and even if I knew, the pexpect wasn’t catching it. Today we will go through
Tag: pexpect
Pagination handling with pexpect
In this article, we will examine the apparently easy task which is a retrieval of the show version command from the Cisco router. What could go wrong there, and how to fix it? Let’s figure it out! Workflow overview Today,
Script runtime optimization with pexpect
Automation itself is a milestone when it comes to efficiency. Tasks can be executed simultaneously on many devices even during nights/holidays. Sometimes, however, it has its limits. As the task execution time grows more and more, it’s a good idea
Flow control with pexpect
Using pexpect is pretty straightforward, but what about the situations, when we don’t know in what state the device, that we’re interacting with is? In such a scenario, we have to implement logic in our script that could handle different
Basic Cisco router automation workflow with pexpect
Network automation can take many forms depending on the technologies and environments. Sometimes though, we have to dive deep into low-level automation, where we can’t use REST API or other more-convenient technologies. In this article, we will take a brief