Skip to content

Simple utility to archive network device configurations from DNA Center

License

Notifications You must be signed in to change notification settings

CiscoSE/dnac_network_device_config_archiver_poc

Repository files navigation

DNAC Network Device Config Archiver POC

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.

Features

  • Downloads the device configuration for all devices in DNA Center and saves it to a local directory.

Solution Components

Cisco Products / Services

  • Cisco DNA Center

Usage

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

Installation is straight forward:

  1. Clone the repo:
git clone https://github.com/CiscoSE/dnac_network_device_config_archiver_poc
  1. Make a virtual environment (optional)

  2. Install the requirements with Python's package manager:

pip install -r requirements.txt

About

Simple utility to archive network device configurations from DNA Center

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages