How to use SNMP with Java?

Go To StackoverFlow.com

15

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?

2013-04-23 11:50
by user2255885
Try SNMP4j. www.snmp4j.or - prasanth 2013-04-23 11:52
@ prasanth Many thanks. I'm looking some examples. I have limited time to finises this - user2255885 2013-04-23 12:14


13

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

2013-04-23 12:32
by prasanth
Many thanks Prasanth... : - user2255885 2013-04-23 13:11