<div dir="ltr">Hi,<div><br></div><div>    Recently I was familiarizing myself with the SNMP functionality of Erlang and decided to use the snmp_test_manager (lib/snmp/test/snmp_test_manager.erl) setup as a guide.  During my endeavor I was unable to start_link an snmp_test_manager due to a badmatch occurring on line 133.  See traceback here:  <a href="http://pastebin.com/1eNYkGTz">http://pastebin.com/1eNYkGTz</a></div>
<div><br></div><div>This is because on line 133 the snmp_test_manager module is expecting a tuple of {ok, Pid} from snmpm:start_link/0 .  However, snmpm:start_link/0 will only return the atom ok.  This causes a badmatch.  By editing line 133 of snmp_test_manager.erl to only expect the atom ok, and editing line 136 to not reference the no longer existing Pid variable, I was able to fix the module.  I also edited line 59 to remove the mgr key from the State record, as after these changes it was no longer being used.  You can find my public repository here:</div>
<div><br></div><div><a href="https://github.com/telsacolton/otp">https://github.com/telsacolton/otp</a></div><div><br></div><div>and the branch with the fix is called <table class="" style="border-collapse:collapse;border-spacing:0px;margin:5px 0px 0px;width:920px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:13px;line-height:18.200000762939453px">
<tbody style><tr style><td class="" style="padding:5px 0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);background-color:rgb(250,250,250)"><h3 style="margin:0px;line-height:1.1"><a href="https://github.com/telsacolton/otp/tree/snmp_test_manager_badmatch_pid" class="" style="outline:0px;max-width:490px;display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;font-weight:normal"><font face="arial, helvetica, sans-serif" color="#000000">snmp_test_manager_badmatch_pid</font></a></h3>
</td></tr></tbody></table><div><br></div>-- <br><div dir="ltr">Colton Leekley-Winslow<div>Developer, Telsasoft</div><div><span style="line-height:16px">(952) 707-8581</span><br></div></div>
</div></div>