cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1556
Views
1
Helpful
2
Replies

Generating an RCA File CURL Failure

davidlpifer
Level 1
Level 1

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 ....

  • CISCO needs to fix this feature to allow CURL to run
  • Fix TAC to never ask me to generate a RCA file without being on the phone to generate the shell validation code
  • Fix or remove the CURL process from the documentation.

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. 

2 Replies 2

Tomas de Leon
Cisco Employee
Cisco Employee

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

 

Martin Ermel
VIP Alumni
VIP Alumni

Thank you Tomas for providing this info and also an example. This is very useful even the curl upload was a lot faster.