aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2010-02-12 15:55:58 +0000
committerErlang/OTP <[email protected]>2010-02-13 07:29:33 +0100
commit3d06af66f9da569891d48594e8a6fe72e0065d20 (patch)
tree273bebfc16a8381fa6beb83077381e6c25778338 /lib/snmp/src/manager
parentd9286a9a68e8b10dcf006a60ec84a0439e725fac (diff)
downloadotp-3d06af66f9da569891d48594e8a6fe72e0065d20.tar.gz
otp-3d06af66f9da569891d48594e8a6fe72e0065d20.tar.bz2
otp-3d06af66f9da569891d48594e8a6fe72e0065d20.zip
OTP-8442: Regstration of agents using config file incorrect
OTO-8442: Per Hedeland
Diffstat (limited to 'lib/snmp/src/manager')
-rw-r--r--lib/snmp/src/manager/snmpm_config.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/snmp/src/manager/snmpm_config.erl b/lib/snmp/src/manager/snmpm_config.erl
index e4069485ad..b976e8f568 100644
--- a/lib/snmp/src/manager/snmpm_config.erl
+++ b/lib/snmp/src/manager/snmpm_config.erl
@@ -1657,7 +1657,8 @@ verify_agent({UserId,
{ok, Addr} ->
snmp_conf:check_integer(Port, {gt, 0}),
Conf =
- [{address, Addr},
+ [{reg_type, target_name},
+ {address, Addr},
{port, Port},
{community, Comm},
{engine_id, EngineId},