This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Cisco DNA Center Automation scripts

published

This repository contains some simple scripts to get started with Cisco DNA Center API.

To get started you'll need to install the required modules and edit the default controller credentials shown below.

The credentials can be found in if __name__ == '__main__':

    ip = "sandboxdnac.cisco.com"            # DNA Center cluser ip address
    username="devnetuser"                   # DNA Center username
    password="Cisco123!"                    # DNA Center password

DeviceListToExcel.py

This script gets a list of network devices from Cisco DNA Center and presents them in an Excel spreadsheet. The default filename is Device_List.xls and will be saved in the same location as DeviceListToExcel.py.

Requirements

To run this script, run the command: python3 DeviceListToExcel.py

Questions/Discussion

If you find an issue, please raise an issue within the issues section.


Trent Bosak
Cisco Technical Sales Engineer Intern

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.