etingof / snmpsim

SNMP Simulator
http://snmplabs.com/snmpsim/
BSD 2-Clause "Simplified" License
393 stars 121 forks source link

datafile.py killed on huge snmpwalk files #143

Open landy2005 opened 4 years ago

landy2005 commented 4 years ago

I have big snmpwalk dump:

$ ls -lh myagent.snmpwalk
-rw-rw-r-- 1 mstupalov mstupalov 221M Jun  9 12:41 myagent.snmpwalk

when try convert to snmprec, datafile script killed by unknown reason (probably memory lost):

$ datafile.py --ignore-broken-records --escaped-strings --source-record-type=snmpwalk --input-file=myagent.snmpwalk --output-file=myagent.snmprec
# Input file #0, processing records from the beginning till the end
Killed
gainskills commented 4 years ago

searched in the repository and got no code related to 'Killed'. I would suggest you check your OS.

landy2005 commented 4 years ago

Funny.. Of course "Killed" is a OS message, when memory ran out.

I was able to convert the file, breaking it into 4 parts.. But I not think this is correct way, need to check the work with memory and cleaning at runtime.

Just for sure, I tried to run without additional parameters (--ignore-broken-records --escaped-strings), with the same result.

gainskills commented 4 years ago

@landy2005 could you share a sample file for the issue?