ASA-Cleanup icon indicating copy to clipboard operation
ASA-Cleanup copied to clipboard

The number 550094154

Open camwin opened this issue 2 years ago • 4 comments

For some reason this script trips up numbers like "550094154" in the hit count. Any idea why?

camwin avatar Nov 25 '24 20:11 camwin

Can you send some example data so I can reproduce it?

PackeTsar avatar Nov 27 '24 13:11 PackeTsar

access-list inside line 122 extended permit udp any any eq ntp (hitcnt=550094154) 0x29fc48ca

If I change 550094154 to 55009415 it works.

camwin avatar Nov 27 '24 13:11 camwin

How does it break? What does it do?

PackeTsar avatar Nov 27 '24 13:11 PackeTsar

PS C:\Users\me\Downloads\ASA-Cleanup-master\ASA-Cleanup-master> .\Binaries\ASA-Cleanup.exe -lie .\show_access-lists_inside.txt Traceback (most recent call last): File "ASA-Cleanup.py", line 633, in hdata = acl_hit_analysis(lines) File "ASA-Cleanup.py", line 125, in acl_hit_analysis table = make_table(["Name", "Total Hits"], sort_by_hits(totals)) File "ASA-Cleanup.py", line 407, in make_table datalengthdict[item] = len(row[item]) # Then change the value of entry TypeError: object of type 'long' has no len() [14364] Failed to execute script ASA-Cleanup PS C:\Users\me\Downloads\ASA-Cleanup-master\ASA-Cleanup-master> python.exe -V Python 3.11.9 PS C:\Users\me\Downloads\ASA-Cleanup-master\ASA-Cleanup-master> python3.exe -V Python 3.11.9

camwin avatar Nov 27 '24 13:11 camwin