3

I need to get and set a few values by SNMP v2. I'm looking for simple example of code which using SNMP4J (or any another library) to get and set values by OIDs.

Vladimir Petrosyan
  • 499
  • 1
  • 3
  • 13

2 Answers2

4

I have written a simple application using snmp4j.jar and java. I have mentioned how to test this application by enabling snmp agent running on your windows machine as well.

A simple application is given here

qqx
  • 18,947
  • 4
  • 64
  • 68
J Mathew
  • 41
  • 2
2

There are many over the internet:

  1. Previous Question on SO

  2. http://blog.jayway.com/2010/05/21/introduction-to-snmp4j/

This should get you started.

Community
  • 1
  • 1
mprabhat
  • 20,107
  • 7
  • 46
  • 63