aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/misc
AgeCommit message (Collapse)Author
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] Dialyzer fixesMicael Karlberg
Make target (for running dialyzer on snmp), os usage and a minor snmp_log ("future proofing"). OTP-15932
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|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] 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).
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] 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)
2016-03-15update copyright-yearHenrik Nord
2015-11-13Merge branch 'zhird/johnheizenberg/snmp_config_check_imask_bugfix' into maintZandra
* zhird/johnheizenberg/snmp_config_check_imask_bugfix: fix snmp_conf check imask bug OTP-13101
2015-06-18Change license text to APLv2Bruce Yinhe
2015-04-27snmp: Remove deprecated warning for erlang:now in snmp_verborityErland Schönbeck
2015-04-24snmp: Change to random use crypto. Remove use of erlang:nowErland Schönbeck
2015-04-10fix snmp_conf check imask bugZandra Hird
This change is originally from John Heizenberg.
2014-08-22Clean up config error handling and negative resultsRaimo Niskanen
2014-08-18Rewrite manager net_if for IPv4+IPv6Raimo Niskanen
2014-07-30Write list of trap targetsRaimo Niskanen
2014-07-25Rewrite agent for IPv4 + IPv6Raimo Niskanen
2014-07-25Use IPv6 config in managerRaimo Niskanen
2014-07-25Mend write_config_file and append_config_fileRaimo Niskanen
2014-07-25Mend manager to pass regression testsRaimo Niskanen
2014-07-25Rewrite ordering functions for maintainabilityRaimo Niskanen
2014-07-25Fix log validation and fix some testcasesRaimo Niskanen
2014-07-25Rewrite string representation of addresses and stop printing an error report ↵Raimo Niskanen
when snmpa_net_if gets externally killed
2014-07-25Don't encode IPv6 address into v1 trap and fix legacy arguments to ↵Raimo Niskanen
snmpa_network_interface_filter functions
2014-07-25wip: Testcase feedbackRaimo Niskanen
2014-07-25wip: Fix agent loggingRaimo Niskanen
2014-07-25bugfix: Call to non-existing module 'list'Raimo Niskanen
2014-07-25Bugfix: argument order to internal function verify_lines/4Raimo Niskanen
2014-07-25Go back to passing (Domain, Addr) to net_if filtersRaimo Niskanen
2014-07-25fix agent configuration detailsRaimo Niskanen
2014-07-25Rewrite agent to use {Domain,Address} tuples as far as possibleRaimo Niskanen
2014-07-25wip: Rewrite manager net_if processRaimo Niskanen
2014-07-25wipRaimo Niskanen
2014-07-25wip-all-regression-tests-but-one-managerRaimo Niskanen
2014-07-22wipRaimo Niskanen
2014-07-22Rewrite agent configuration parsingRaimo Niskanen
2013-11-26Merge branch 'bmk/snmp/snmp425_integration' into maintMicael Karlberg
Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src lib/snmp/src/misc/snmp_log.erl lib/snmp/vsn.mk
2013-11-19Merge branch 'bmk/snmp/blocking_log_during_conversion' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/src/app/snmp.erl
2013-11-19[snmp] Cleanup and changed atl conversion block defaultMicael Karlberg
Changed the default value for the Audit Trail Log conversion to true. Also some cleanup. OTP-11396
2013-11-13Merge branch 'bmk/snmp/handling_corrupt_atl_when_converting/r16/OTP-11453' ↵Micael Karlberg
into bmk/snmp/snmp425_integration Conflicts: lib/snmp/src/misc/snmp_log.erl
2013-11-06Merge branch 'bmk/snmp/handling_corrupt_atl_when_converting/OTP-11453' into ↵Micael Karlberg
bmk/snmp/handling_corrupt_atl_when_converting/r16/OTP-11453 Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src lib/snmp/vsn.mk
2013-10-31[snmp] Improving ATL handling of corrupt logsMicael Karlberg
When converting an Audit Trail Log to text a corrupt log entry could cause the entire conversion to fail. Also, for a log with sequence numbers, failing to decode a log entry would cause the conversion to fail (not because of the failed decode, but because of the failure to write the error message). OTP-11453
2013-10-21Merge branch 'bmk/snmp/aes_encryption_fixes/OTP-11412' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/doc/src/notes.xml
2013-10-21[snmp/manager] Incorrect use of EngineBoots and EngineTime when encryptingMicael Karlberg
When performing the AES encryption, invalid values for the EngineBoots and EngineTime was used. The values of the local agent was used, which would have produced some values if an agent was actually running. If not it would have caused a crash. OTP-11413
2013-10-17[snmp] Wrong block cypher type used for AESMicael Karlberg
Wrong block cypher type used for AES ('aes_cbf128' instead of 'aes_cfb128') when performing AES block encrypt/decrypt which breaks SNMP usmAesCfb128Protocol in agent and manager. OTP-11412
2013-10-11Merge branch 'bmk/snmp/blocking_log_during_conversion' into ↵Micael Karlberg
bmk/snmp/snmp425_integration Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.erl
2013-10-11[snmp] Updated release notes, ref man, appup and assigned proper versionMicael Karlberg
2013-10-11[snmp] Add (atl) log conversion block optionMicael Karlberg
It is now possible to request that the Audit Trail Log should be blocked during conversion (log_to_txt or log_to_io). This could be usefull when coverting a large log (when there is a chance it may otherwise wrap during conversion).