<div><div>I am playing with erlang snmp managers, and am having trouble making my first sync_get() command to a v3 agent work. I am getting "unknownSecurityName" (see below), and I am stumped as to what might be wrong.</div>
<div><br></div><div><br></div><div>I have What's Up Gold polling my v3 agent device, so I know the agent's SNMP is working well.</div><div><br></div><div>Any suggestions?</div><div>Thanks,</div><div>Dan.</div><div>
<br></div><div><br></div><div><br></div><div>PS C:\cygwin\home\goertzen\bulk_config\srpc\ebin> C:\erlang\bin\erl.exe -config C:\erlsnmp\sys.config</div><div>Eshell V5.8.2 (abort with ^G)</div><div>1> crypto:start().</div>
<div>ok</div><div>2> snmp:start().</div><div>ok</div><div>3> snmpm:which_agents().</div><div>["myagent"]</div><div>4> snmpm:which_usm_users().</div><div>[{"hemi","abc123"}]</div><div>
5> snmpm:usm_user_info("hemi", "abc123",sec_name).</div><div>{ok,"abc123"}</div><div>6> snmpm:sync_get(defaultuser, "myagent", [[1,3,6,1,2,1,1,1]]).</div><div><div><br></div><div>
=ERROR REPORT==== 30-Apr-2011::15:15:46 ===</div><div>[ snmp : manager : snmpm_mpd : <0.61.0> ]</div><div>MPD: CONFIG ERROR: unknownSecurityName (message: {message,'version-3',</div><div> {v3_hdr,1261510722,484,</div>
<div> [7],</div><div> 3,undefined,undefined},</div><div> [48,65,4,32,56,48,58,48,48,</div>
<div> 58,54,51,58,57,102,58,48,</div><div> 51,58,48,48,58,52,48,58,53,</div><div> 51,58,48,56,58,52,102,58,</div>
<div> 55,51,4,0,160,27,2,4,92,</div><div> 103,199,2,2,1,0,2,1,0,48,</div><div> 13,48,11,6,7,43,6,1,2,1,1,</div>
<div> 1,5,0]})</div><div><br></div><div>{error,{send_failed,1550305026,unknownSecurityName}}</div><div>7></div></div></div><div><br></div><br clear="all">usm.conf:<div>
<div>%% {EngineID, UserName, AuthP, AuthKey, PrivP, PrivKey}. </div><div>%% {EngineID, UserName, SecName, AuthP, AuthKey, PrivP, PrivKey}.</div><div>{"hemi", "abc123", "abc123",</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>usmHMACMD5AuthProtocol, [122,254,237,74,242,75,191,73,255,25,189,190,102,250,156,25], % from snmp:passwd2localized_key(md5,"abc123456","hemi")</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>usmDESPrivProtocol, [122,254,237,74,242,75,191,73,255,25,189,190,102,250,156,25] % from snmp:passwd2localized_key(md5,"abc123456","hemi")</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}.</div>
<div><br></div><div>agents.conf:</div><div><div>%% {UserId, </div><div>%% TargetName, Comm, Ip, Port, EngineID, Timeout, </div><div>%% MaxMessageSize, Version, SecModel, SecName, SecLevel}</div><div>%%</div><div>{ defaultuser, "myagent", "", [192,168,1,50], 162, "engineid", infinity, 484, v3, usm, "abc123", authPriv }.</div>
</div><div><br></div><div>users.conf:</div><div>{defaultuser, snmpm_user_default, "dummy"}.</div><div><br></div><div>manager.conf:</div><div><div>{port, 5000}.</div><div>{address, [192,168,1,104]}.</div><div>{engine_id, "hemi"}.</div>
<div>{max_message_size, 484}.</div></div><div><br></div><div>sys.config:</div><div>[{snmp, </div><div><div> [</div><div> {manager,</div><div> [</div><div> {priority, normal}, </div><div> {versions, [v3]}, </div>
<div> {config, [{dir, "c:/erlsnmp/"}, {verbosity, silence}, {db_dir, "c:/erlsnmp/data/"}, {repair, true}, {auto_save, 5000}]}, </div><div> {inform_request_behaviour, auto}, </div><div> {mibs, ["c:/erlang/lib/snmp-4.18/mibs/SNMPv2-MIB"]}, </div>
<div> {server, [{timeout,30000},{verbosity,silence}]}, </div><div> {note_store, [{timeout,30000},{verbosity,silence}]}, </div><div> {net_if, [{module,snmpm_net_if},{verbosity,silence},{options,[{bind_to,false},{no_reuse,false}]}]}</div>
<div> ]</div><div> }</div><div> ]</div><div> }</div><div>].</div></div><div><br></div></div>