-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve handling "Error in packet Reason: (noSuchName)" situation #4
Comments
Good question. Its probably a good idea to terminate. But what about other errors, should ttg terminate on timeout for instance? |
What about this: Default behaviour is to terminate on any error, but offer another option "e.g. -t Dont terminate on error" with accorging behaviour. Print error text into output line is an option too, but what if people (sometimes me) expect strictly formated output for parsing? Or print error message into STDERR only?? I do not know what solution is better, but I am pretty sure ttg should not count with 0 if get error by SNMP, this is very confusing. Yesterday I sit on it few hours to discovery from where 0 value came from :-/ |
Thanks for finding it out! A flag like |
I looked at the code and the default behavior is to terminate on any SNMP error.
Are you saying that ttg is printing Error in packet but then it continues and doesn't exit? |
Yes, but I am not a C programmer so I cant comment your code. |
Rare case: Two network devices have (accidentaly) same IP addres and SNMP community, one support 64bit counters but second one dont.
Reading packets from 64bit conuter aware device, but (probably) ARP table record expires and device supported only 32bit counters is queried with -x parameter and get error. SNMPGET display "Error in packet
Reason: (noSuchName) There is no such variable name in this MIB. Failed object: .1.3.6.1.2.1.31.1.1.1.10.2" in such situation, but TTG computate with 0 in this case which usually give non-sence results.
Shouldnt be better to terminate TTG with corresponding error message and exitcode?
The text was updated successfully, but these errors were encountered: