ottis79
ottis79

Reputation: 130

SNMP java API snmpbulkwalk

I'm studing a module to manage a router with protocol SNMP. I'm checking adventnet and snmp4j apis but I need to make some snmp calls in java via the command snmpbulkwalk. Is there any api in java to execute this command?

Upvotes: 0

Views: 868

Answers (2)

Jinesh Mathew
Jinesh Mathew

Reputation: 366

You can use SNMP4j to do SNMPBULKWALK on the router. SNMP4j provides below API to retrieve entire subtree of a given rootnode synchronously.

Class: TreeUtils.java Method: getSubtree(targetV2, rootOID);

It also provides another method which is asynchronous.

Class: TreeUtils.java Method: walk(targetV2, rootOIDs);

I have a github project which has the complete working code. You can clone the repo and try it.

Upvotes: 1

Uwe Innh
Uwe Innh

Reputation: 106

I searched for 1 minute and found enter link description here and enter link description here to start from.

Upvotes: 0

Related Questions