-
Notifications
You must be signed in to change notification settings - Fork 113
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
Changing from depth "2" to depth "3" causes an error #45
Comments
i assume you get this error even if you set no depth? which would default to 100.. Do you get any weird output or failed snmp responses in the discover/collect stages? I had an issue where a device was discovered but when it went to do the collect details it was failing and hitting an unexpected error i had to adjust some code in the snmp.py file. Your error doesn't look the same as what i was getting though. |
Thanks for the reply! It turned out to be trap receivers?? If I have: snmp-server community publ1c RO it won't go past this host (which is why level 2 was working, but not level 3). But as soon as I remove that second line, it will discover this switch and discover the devices past that.. very weird. I can reproduce it without issue.. very weird.. at least for me. This is a really great tool, btw! I have used it at 2 customers and it always amazes me how IT people get excited about drawings ;-) Thanks again for this!! |
This is the error I'm getting on a brocade network. If I add to the command
|
I have used this at a couple of places now, fantastic tool! But for some reason, I can run this command at a customer of mine:
python3 natlas-cli.py diagram -r 192.168.0.10 -d 3 -o \network1.png -c natlas.conf -t first_title
...and I get this:
Back filling node details...
['dot', '-Tpng', '/tmp/tmpdg9d8o3d'] return code: 1
stdout, stderr:
b''
b"Error: /tmp/tmpdg9d8o3d: syntax error in line 128 near '['\n"
Traceback (most recent call last):
File "natlas-cli.py", line 305, in
main(sys.argv[1:])
File "natlas-cli.py", line 96, in main
exec_mod(mod, argv[1:])
File "natlas-cli.py", line 167, in exec_mod
modret = module.entryfunc(natlas_obj, argv)
File "./modules/diagram.py", line 88, in mod_entry
if (opt_output != None): natlas_obj.write_diagram(opt_output, opt_title)
File "/home/bkastor/natlas/natlas/natlas.py", line 125, in write_diagram
self.diagram.generate(output_file, diagram_title)
File "/home/bkastor/natlas/natlas/output_diagram.py", line 108, in generate
output_func(f)
File "/usr/lib/python3/dist-packages/pydot.py", line 1691, in
self.write(path, format=f, prog=prog))
File "/usr/lib/python3/dist-packages/pydot.py", line 1774, in write
s = self.create(prog, format)
File "/usr/lib/python3/dist-packages/pydot.py", line 1900, in create
assert p.returncode == 0, p.returncode
AssertionError: 1
...but when I run this command:
python3 natlas-cli.py diagram -r 192.168.0.10 -d 2 -o \network1.png -c natlas.conf -t first_title
It works great? I have tried digging around for a device that might be causing an issue, but this error doesn't point me in the right direction. Any hints as to what it might be? I have tried PNG and SVG.. the natlas.conf is the same between runs... Thanks for this awesome tool!!
The text was updated successfully, but these errors were encountered: