09-08-2023 01:53 PM - edited 09-08-2023 01:56 PM
So the instructions on how to generate an RCA file has this really cool step where you can CURL the file to the TAC CASE directly. And the documents on the cisco site even have teh instructions to do so...
curl -T /data/rca/{FILENAME} -u {TACKEY} https://cxd.cisco.com/home/
BUT curl not available with out shell authorization from TAC so ....
You used to be able to go into shell mode but not any more with out TAC approval Also I used to be able to delete the 1.4GB RCA files off the DNAC server but without shell access I can't get to them in the CLI.
09-20-2023 07:24 PM
In Cisco Catalyst Center (formerly Cisco DNA Center), you should be able to perform
the same tasks using the "rca" CLI command. For the RCA, you will need to SSH to the
Cisco Catalyst Center on port 2222 as the "maglev" username. Then you can run the
rca with the command:
$ rca
$ rca --help
Help:
rca - root cause analysis collection utilities
Usage: rca [COMMAND] [ARGS]...
Commands:
clear - clear RCA files
copy - copy rca files to specified location
exec - collect RCA
view - restricted filesystem view
#
### After the RCA capture has been completed, the controller will display the
### maglev_rca.tar.gz filename that was generated. You can also view the RCA files
### on the server using the command:
#
$ rca view
For Example:
------------
$ rca view
total 12084060
-rwxr-xr-x 1 maglev maglev 776041495 Jul 10 2022 maglev-1.1.1.207-rca-2022-07-10_03-34-52_UTC.tar.gz
-rwxr-xr-x 1 maglev maglev 811769582 Sep 29 2022 maglev-1.1.1.207-rca-2022-09-29_02-22-59_UTC.tar.gz
#
### To upload the file to the Cisco TAC Case (SR#), you can use the following command:
#
$ rca copy --files filename sr_number@cxd.cisco.com:
Password is ############ (provided by the Cisco TAC Engineer)
For Example:
------------
rca copy --files maglev-1.1.1.207-rca-2022-07-10_03-34-52_UTC.tar.gz 123456789@cxd.cisco.com:maglev-1.1.1.207-rca-2022-07-10_03-34-52_UTC.tar.gz
#
### If you are would to clean up the existing RCA files, you can run the following command:
#
$ rca clear filename
For Example:
------------
$ rca clear maglev-1.1.1.207-rca-2022-07-10_03-34-52_UTC.tar.gz
$ rca view
total 11326200
-rwxr-xr-x 1 maglev maglev 811769582 Sep 29 2022 maglev-1.1.1.207-rca-2022-09-29_02-22-59_UTC.tar.gz
02-13-2024 02:08 PM
Thank you Tomas for providing this info and also an example. This is very useful even the curl upload was a lot faster.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide