[erlang-questions] SNMP Development Toolkit

Dominik Pawlak <>
Tue Mar 3 17:08:08 CET 2015


I'm looking at snmp code from OTP 17.1 and the example indeed looks broken.
The start function you are using takes Address as a parameter but then 
uses that value as TargetName and not as the ip of the device.

You can use the longer alternative, which works for me (mib path may be 
different on your machine):

snmp_ex2_simple_standard_test:start(["/opt/erlang6.1/lib/erlang/lib/snmp-4.25.1/priv/mibs/STANDARD-MIB"], 
"Agent Name", 
[{engine_id,""},{address,{192,168,1,1}},{community,"public"}]).

On 03.03.2015 00:00, Frederic Bonfanti wrote:
> Hi,
>
> I have been playing around with snmp but this giving me a hard time...
>
> here is the error I get:
>
>     > snmp_ex2_simple_standard_test:start({192,168,1,1}).
>     snmpm:snmpm:mk_target_name(snmpUDPDomain, {{192,168,1,1},161},
>     [{community, "public"}]) -> "192.168.1.1:161-v1".
>
>     Command  1 (get-next [1,1]): error
>        {command_failed,not_found}
>     ...
>
>
> SNMP works fine from both Mac OS X / snmpget and remote agent 
> perspectives... Only erlang SNMP toolkit refuses to operate properly.
>
> Any hint appreciated
>
> +F
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150303/f3fad11b/attachment.html>


More information about the erlang-questions mailing list