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.

DNA-C At A Glance

Table of Contents

Introduction

DNA-C at a glance is a project that is aimed at users of the Cisco DNA-C Appliance for troubleshooting, auditing, etc. on Cisco DNA-C CLI.

Installation

Prerequisites: Access to github.com:443 from the DNA-C Appliance.

  1. Goto home directory: cd
  2. Clone this repository to the DNA-C Appliance: git clone https://github.com/sahanajoshi/dnacataglance.git
  3. Verify download: ls dnacataglance

Features

Upload RCA

Prerequisites: Access to cxd.cisco.com:443 from the DNA-C Appliance.

  1. Goto directory where scripts were downloaded: cd ~/dnacataglance
  2. Run ./upload_rca.sh
  3. Follow the prompts. (Refer Appendix: Obtain CXD Token)
  4. The upload process runs in the background. So the SSH session to the DNA-C can be closed after initiating upload. The script gives an option to enter an email id. Upon successful upload, a mail will be sent to this id.

What to expect when you run the script?

Image of DNAC-CLI
Image of mycase portal

Notes
  • Completion codes
Code Reason Resolution
401 Unauthorized Request Check SR number or CXD token
201 Successful Upload -
  • RCA files are large in size (~300-400 MB) and will take sometime for upload to complete depending on your bandwidth availability.

  • Other logs/files can also be uploaded to the case. To do this, enter the file path and filename when prompted. For example, if you have to upload /tmp/log_file.log, enter /tmp/ for the path, and log_file.log for the filename.

Basic Health Check

  1. Goto directory where scripts were downloaded: cd ~/dnacataglance
  2. Run .dnac_stats.sh
  3. Follow the prompts. Enter the maglev/admin passwords when prompted.

Removal / Cleanup

  1. Goto home directory: cd
  2. Delete install directory: rm -rf dnacataglance

Appendix

Obtain CXD Token

CXD token is generated by Cisco Support Case Manager for every SR (Service Request) opened with Cisco and can be obtained in the following ways.

  • https://mycase.cloudapps.cisco.com > Case > Attachments > Generate Token.
  • In the initial automatic email sent out when a new SR is created.
  • Cisco TAC engineer will be able to provide the CXD token.

Where can the customer see the CXD Token?

Image of mycase portal

For detailed instructions on setting up the scripts and other requirements, refer the Deployment Guide in this repository.

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.