Using chatbot to leverage DNAC

published

By using DNAC simply, we aim to reduce the burden on administrators in troubleshooting wireless LANs and improve the service level for end users.

Sample Screenshot

This is written in Python 3.7.x and references these popular libraries :

  • base64
  • json
  • logging
  • os
  • re
  • sys
  • time
  • traceback
  • flask
  • requests
  • urllib3
  • urllib3.exceptions

This work will be announced by Team scrum at APJC SE Innovation Challenge: FY22 Hackathon event.

Use Case Description

  • DNA Assurance is a very attractive content for customer demonstrations.
  • There are even customers who decide to buy DNAC (DNA-A) based on the DNA Assurance demo alone.
  • However, usually only administrators can see the DNAC management screen.
  • In terms of actual operation, the administrator needs to open the screen to check every time there is an inquiry from a user.

Installation

  1. Get latest these files from repository:
code
├── chatux12_dnac_umbrella_amp4e.py
├── config.json
├── dictionary.json
└── index.html
  1. Put files to specific server or laptop.
  2. Update config.json according to Configuration section.

Configuration

Update the following values in config.json to suit your environment:

"hostname": "<hostname>" ... replace <hostname> to DNA server hostname
"username": "<username>" ... replace <username> to DNA server access user
"password": "<username>" ... replace <username> to DNA server access password
"umbrella_api_key": "" ... input Umbrella api-key
"amp4e_hostname": "" ... input AMP4E hostname
"amp4e_id": "" ... input AMP4E access id
"amp4e_key": "" ... input AMP4E access key
"reportingActivity": ["GET", "https://reports.api.umbrella.com/v2/organizations/<organizationId>/activity"] ... replace <organizationId> to AMP4E organization id

Usage

  1. Run chatux12_dnac_umbrella_amp4e.py on server or laptop.
  2. Access index.html using HTTP from client.

DevNet Sandbox

I don't have the right DevNet Sandbox environment.

How to test the software

Put and run this code on laptop.

Known issues

I don't have known issues.

Getting help

If you have questions, concerns, bug reports, etc., please mail to aohashi@cisco.com or create an issue against this repository.

Getting involved

Please refer to CONTRIBUTING file.

Credits and references

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.