[SNMP4J] Finally i am here (discovery problem) 1.8.2

Harpreet1 Singh harpreet1.singh at hsc.com
Fri Jul 20 11:46:05 CEST 2007


Hi all,

I have a tough time in discovering snmpEngineID. I am working for first 
time on V3.

I am running TestAgent.java and try to discover snmpEngineID using this 
code


                MPv3 mp3 = new MPv3 ();
                Address targetAddress = 
GenericAddress.parse("udp:127.0.0.1/161");
 
                TransportMapping transport = new 
DefaultUdpTransportMapping();
                USM usm = new USM(SecurityProtocols.getInstance(),
                                new 
OctetString(MPv3.createLocalEngineID()), 0);
                SecurityModels.getInstance().addSecurityModel(usm);

                Snmp snmp = new Snmp(transport);
 snmp.getMessageDispatcher().addMessageProcessingModel(mp3);
                snmp.listen();

                System.out.println ("id is " + 
snmp.discoverAuthoritativeEngineID(targetAddress, 10000));

So each time id is null. I tried to fecth using SHADES user also, but 
totally vain.

I know there is some step which iam missing, but can't figure it out.
Please help me in moving ahead.

regards
Harpreet




*****************************************************DISCLAIMER*****************************************************

This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, 
please notify the sender immediately and delete the message.

********************************************************************************************************************




More information about the SNMP4J mailing list