SNMP4J is a Java library that provides some classes in order to implement a SNMP Agent or Manager
Questions tagged [snmp4j]
268 questions
2
votes
1 answer
How to bind child object in table
I'm writing some device simulators using SNMP4J. i've got quite a few to do so wrote something to parse the mib and create some java classes and annotate the properties with the MIB info. I then wrote something to iterate through the fields and…

vickirk
- 3,979
- 2
- 22
- 37
2
votes
1 answer
A weird problem about parallel , concurrent SNMP requests by SNMP4j V3
I send SNMP requests by SNMP4J with version 3 USM model. But when I send SNMP request concureent IP1,IP2 no problem received everything is ok I receive the both response PDU. Also when I try to send IP1,IP3 evertyhing is ok , I receive the responses…

cihan
- 21
- 2
2
votes
0 answers
send set not working on SNMP simulator server
I'm trying to develop a SNMPAgent that is able to simulate a SNMP device, using the existing snmp4j library.
public class SNMPAgent extends BaseAgent {
private String address;
/**
*
* @param address
* @throws IOException
*/
public…

Pierangelo Calanna
- 572
- 1
- 3
- 17
2
votes
3 answers
GETBULK SNMP4J Request
I'm using snmp4j to try and perform SNMP functions against a remote agent. Due to a number of limitations out of our control I need to perform a GETBULK to obtain a large table in a short space of time.
My current implementation:
public Map

tarka
- 5,289
- 10
- 51
- 75
2
votes
2 answers
Create SNMP Client in JAVA Using SNMP4j for ipv6 addresses
I am trying to create an SNMP client in JAVA.
SNMPManager client = new SNMPManager("udp:73.251.102.191/162");
This is good for an ipv4 address, but when I am trying to do the same with ipv6 addresses it throws the below…

Anil
- 420
- 2
- 16
2
votes
1 answer
Check if a device has an snmp object without waiting for a timeout?
I'm using snmp4j to collect power consumption on POE (power over ethernet) ports. But some devices don't support POE. When I go to ask those devices for the power consumption, they eventually time out.
Waiting for the time out imposes an…

Jon A
- 362
- 4
- 14
2
votes
1 answer
snmp trap registering a receiver
I'm new to SNMP. We have maybe 20000+ devices to listen SNMP traps. It is very hard to add to all trap receivers. Is there a way adding a trap receiver(destination) to a trap sender with SNMP-set request or something like that?

bemolmi
- 131
- 1
- 6
2
votes
1 answer
How to get units of a variable from SNMP stream?
I'm new to snmp4j. I used the sample code in [1] to extract some meaningful information from a SNMP stream.
In the sample code, oid and value of the variable is extracted, but the value comes without its units. For example
,oid…

Sajini
- 59
- 1
- 2
- 5
2
votes
1 answer
Stackoverflow in activemq when snmp4j configures a BasicConfigurator in log4j
This is a really bizarre issue. I'm trying to upgrade snmp4j to the latest version (2.2.5) from 1.10.1 and now I'm getting a stackoverflowerror from within ActiveMQ (version 5.9.1). I have a bizarre work-around but it'd be interesting if anyone…

darrickc
- 1,872
- 6
- 27
- 38
2
votes
1 answer
Creating master agent and sub agent using snmp4j-agentx
I am doing internship in a company. I have been asked to find a way to implement snmp agents in one of their systems using java. I tried to find a free MIB compiler for java but failed. Hence I am trying to do that using SNMP4J-agentX library…

Sam
- 73
- 9
2
votes
4 answers
NullPointerException in SNMP protocol
I am trying to add a client to my snmp protocol program. I added this code for my main method:
public static void main(String[] args) throws IOException{
SimpleSnmpClient client = new SimpleSnmpClient("udp:10.0.0.50/161");
String…

Naeem Baghi
- 811
- 2
- 14
- 29
2
votes
1 answer
MIB integration with SNMP Agent in java
How a MIB is used during the SNMP Agent development in java means How MIB integrate with SNMP Agent in java so that SNMP Agent can communicate with MIB or vice versa

Ankur
- 77
- 1
- 6
2
votes
2 answers
Load MIB using SNMP4J
I am totally new to mib and i have read about snmp on techdive and get the basic understanding of SNMP4J can anyone tell me how to use MIB in snmp4j ?
Thank in Advance

bee81
- 35
- 1
- 7
2
votes
1 answer
SNMP4j agent snmp table
I have created on SNMP agent using snmp4j api but getting issue with snmp table registration
Once i register a table and and rows in table. and after that if i set the values in table all the rows got set with same value.
I have snmp table created…

Sumit Sharma
- 21
- 3
2
votes
1 answer
Is it possible to convert an anonymous class from Java to JRuby?
I am working on implementing a JRuby wrapper around the SNMP4J-Agent library, found here:
Website: http://www.snmp4j.org/
JavaDocs: http://www.snmp4j.org/agent/doc/
It's been pretty fun so far, but I am having trouble deciphering the following…

mzaccari
- 111
- 2
- 6