The SNMP API for Java

SNMP4J - The Object Oriented SNMP API for Java Managers and Agents

SNMP4J is an enterprise class free open source and state-of-the-art SNMP implementation for Java™ 2SE 1.4 or later. SNMP4J supports command generation (managers) as well as command responding (agents). Its clean object oriented design is inspired by SNMP++, which is a well-known SNMPv1/v2c/v3 API for C++ (see http://www.agentpp.com).

The SNMP4J Java SNMP API provides the following features:

  • SNMPv3 with MD5 and SHA authentication and DES and AES 128, AES 192, and AES 256 privacy.
  • Pluggable Message Processing Models with implementations for MPv1, MPv2c, and MPv3
  • All PDU types.
  • Pluggable transport mappings. UDP and TCP are supported out-of-the-box.
  • Pluggable timeout model.
  • Synchronous and asynchronous requests.
  • Command generator as well as command responder support.
  • Free open source with the Apache license model
  • Java™ 1.4.1 or later
  • Logging based on Log4J
  • Row-based efficient asynchronous table retrieval with GETBULK.
  • Multi-threading support.
  • JUnit tests (will be available in version 2.x and later)

The SNMP4J-Agent pure Java SNMP agent API adds command responder including notification originator and proxy forwarder support to the SNMP4J core API and comes with:

  • Implementations for SNMP-TARGET-MIB, SNMP-NOTIFICATION-MIB, SNMP-PROXY-MIB, SNMP-FRAMEWORK-MIB, SNMPv2-MIB, SNMP-COMMUNITY-MIB, SNMP-USER-BASED-SM-MIB, SNMP-VIEW-BASED-ACM-MIB, and SNMP-MPD-MIB.
  • SNMPv1,v2c,v3 multi-lingual agent support, including MD5 and SHA authentication as well as DES, 3DES and AES(128, 192, 256) privacy.
  • IPv4/IPv6 UDP and TCP support.
  • Code generation from MIB specifications is provided through AgenPro 2 which is a language and API independent template based code generator with round-trip generation facilities.

The SNMP4J-AgentX pure Java AgentX API adds support for the AgentX 1.0 master and subagent protocol as defined by RFC 2741 and 2742. SNMP4J-AgentX extends SNMP4J-Agent by:

  • Full AgentX 1.0 protocol support, including contexts, shared tables, index allocation, ping PDUs, connection timeout handling, etc.
  • Implementation of the AGENTX-MIB for the master agent.
  • TCP transport mapping for the AgentX protocol.
  • Code generation from MIB specifications is provided through AgenPro 2 which is a language and API independent template based code generator with round-trip generation facilities (see also SNMP4J-Agent).

The SNMP4J-AgentJMX pure Java 1.5 API adds support easy descriptive mapping from JMX MBean instrumentation to SNMP scalars, tables, and notifications.

 

Copyright © 2003-2008, SNMP4J.org. All right reserved.