diff options
author | Micael Karlberg <[email protected]> | 2011-11-25 19:33:06 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-11-25 19:33:06 +0100 |
commit | 834773b9fdb376ce52b6cf53b22c9e06df5faa74 (patch) | |
tree | 279943bdc04e9883729fbdb7847a482ea0ee7bce /lib/snmp/src/agent/snmpa_trap.erl | |
parent | 3870fd90dd25c637f737bf09d1854a5c12f308c8 (diff) | |
download | otp-834773b9fdb376ce52b6cf53b22c9e06df5faa74.tar.gz otp-834773b9fdb376ce52b6cf53b22c9e06df5faa74.tar.bz2 otp-834773b9fdb376ce52b6cf53b22c9e06df5faa74.zip |
[agent] Version 4.20 introduced a change that broke trap sending from
subagents. Due to a bug in the test code, this was not discovered,
until that bug was fixed.
OTP-9745
Diffstat (limited to 'lib/snmp/src/agent/snmpa_trap.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_trap.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/snmp/src/agent/snmpa_trap.erl b/lib/snmp/src/agent/snmpa_trap.erl index 567de020c0..5b579efc13 100644 --- a/lib/snmp/src/agent/snmpa_trap.erl +++ b/lib/snmp/src/agent/snmpa_trap.erl @@ -379,8 +379,13 @@ send_discovery(TargetName, Record, ContextName, Vbs, NetIf, ExtraInfo) -> get_values(VariablesWithType) -> {Order, Varbinds} = extract_order(VariablesWithType, 1), + ?vtrace("get_values -> " + "~n Order: ~p" + "~n Varbinds: ~p", [Order, Varbinds]), case snmpa_agent:do_get(snmpa_acm:get_root_mib_view(), Varbinds, true) of {noError, _, NewVarbinds} -> + ?vtrace("get_values -> values retrieved" + "~n NewVarbinds: ~p", [NewVarbinds]), %% NewVarbinds is the result of: %% first a reverse, then a sort on the oid field and finally %% a reverse during the get-processing so we need to re-sort |