cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2457
Views
0
Helpful
3
Replies

Error when running AURA

rasmus.elmholt
Level 7
Level 7

Hi,

 

I am in the process of upgrading a DNA Center and would like to run the AURA tool with commandline parameters.

But when I do so it stops with an error.

$ ./dnac_aura -s -o -c
/tmp/pip-unpacked-wheel-i2cahb/PyInstaller/loader/pyimod03_importers.py:391: CryptographyDeprecationWarning: Python 2 is n        o longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a fut        ure release.

####################################################
###                                              ###
###   Welcome to the Cisco DNA Center AURA Tool  ###
###             version:1.4.0                    ###
###                                              ###
####################################################
###
###   All Checks will be skipped and CLI command outputs will be captured  ###
###

#01:Checking:Latest version of AURA
 INFO:AURA is up to date
 INFO:maglevconf has a valid token. Continuing Execution without performing maglev login...

#02:Checking:Determine Cisco DNA Center Product Type, Serial number, SW Version & Node IP
[sudo] password for maglev:
 INFO:Cisco DNAC VERSION : 1.3.3.8
 INFO:NODE IP : 172.16.0.11
 INFO:Cisco DNA Center device type is DN2-HW-APL
 INFO:Cisco DNA Center Serial Number is     WMXXXXXXX

#03:Checking:Determine Cisco DNA Center memberid
 INFO:memberID is 5f589dd99a9c810017024d27
 *Error:#01:Unable to determine the sites, please choose from one of the following
 INFO:[u'Global/EMEA/Denmark/CPH/test1', u'Global/EMEA/Denmark/CPH/test2']

Am i missing something?

 

I can run the tool without any arguments and it works fine.

1 Accepted Solution

Accepted Solutions

Tomas de Leon
Cisco Employee
Cisco Employee

As you mentioned, you are running into the error:

"*Error:#01:Unable to determine the sites, please choose from one of the following"

 

You ran the AURA tool with the following parameters:

$ ./dnac_aura -s -o -c

-s
Run additional SDA checks. To execute these checks,
the tool will login to other devices in the fabric and
collect show command outputs.

-o
To collect CLI outputs from the network devices via
the Cisco DNA Center. Ensure you have the
captureFile.yaml in the same folder as this tool.

-c
Compare configurations across multiple devices. You
can choose 2 timestamps from previous captures taken
with the -o option. PDF Report will be generated with
the diffs.

The error that you are seeing is typically seen when the "captureFile.yaml" has not been updated to your environment and is using the DEFAULT example of the yaml file. OR the file is missing from the AURA Tool directory in which the Tool is run. Please Verify this step and try again.

 

For Example (Default File):

$ ./dnac_aura -s -o -c

#03:Checking:Determine Cisco DNA Center memberid
INFO:memberID is 5eb9a2c6ea33cd0018ca0ada
*Error:#01:Unable to determine the sites, please choose from one of the following
INFO:[u'Global/NorthAmerica/NorthCarolina-ResearchTrianglePark', u'Global/NorthAmerica/California-SanJose']

 

For Example (Custom\Modified File):

$ ./dnac_aura -s -o -c

#03:Checking:Determine Cisco DNA Center memberid
INFO:memberID is 5eb9a2c6ea33cd0018ca0ada
INFO:Capture Name: capALLCP -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLCP -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLCP_2020-12-05_14_22_18.json sda_capture_capALLCP_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Capture Name: capALLE -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLE -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLE_2020-12-05_14_22_18.json sda_capture_capALLE_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Unable to understand device 192.168.0.202 hence eliminating it for capture cap1-RTP
INFO:Capture Name: cap1-RTP -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: cap1-RTP -- Built a Command list of 2 commands: ['show interface', 'show ver']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_cap1-RTP_2020-12-05_14_22_18.json sda_capture_cap1-RTP_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Capture Name: capALLB -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLB -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLB_2020-12-05_14_22_18.json sda_capture_capALLB_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Unable to understand device 192.168.111.218 hence eliminating it for capture cap1-DEADBEEF
INFO:Capture Name: cap1-DEADBEEF -- Built a Device list of 0 devices: []
INFO:Capture Name: cap1-DEADBEEF -- Built a Command list of 2 commands: ['show interface', 'show ver']
INFO:Start Command Output Collection
INFO:Skipping the capture cap1-DEADBEEF as either device list or command list is empty


******
Cisco DNA Center AURA tool has successfully completed.
Outputs can be found at:
-- Cisco DNA Center AURA Outputs (tar.gz file) : /data/tmp/dnac_aura/logs/DNAC_AURA_Logs_2020-12-05_14_22_18.tar.gz

View solution in original post

3 Replies 3

Tomas de Leon
Cisco Employee
Cisco Employee

As you mentioned, you are running into the error:

"*Error:#01:Unable to determine the sites, please choose from one of the following"

 

You ran the AURA tool with the following parameters:

$ ./dnac_aura -s -o -c

-s
Run additional SDA checks. To execute these checks,
the tool will login to other devices in the fabric and
collect show command outputs.

-o
To collect CLI outputs from the network devices via
the Cisco DNA Center. Ensure you have the
captureFile.yaml in the same folder as this tool.

-c
Compare configurations across multiple devices. You
can choose 2 timestamps from previous captures taken
with the -o option. PDF Report will be generated with
the diffs.

The error that you are seeing is typically seen when the "captureFile.yaml" has not been updated to your environment and is using the DEFAULT example of the yaml file. OR the file is missing from the AURA Tool directory in which the Tool is run. Please Verify this step and try again.

 

For Example (Default File):

$ ./dnac_aura -s -o -c

#03:Checking:Determine Cisco DNA Center memberid
INFO:memberID is 5eb9a2c6ea33cd0018ca0ada
*Error:#01:Unable to determine the sites, please choose from one of the following
INFO:[u'Global/NorthAmerica/NorthCarolina-ResearchTrianglePark', u'Global/NorthAmerica/California-SanJose']

 

For Example (Custom\Modified File):

$ ./dnac_aura -s -o -c

#03:Checking:Determine Cisco DNA Center memberid
INFO:memberID is 5eb9a2c6ea33cd0018ca0ada
INFO:Capture Name: capALLCP -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLCP -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLCP_2020-12-05_14_22_18.json sda_capture_capALLCP_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Capture Name: capALLE -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLE -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLE_2020-12-05_14_22_18.json sda_capture_capALLE_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Unable to understand device 192.168.0.202 hence eliminating it for capture cap1-RTP
INFO:Capture Name: cap1-RTP -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: cap1-RTP -- Built a Command list of 2 commands: ['show interface', 'show ver']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_cap1-RTP_2020-12-05_14_22_18.json sda_capture_cap1-RTP_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Capture Name: capALLB -- Built a Device list of 1 devices: ['V1-FIAB1.dna.local']
INFO:Capture Name: capALLB -- Built a Command list of 2 commands: ['show ver', 'show running']
INFO:Start Command Output Collection
INFO:Calling Command Runner
INFO:Devices in this iteration ['V1-FIAB1.dna.local']
Cisco DNA Center is capturing commands from the network, sleeping 30 seconds...
INFO:Created new command capture files sda_capture_capALLB_2020-12-05_14_22_18.json sda_capture_capALLB_2020-12-05_14_22_18.log in directory /data/tmp/dnac_aura/logs/2020-12-05_14_22_18
INFO:Unable to understand device 192.168.111.218 hence eliminating it for capture cap1-DEADBEEF
INFO:Capture Name: cap1-DEADBEEF -- Built a Device list of 0 devices: []
INFO:Capture Name: cap1-DEADBEEF -- Built a Command list of 2 commands: ['show interface', 'show ver']
INFO:Start Command Output Collection
INFO:Skipping the capture cap1-DEADBEEF as either device list or command list is empty


******
Cisco DNA Center AURA tool has successfully completed.
Outputs can be found at:
-- Cisco DNA Center AURA Outputs (tar.gz file) : /data/tmp/dnac_aura/logs/DNAC_AURA_Logs_2020-12-05_14_22_18.tar.gz

rasmus.elmholt
Level 7
Level 7

Hi,

Yes of cause the -o option needs a yaml file.

Do you have any documantion on how this file should look to use it?

Sorry, I just need to actually read the documentation: 

To specify the devices and the commands to run on these devices, require the captureFile.yaml to be available in the same directory. The sample is present in github.

Review Cisco Networking for a $25 gift card