aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager/snmpm.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-07-26 19:22:17 +0200
committerMicael Karlberg <[email protected]>2011-07-26 19:22:17 +0200
commit4ed9eabf91e2920e52596e134d2b1ccad8724007 (patch)
tree985be2bd44b568c2f6c48beaefd835f7ffd5c819 /lib/snmp/src/manager/snmpm.erl
parent397253e311c31eefdaf179c4c3c62abba99d43bf (diff)
parent48048a64e6d47fbdfda502bc9550aaa4d0d80cfb (diff)
downloadotp-4ed9eabf91e2920e52596e134d2b1ccad8724007.tar.gz
otp-4ed9eabf91e2920e52596e134d2b1ccad8724007.tar.bz2
otp-4ed9eabf91e2920e52596e134d2b1ccad8724007.zip
Merge branch 'maint-r14' into dev
Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/agent/snmpa_mpd.erl lib/snmp/src/app/snmp.appup.src lib/snmp/vsn.mk
Diffstat (limited to 'lib/snmp/src/manager/snmpm.erl')
-rw-r--r--lib/snmp/src/manager/snmpm.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/snmp/src/manager/snmpm.erl b/lib/snmp/src/manager/snmpm.erl
index 0d084332de..6d2ac8d747 100644
--- a/lib/snmp/src/manager/snmpm.erl
+++ b/lib/snmp/src/manager/snmpm.erl
@@ -50,7 +50,7 @@
register_agent/2, register_agent/3, register_agent/4,
unregister_agent/2, unregister_agent/3,
which_agents/0, which_agents/1,
- agent_info/2, update_agent_info/4,
+ agent_info/2, update_agent_info/3, update_agent_info/4,
register_usm_user/3, unregister_usm_user/2,
which_usm_users/0, which_usm_users/1,
@@ -167,6 +167,7 @@
-include_lib("snmp/include/snmp_types.hrl").
-include("snmpm_atl.hrl").
-include("snmpm_internal.hrl").
+-include("snmp_verbosity.hrl").
-define(DEFAULT_AGENT_PORT, 161).
@@ -447,8 +448,11 @@ agent_info(Addr, Port, Item) ->
Error
end.
+update_agent_info(UserId, TargetName, Info) when is_list(Info) ->
+ snmpm_config:update_agent_info(UserId, TargetName, Info).
+
update_agent_info(UserId, TargetName, Item, Val) ->
- snmpm_config:update_agent_info(UserId, TargetName, Item, Val).
+ update_agent_info(UserId, TargetName, [{Item, Val}]).
%% Backward compatibility functions
update_agent_info(UserId, Addr, Port, Item, Val) ->