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
2 answers
How to test SNMP4J agent
I have the jar developed using the SNMP4J Agent source code. How can I test run the Agent ? I would like to include a MIB file and test the GET and SET methods. How can I write a test class for this?
Any link or tutorial will also be grateful
Thanks…

Gapchoos
- 1,422
- 5
- 20
- 40
2
votes
1 answer
Reduce the size of SNMP4J
I want to trim SNMP4J to maximum for using with my application.
Currently the jar has 457KB and SNMP4J agent has 522KB. By trimming the unwanted features , how can I reduce the size? I would like to remove the TCP support hence the packets are UDP.…

Gapchoos
- 1,422
- 5
- 20
- 40
2
votes
3 answers
Network Discovery with Snmp4j
I need to implement a network discovery mechanism with Snmp4j. I tried to find examples about this mechanism but couldnt find a valid one. Is there any java example/tutorial to manage ip address ranges and do the discovery?

MartK
- 614
- 2
- 8
- 21
1
vote
0 answers
SNMP4j + responsePdu arrival time
Is there a way to find out what is the arrival time of responsePdu? I send an asynchronous request and would like to know when the response pdu has reached my server.
In whireshark this data are available but I cannot read it using snmp4j library.…

leto
- 11
- 2
1
vote
0 answers
how to mock snmp4j framework
Can anyone provide me some idea on how to mock snmp4j framework?
There are many complex class hierarchy in it and I am not able decide which classes should i mock?
Is there any built-in class/agent to test snmp ?
Thanks in advance.

SmartSolution
- 2,320
- 5
- 37
- 49
1
vote
1 answer
snmp4j using snmpv3
I've, got a Problem by trying to Use SNMP v3 for my Project. Its difficult to Find Some Information’s About it so I tried my best by my own.
To Use SNMP v3 I Added a new USM User. now if got the Message when I’m Using a SNMP Walk that I’ve got no…

Rafail
- 11
- 2
1
vote
1 answer
i'm receiving SNMP traps from network device (switchs), but how can i identify that this trap is coming from which device (switch)
I'm receiving SNMP traps from network device (switches), but how can I identify that this trap is coming from which device (switch).
because trap containing only system uptime Notification type and actual data like (link up or down)
Received…

Rajan sharma
- 43
- 4
1
vote
2 answers
SNMPv3 Get Request authorization problem for SNMP4J although working via net-snmp
Problem
I have some troubles configuring SNMP4J as SNMPv3 manager for a simple Get-Request.
SNMPv2 is working properly, both using net-snmp and SNMP4J.
Setup
On my local machine I have a running snmp daemon (via net-snmp).
zetts@zetts_x1_carbon~:…

Sebastian
- 11
- 3
1
vote
0 answers
socket failed: EACCES (Permission denied) using snmp4j in android
I'm working on an android application and in that, I need to know the other device status using SNMP Oid which is in the same network.
I have followed the example from the below…

Suresh
- 427
- 1
- 6
- 22
1
vote
1 answer
Auth and Priv not working for SNMP v3 traps
I'm sending v3 traps to my net-snmp container. When I set securityLevel to 1 I get:
0.....0...1x....
..........-0+...
..p.....3.8.....
....myuser..s...f'
##..{-..0~.....p
.........Mon Jan
04 18:42:16 CET
20210...+.....me
ssage
The security Level 1…

Tom Hill
- 27
- 8
1
vote
1 answer
Regarding snmp v3 request in multithreaded environment via snmp4j java library
I am sending an SNMP v3 request via snmp4j java library to the first snmpv3 server and it works fine. Sending SNMP v3 requests via the snmp4j library to the second snmpv3 server also works fine. However, if I am sending to both servers from two…

ashishgupta_mca
- 578
- 6
- 27
1
vote
0 answers
How to set ipv6 address with Snmp4J java client using oid?
How to set Ipv6 IP address using snmp4j with java client? I am able to set an ipv4 IP address with snmp4j. Below is the code snapshot for setting an ipv4 IP address with snmp4j. I am using same method for ipv6 but it's not giving proper results. If…

user9131872
- 11
- 3
1
vote
1 answer
How to forward snmp4j/snmp4j-agent jar logs/sysout statement to log4j2 used API?
I have an requirement to record the snmp authentication sucess and failure details into used log4j2 framework. My code will hit only for success of authentication/snmpget/bulk command and failure snmp commands like argument passed invalid…

Raghu
- 23
- 4
1
vote
0 answers
Snmp Version 3 Getbulk OPeration in java language
I learned Snmp version 3.i to perform Getbulk Operation version in Java. But problem is that I've created two programs, one is Server and second is Agent. My Server sends the request for Agent and Agent get the request. It performs some operations…

Rohit kumar
- 11
- 1
1
vote
0 answers
How to get and set values from a UPS device using SNMP?
I have a java web application running in my workplace.
I was asked to create a new application to "communicate" with network devices and read their statuses.
As an example I started working with a UPS, which is connected to my network with its own…

Providos
- 11
- 3