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.
Prerequisites: Access to github.com:443
from the DNA-C Appliance.
- Goto home directory:
cd
- Clone this repository to the DNA-C Appliance:
git clone https://github.com/sahanajoshi/dnacataglance.git
- Verify download:
ls dnacataglance
- Goto home directory:
cd
- Delete install directory:
rm -rf dnacataglance
Prerequisites: Access to cxd.cisco.com:443
from the DNA-C Appliance.
- Goto directory where scripts were downloaded:
cd ~/dnacataglance
- Run
./upload_rca.sh
- Follow the prompts. (Refer Appendix: Obtain CXD Token)
- The upload process runs in the background. So the SSH session to the DNA-C can be closed after initiating upload. To confirm upload success, run
cat nohup.out
- 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, andlog_file.log
for the filename.
- Goto directory where scripts were downloaded:
cd ~/dnacataglance
- Run
.dnac_stats.sh
- Follow the prompts. Enter the maglev/admin passwords when prompted.
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.
For detailed instructions on setting up the scripts and other requirements, refer the Deployment Guide in this repository.