How to use SNMP with Java?

user2255885 picture user2255885 · Apr 23, 2013 · Viewed 41.4k times · Source

I'm writing an application that accesses a network printer. As a part of that application, I need to know the "status" of the printer. The only way the printer advertises its status is through SNMP. Java itself doesn't have any tools that speak the SNMP protocol, so I'm not sure what to do. How can I access the printer's SNMP status updates from a Java application?

Answer

prasanth picture prasanth · Apr 23, 2013

Try this example. Follow the instructions given there.
http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/