aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src
AgeCommit message (Collapse)Author
2019-07-08Merge branch 'bmk/snmp/20190624/compile_time_info/OTP-15330' into maintMicael Karlberg
2019-07-08[snmp] Compile time no longer availableMicael Karlberg
The function 'snmp:print_version_info/0' which prints various (version) info, attempted to extract the "compile time" of each module in the snmp app. This info used to be availabe in the module_info of each module, but has been removed (a "long" time ago). This resulted in a pointless "Not Found" beeing printed. This has now been removed from the into printed. OTP-15330
2019-07-08Merge branch 'bmk/snmp/20190627/dialyzer/OTP-15932' into maintMicael Karlberg
2019-07-08[snmp] Updated copyright end dateMicael Karlberg
OTP-15932
2019-06-27[snmp|agent] Add disable flags to quiet dialyzerMicael Karlberg
Warning for some functions "for no reason" (obviously there is a reason, but I have to dig deeeep to find it). Also warnings for stuff there is no way to type today (for instance, improper lists). OTP-15932
2019-06-27[snmp|agent] Dialyzer related changesMicael Karlberg
Changes to satisfy dialyzer. Including changing the definition of some of the behaviours (use the '-callback' attribute instead of an explicit behaviour_info/1 function). Also found and corrected some (apparently minor) bugs. OTP-15932
2019-06-27[snmp|manager] Dialyzer related changesMicael Karlberg
Changes to satisfy dialyzer. Including changing the definition of the snmpm_network_interface behaviour (use the '-callback' attribute instead of an explicit behaviour_info/1 function). OTP-15932
2019-06-27[snmp] Dialyzer fixesMicael Karlberg
Make target (for running dialyzer on snmp), os usage and a minor snmp_log ("future proofing"). OTP-15932
2019-05-29[snmp] Add verbosity printouts to the set handlingMicael Karlberg
Add verbosity printouts after a set operation. Both for a successful and a failed set. On one of our test hosts (a VM running an old gento), it looked like an ets or dets insert hangs. But since we only have a printout directly before, we can't tell for sure what happens. OTP-15764
2019-05-22[snmp] Replaced usage of random with randMicael Karlberg
Use of the deprecated module random has been replaced by the module rand. OTP-15331
2019-05-22[snmp] Remove use of the deprecated get_stacktrace functionMicael Karlberg
Removed the use of the deprecated erlang:stacktrace() function. Instead make use of the 'catch Class:Error:Stacktrace' feature. OTP-15332
2019-04-15[snmp|agent] Fix typesMicael Karlberg
There no timestamp type in os (but there is in erlang).
2019-04-11[snmp] Post rebase fixupMicael Karlberg
2019-04-11[snmp|agent|test] Timestamps and test managerMicael Karlberg
Added common (formated) timestamp function(s). Made use of these in the verbosity module (for debug printouts) and in the test suite(s). I also *think* I found the cause for some if the test case failures (timeouts). For v3 (agent) test cases the test manager makes use of parts of the agent code: snmp_framework_mib and snmp_user_based_sm_mib. And since they store their data in snmpa_local_db, that also needs to be running. And this was the problem (I think). On some (slow) machines, the snmpa_local_db process from the *previous* test case might still be running when the we tried to start it. That meant that no new snmpa_local_db was started. Instead the old one, still running but terminating, was retain. For a while. Until it actually finally stopped. So the next operation towards snmpa_local_db, insert, simply hanged until the process terminated. This in combination with the fact that the packet server process, which was started using proc_lib, previously called init_ack before this init was actually done, could actually start and then at a much later time hang because some operation timed out (the packet server was hanging). Yuckety yuck-yuck.
2019-04-11[snmp|agent|test] More test tweakingMicael Karlberg
Improved test printouts (more with timestamps), also fixed the printouts of the (fake) local-db start result printout. Also updated the copyright end-dates.
2019-04-11[snmp|agent|test] Agent test manager start fixMicael Karlberg
The agent test manager had a bug during start that could potentially cause deadlock, but atleast could cause test cases to fail because of timeouts. The test manager (actually the "packet server") used proc_lib to start the process but it called the init_ack function before the init was actually complete. This was only a problem for v3 cases (where it did a bunch of further inits, including starting the local-db process). Also did debug/verbosity tweaking. Added a bunch of debug (verbosity) printouts for the agent test manager "packet server" during v3 init. Also made sure we could distinguish the "normal" local-db from the one used by the test manager (this is done by using a new short-name).
2019-04-11[snmp|agent] Improved debug printoutsMicael Karlberg
Improve debug (verbose) printouts when a get/get-next/get-bulk/set request fails (first by printing at level log instead of trace and secondly by also printing the original operation result when the operation fails).
2019-04-11Merge branch 'maint'Micael Karlberg
2019-04-11Merge branch 'bmk/snmp/20190328/get_mechanism/OTP-15691' into maintMicael Karlberg
2019-03-28[snmp|agent] Verbose (debug) improvementsMicael Karlberg
Added VMODULE for the two new modules. Also, improved some verbose printouts. OTP-15691
2019-03-28[snmp|agent] Add the net-if data (Extra) argument to get-callbacksMicael Karlberg
Added the Extra (net-if data) argument to all the get- mechanism callback functions. OTP-15691
2019-03-28[snmp|agent] Add the default get-mechanism module snmpa_getMicael Karlberg
Added the snmpa_get module as the default get-mechanism for the agent. This has been done by simply moving the do_get, do_get_next and do_get_bulk functions from the snmpa_agent module. Some functions where also moved into the lib module (with the idea of beeing more generally useful). OTP-15691
2019-03-28[snmp|agent] Add the get-mechanism behaviourMicael Karlberg
Added preliminary version of the get-mechanism behaviour. OTP-15691
2019-03-28[snmp|agent] Add/update/export useful typesMicael Karlberg
Add/update and export some useful types. OTP-15691
2019-03-28[snmp|agent] Build orderMicael Karlberg
Fixed the build order. Some of the mib modules export types used by other modules, so build them (the mib-modules) first (after snmpa). OTP-15691
2019-03-28[snmp|agent] Handle new get-mechanism configMicael Karlberg
Also streamlined the config storage. And corrected the store of the set_mechanism (in the snmp_agent_table). This is only used for debugging, but just the same. OTP-15691
2018-09-17Merge branch 'maint'Raimo Niskanen
2018-09-17Merge branch 'bmk/snmp/20180907/atl_conversion_failure/OTP-15287' into maintMicael Karlberg
2018-09-17Merge branch 'maint'Micael Karlberg
2018-09-17[snmp|compiler] Spurious version message removedMicael Karlberg
The snmp mib compiler printed an spurious version message if the 'version' option was provided. OTP-15290
2018-09-17[snmp] Add proper versionMicael Karlberg
Also fixed case clause. OTP-15287 (ERIERL-206)
2018-09-07[snmp] Update copyright end dateMicael Karlberg
OTP-15287 (ERIERL-206)
2018-09-07[snmp] Corrected (agent) ATL logging of outgoing messagesMicael Karlberg
For some outgoing messages (not response) the following error(s) has been corrected: * encrypted: logged incorrectly, should have written the v3-header and the scoped pdu, but was actually logged as-is (encrypted), making conversion impossible. * un-encrypted: messages was not logged at all. OTP-15287 (ERIERL-206)
2018-09-07[snmp] Improved Audit Trail Log conversion failureMicael Karlberg
If conversion of an Audit Trail Log (ATL) entry failed, this could result in an abort of the entire conversion, not just the one entry. This has now been improved so that the failure now results in a "error message" into the "stream". Furthermore, we now keep track of the number of entries we succeede and fail to convert. OTP-15287 (ERIERL-206)
2018-07-27Change "can not" into "cannot"Raimo Niskanen
I did not find any legitimate use of "can not", however skipped changing e.g RFCs archived in the source tree.
2018-06-11Parse #mc_new_type{}s before definitions_loop/2Raimo Niskanen
2018-06-11Parse #mc_new_type{}s before definitions_loop/2Raimo Niskanen
2017-10-16Update versionRaimo Niskanen
2017-10-13Fix speling error 'sndbuf' -> 'recbuf'Raimo Niskanen
2017-07-28Process augments in pass after definitionsRaimo Niskanen
2017-06-14Update copyright yearHans Nilsson
2017-05-11snmp_generic: Future-proof exception handling codeBjörn Gustavsson
In the future, erlang:get_stacktrace/0 will probably only work inside a the 'catch' block of a 'try' expression. Future-proof the code by rewriting the old-style catch to a try...catch.
2017-01-17Bump versionRaimo Niskanen
2017-01-17Do without compilation time in SNMP versions[12]()Raimo Niskanen
2017-01-13Fix enum refinement in usertype in SYNTAXRaimo Niskanen
2016-12-07Update copyright-yearErlang/OTP
2016-09-10snmp: Uncomment compiler files in app.src fileIngela Anderton Andin
The files are not used in runtime of the snmp app, but they are still part of the application and beam files are generated. Not including them will make the general app test fail.
2016-09-07[snmp] Correct bug when path to mib contains UTF-8 charactersLars Thorsen
2016-06-22Fix ERL-164 for agent, vacm, and usm config filesDaniel Goertzen
2016-03-15update copyright-yearHenrik Nord