https://github.com/dell-networking/running-config-backup
https://github.com/dell-networking/running-config-backup
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dell-networking/running-config-backup
- Owner: Dell-Networking
- License: other
- Created: 2024-03-19T11:58:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T13:17:52.000Z (about 2 years ago)
- Last Synced: 2025-03-18T00:31:13.274Z (about 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Dell SONiC running-configuration backup
[](#-how-to-contribute)
[](https://github.com/Dell-Networking/PoC-SONiC-template/blob/main/LICENSE.md)
[](https://github.com/Dell-Networking/PoC-SONiC-template/issues)
Built and maintained by [Serhat Kahraman](https://github.com/serhatka) and [Contributors](https://github.com/Dell-Networking/PoC-SONiC-template/graphs/contributors)
------------------
## Contents
- [Description and Objective](#-description-and-objective)
- [Requirements](#-requirements)
- [How to Contribute](#-how-to-contribute)
## 🚀 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](https://www.paramiko.org/installing.html)
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](https://linuxhandbook.com/crontab/)
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](https://github.com/Dell-Networking/PoC-Index/blob/main/CONTRIBUTING.md) guide in the PoC-Index repo for more details (this guide is common across Dell Networking PoC projects).