Sample use cases
As our network becomes bigger and starts to contain many devices from different vendors, we need to create modular Python script to automate various tasks in it. In the following sections, we will explore three use cases, which could be used to collect different information from our network and to lower the time needed for troubleshooting a problem, or at least restore the network configuration to its last known good state. This will allow network engineers to focus more on getting their job done and will provide an automated workflow for the business to handle network failure and restoration.
Backup device configuration
Backup device configuration is one of the most important tasks for any network engineer. In this use case, we will design a sample python script that can be used for different vendors and platforms in order to back up the device configuration. We will leverage the netmiko
library to do this task.
The result files should be formatted with the device IP address...