SNMP4J is a Java library that provides some classes in order to implement a SNMP Agent or Manager
Questions tagged [snmp4j]
268 questions
1
vote
1 answer
SNMP4J dynamic index value
I am trying to build a client to get values from an snmp enabled device using snmp4j. Using the OID and index number i can fetch the name and serial number of the device. But i heard that index number is not constant and it keeps changing.
Thou i…

user3427761
- 11
- 2
1
vote
1 answer
How to add rows to a MIB-table in snmp4j
I am writing a program which is supposed to read and write MAC-addresses from and to the white-list of a local router.
I have managed to read the current table content of this so called "wlanACLTable", but I can't manage to add another row to this…

Stefan
- 67
- 1
- 8
1
vote
0 answers
How to implement proxy agent using SMNP4J
I am coding proxy agent (SNMP v2c) using the SNMP4J library.
I started with the code from here.
The proxy agent (TestProxy) receives a trap sent from Management Agent (MA, object of TrapSenderVersion2) the result of forward is true though the trap…

Boro
- 7,913
- 4
- 43
- 85
1
vote
1 answer
SNMP : add a trap destination
I am fairly new to SNMP and i have created a SNMP Agent in java using the snmp4j library.
In my code, i have added localhost as a trap destination. I therefore receive the notifications on the port 162 :
targetMIB.addTargetAddress(new…

Laurent B
- 2,200
- 19
- 29
1
vote
0 answers
How to do SNMP using SNMP4J with incuding MIBS?
my snmp string is
snmptrap -Ci -Ls 7 -r1 -t10 -v 2c -c 100.100.100.104 00000 NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification UCD-DEMO-MIB::ucdDemoPublicString s {"m":"17","time":"1388559297","date":"1388559297"}
how can i send this…

jayesh
- 2,422
- 7
- 44
- 78
1
vote
1 answer
Retrieve multiple tables with snmp4j TableUtils
Documentation for snmp4j TableUtils implies the getTables method can be used to retrieve more than one table. Anyone know how to use it in that manner. Just not intuitive for me. I'm wondering if i just put in the columns for table 1 and table 2 in…

simgineer
- 1,754
- 2
- 22
- 49
1
vote
2 answers
Network discovery using SNMP in JAVA
Is there any Java example/tutorial to manage IP address ranges and do a network discovery using SNMP in JAVA ?
I found this link but i am on Windows and it is not useful in my case.
PS : I can use ping and and thread programming but i am searching…

HobbitOfShire
- 2,144
- 5
- 24
- 41
1
vote
3 answers
transform mule message payload to snmp trap or pdu object
I've applied a sample of using snmp4j for sending and receiving traps and everything is ok.
but the issue is :
when using mule esb for receiving snmp traps, I can't convert the incoming message payload to PDU (or any snmp4j suitable object) to…

Obada AlJabban
- 11
- 2
1
vote
1 answer
enable SNMP monitoring for Java app with existing MBeans
I'm looking for an example to expose the methods already exposed via MBean server with SNMP.
I read that since Java6 this is already supported in the JDK, but I also found snmp4j as a library. But I couldn't find any example that fits my scenario,…

divadpoc
- 903
- 10
- 31
1
vote
2 answers
SNMP4J: how to limit received trap by community string or at least know the community string of the trap?
I wrote an application based on SNMP4J for sending SNMP requests and receiving traps.
all works fine but I couldn't find how to set the community string for received traps or even how to see the community string for each received trap.
help will be…

Hovav
- 151
- 2
- 13
1
vote
1 answer
IllegalArgumentException on creation of TimeTicks object in SNMP4J
Using SNMP4J, I want to set the time in a switch using the switch vendor's proprietary OID for the current time. Performing a MIB walk on the switch (as well as sniffing the SNMP traffic while setting the time with the switch's web interface)…

ryan0
- 1,482
- 16
- 21
1
vote
1 answer
Can the same USM user be added with different set of authentication and privacy algorithms?
In my code, I am configuring the usm user and adding the user for SNMP
v3. I want to configure the user in a way that it will support the
below set of algorithms at the same time.
SHA-1 + AES128,
SHA-1 + DES,
MD5 + AES128,
MD5 +…

dsmishra1981
- 49
- 1
- 8
1
vote
1 answer
SNMPv3 Trap sending issue
V3 trap sending failed for privProtocol 3DES, AES192 and AES256 in a Trap sender created using SNMP4J. Exception occurred is given below:
org.snmp4j.MessageException: Message processing model 3 returned error: Unsupported security level
at…

Anju
- 21
- 1
- 4
1
vote
2 answers
Setting Peer Address with SNMP4J
I am trying to simulate several virtual SNMP devices using SNMP4J. As such, when sending out traps, I am trying to modify the IP address of the originating device but I am not sure how. I know there is a setPeerAddress() method but it doesn't seem…

user975068
- 71
- 1
- 5
1
vote
1 answer
implementation of mib2c generated code
/*
* Note: this file originally auto-generated by mib2c using
* $
*/
#include
#include
#include
#include "pool.h"
/** Initializes the pool…

jatin bodarya
- 72
- 3
- 8