Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SNMP with Java?

Tags:

java

snmp

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?

like image 634
user2255885 Avatar asked Apr 23 '13 11:04

user2255885


People also ask

What is SNMP in Java?

The Simple Network Management Protocol (SNMP) is an industry standard for network management. Objects managed by SNMP are arranged in management information bases (MIBs). The SNMP agent publishes the standard MIB for the Java virtual machine (Java VM) instrumentation. The file JVM-MANAGEMENT-MIB.

How does SNMP work example?

SNMP works by sending messages, called protocol data units (PDUs), to devices within your network that “speak” SNMP. These messages are called SNMP Get-Requests. Using these requests, network administrators can track virtually any data values they specify.

What is SNMP command?

Overview. Simple Network Management Protocol (SNMP) is used to locate the network management component on one or more computers and the managed component on multiple network devices. The Automation Anywhere SNMP command offers powerful network management.

What is SNMP server used for?

Simple Network Management Protocol (SNMP) is a networking protocol used for the management and monitoring of network-connected devices in Internet Protocol networks.


1 Answers

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

like image 69
prasanth Avatar answered Sep 29 '22 08:09

prasanth