Simple utility to archive network device configurations from DNA Center
This utility is sample code, provided as a demonstration of how to archive device configurations with the DNA Center API.
- Downloads the device configuration for all devices in DNA Center and saves it to a local directory.
- Cisco DNA Center
Using the utility is simple:
- Configure the dnac_config.py to match your DNA Center details
- Then run the utility:
python dnac_network_device_config_archiver_poc.py
- The utility will output a directory called DNAC_Config_Archive with timestamped subdirectories containing the devices configurations pulled from DNA Center. The configuration text files are named using the device's hostname.
./DNAC_Config_Archive/2019-10-16 15:36:48.905188/c9200.site1.company.com
Installation is straight forward:
- Clone the repo:
git clone https://github.com/CiscoSE/dnac_network_device_config_archiver_poc
-
Make a virtual environment (optional)
-
Install the requirements with Python's package manager:
pip install -r requirements.txt