cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Cisco AMP for Endpoints Find Duplicates

262
Views
0
Helpful
1
Comments
Beginner

Hi there,

 

I have downloaded a Python script to find the duplicates on Cisco AMP for Endpoints dashboard from the following URL:

 

 https://github.com/CiscoSecurity/amp-04-find-duplicate-guids

 

When I'm running the Python script, I'm getting the following error:

 

py find_duplicate_guids.py
Traceback (most recent call last):
File "find_duplicate_guids.py", line 147, in <module>
main()
File "find_duplicate_guids.py", line 124, in main
total_guids = response_json['metadata']['results']['total']
KeyError: 'metadata'

 

I hope someone can help me solving this issue. Thanks.

 

Regards,

 

Sam

1 Comment
Beginner
Beginner

Hi

looks like the response does not contain the expected output.

try with a simple print(response_json) to debug. Maybe you have to go further up in the code.

Often in such sample scripts there is no exception handling or error checking done.

 

Just to be sure: use python3 as interpreter means run 

python3 <script.py>

 

This widget could not be displayed.