Hi Frank, Thanks for the reply,
I am very new SNMP using java. Can you please clarify me what all the things I need to do ? Any sample code or application can you provide ? Should I need to create Snmpclient,SnmpManager,SnmpAgent classes,Please clarify this things. I am using windows so I enabled and configured SNMP service. Apart from this what all the jar files I need to include and in main() function what all the function I need to call. Can you please guide me I will do forward but some guidance that’s it.I researched many things but no use . Thanks in advance. Regards, Sudha -----Original Message----- From: Frank Fock [mailto:f...@agentpp.com] Sent: Tuesday, April 26, 2016 4:29 AM To: Sudharani S Cc: SNMP4J@agentpp.org Subject: Re: [SNMP4J] How to use SNMP in java for network discovery? Hi, You can do this by using the SNMP4J.jar alone. Note: “WALK” is not a SNMP operation. Use GETNEXT or GETBULK instead. Best regards, Frank > On 25 Apr 2016, at 08:16, Sudharani S <sudharan...@infosys.com> wrote: > > Hi , > > I am new SNMP protocol ,I have below requirement.Can anyone please help in > this below requirement. > > I need the guidance to start with this,I mean please let me know what all the > things I need to include to do this. > > And how to do snmp walk to pim neighbors table?,I have a snmp service enabled > in my system apart from this what all the jar files need to be include let me > know please. > > > The requirement follows like this: > 1)To implement multicast network discovery using snmp in java 2)Create > CompletedRouterList (initially NULL) to store the routers for which discovery > was complete and a PendingRouterList containing the routers for which > discover is pending. > 3)At initialization time, statically populate the PendingRouterList with > initial set of routers from some config file. > 4)For each router in the PendingRouterList, if multicast is enabled then > query the pimInterfaceTable to obtain the list of interfaces on which PIM is > enabled. For example if R1 has PIM enabled and has interfaces 1/1 and 1/2/ on > which PIM is enabled then we will have:- > 1/2 1/1 > --------- R1 ---------- > 5)For each router that has at least 1 interface that has PIM enabled on it, > query it's PIM Neighbor table to obtain the list of it's PIM neighbors. PIM > neighbor table also gives the interface index with which the router is > connected with it's neighbor. This information can be used to build the link > between the router and neighbor(s). > For example if R1 has neighbors R2 connected to 1/1 and R3 connected to 1 / 2 > then we can build the table as:- > 1/2 1/1 > R3----------R1 ---------- R2 > > > Anyone please help ,Thanks in advance > > Regards, > Sudha > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > https://oosnmp.net/mailman/listinfo/snmp4j _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j