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 in them for easy access or referencing later. For example, the result file for the SW1 backup operation should be dev_10.10.88.111_.cfg.

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.