Skip to content

Dell-Networking/Running-Config-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dell SONiC running-configuration backup

Contributions welcome License GitHub issues

Built and maintained by Serhat Kahraman and Contributors


Contents

🚀 Description and Objective

For smaller networks, some customers require the ability to create a history of configurations over time for their network devices. They do not require the ability to automatically restore these configurations. They simply would like to manually inspect configurations of devices over time. This means that the configuration should be readable in a syntax familiar to them. This Python script collects the output of show running-configuration | no-more from Dell Enterprise SONiC switches and can be scheduled using crontab in linux.

📋 Requirements

Dependency: Paramiko

  1. Download this script and copy it to an appropriate directory. By default this script will simply save the configurations in the same directory that the script is located in.
  2. In the directory where you have copied the file, execute this command: chmod +x sonic_config_backup.py
  3. Open crontab for editing with crontab -e
    1. Add an entry to crontab in this manner: 0 6 * * * /path/to/python3 /path/to/sonic_config_backup.py
      1. The "0" in this line specifies the minute.
      2. The "6" specifies the hour.
      3. The "* * *" represents the day of the month, the month of the year, and the day of the week respectively. For more information see: Understanding Crontab in Linux with Examples
    2. You can find the path for python3 with the command which python3

As of this writing it has been tested on Ubuntu 20 and Python3. Additional exception handling and logging may be required for your use-case.

👏 How to Contribute

We welcome contributions to the project. Please reference the CONTRIBUTING guide in the PoC-Index repo for more details (this guide is common across Dell Networking PoC projects).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages