Generating TRAP in SNMP using SNMP4j

Author posted by Jitendra on Posted on under category Categories SNMP and tagged as Tags , with 21 Comments on Generating TRAP in SNMP using SNMP4j

Generating TRAP in SNMP using SNMP4j

As we have discussed, Traps are like events. This is a way the SNMP agent pushes the information to client. Asynchronously, events can be fired to client from server (agent).

Continue reading “Generating TRAP in SNMP using SNMP4j”

Creating SNMP Agent (Server) in JAVA using SNMP4j

Author posted by Jitendra on Posted on under category Categories SNMP and tagged as Tags , with 33 Comments on Creating SNMP Agent (Server) in JAVA using SNMP4j

Creating SNMP Agent (Server) in JAVA using SNMP4j

In Previous article, we have seen that how to create SNMP client in JAVA using SNMP4j.

To create the Agent for SNMP which listens for the request should extend the abstract class BaseAgent.
The BaseAgent abstract class defines a framework for writing SNMP agents using the SNMP4J-Agent API. To implement your own SNMP agent, extend this class and implement the abstract methods defined by BaseAgent. The hook methods do not need any specific implementation. They only provide a defined mechanism to customize your agent.

Continue reading “Creating SNMP Agent (Server) in JAVA using SNMP4j”

Create SNMP Client in JAVA Using SNMP4j

Author posted by Jitendra on Posted on under category Categories SNMP and tagged as Tags , with 64 Comments on Create SNMP Client in JAVA Using SNMP4j

Create SNMP Client in JAVA Using SNMP4j

There are lots of open source library for SNMP is available, even java have library for the same,  But in this article I will explain a simple example of using SNMP4j in JAVA to create a simple client which will display the hardware information.

Note : To run this program, SNMP service must be installed. Check this article to know that how to install SNMP in Windows XP.

Download libraries from http://www.snmp4j.org/html/download.html

Create Simple NMS (Network management station / Client) in JAVA using SNMP4j: Continue reading “Create SNMP Client in JAVA Using SNMP4j”