-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to record from MIB #163
Comments
@BURNI80 You didn't compile AGENTX-MIB properly and You are welcome to read etingof/pysnmp/issues/429 to learn more. |
@BURNI80 if you read the actual MIB documents, you will see that https://github.com/lextudio/sharpsnmppro-mib/blob/master/SNMPv2-TC.txt#L92 So when prompted to input value, you might use something like Similarly you need the following (and more),
|
Hi Ilya,
Thomas again... lol
Been trying to create .snmprec files from MIB files using
snmpsim-record-mibs
but I'm getting the following error:Tried with several MIBs including SNMPv2-MIB which is provided by default in /site-packages/snmpsim etc as well as a correctly formatted one from a DAHUA camera.
Set a breakpoint with PDB and couldn't fathom why args.string_pool was NoneType, this is what I get when I call
args.string_pool
:args
seems like a very weird object, I can call non-existing methods on it, even on args.string_pool:args.string_pool.asdadasda
yields the same result as above...This is the stacktrace:
Traceback (most recent call last): File "/home/thomas/snmp-project/venv/bin/snmpsim-record-mibs", line 8, in <module> sys.exit(main()) File "/home/thomas/snmp-project/venv/lib/python3.8/site-packages/snmpsim/commands/mib2rec.py", line 472, in main val = get_value(node.syntax, hint) File "/home/thomas/snmp-project/venv/lib/python3.8/site-packages/snmpsim/commands/mib2rec.py", line 240, in get_value val = ' '.join([args.string_pool[random.randrange(0, len(args.string_pool))] File "/home/thomas/snmp-project/venv/lib/python3.8/site-packages/snmpsim/commands/mib2rec.py", line 240, in <listcomp> val = ' '.join([args.string_pool[random.randrange(0, len(args.string_pool))] TypeError: object of type 'NoneType' has no len()
The text was updated successfully, but these errors were encountered: