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
Can't get SNMP authentication work correctly with snmp4j
I am writing a SNMP v3 trap/informs sender using snmp4j with authentication, but I'm surprised that informs are correctly acknowledged even if there's an authentication failure. I also developed the trap receiver using snmp4j to help me…

Joel
- 2,374
- 17
- 26
1
vote
1 answer
How do I send a SNMP trap to multiple managers using snmp4j?
Need to forward the snmp trap to multiple managers.
Below is the snippet used to send trap to single target address and it is working as expected.
Address targetaddress = new UdpAddress(ConnectionPropertyUtil
…

priyanka hj
- 79
- 1
- 2
- 11
1
vote
1 answer
Correct handling of snmp INFORM by receiver
I have some strage behaviour of SNMP4J which I can't explain. It is likely is due to my misunderstanding of snmp basics.
I deal with server which receives snmp traps. Everything is going on well. Now I need to change traps to inform.
The issue is my…

CHEM_Eugene
- 438
- 3
- 20
1
vote
1 answer
Find the login name of the computers in the network using SNMP in Java
I am using SNMP4J library, using this I listed all the devices(printer, unix system, windows7, 8 systems) connected in my network.
I can get the details such as uptime, name of the device.
From this, how can I get the login user name of that…

palavesa muthu
- 73
- 11
1
vote
1 answer
Monitor several instances of the same equipment with one SNMP agent
I have equipment that is non SNMP-enabled. I have the API to get its status and am implementing an SNMP agent for it. I did that with SNMP4j and can answer GET requests and send traps.
The problem I have is that there are several (2) such equipments…

Matthieu
- 2,736
- 4
- 57
- 87
1
vote
0 answers
How to get control in the application when SNMPV3 authentication fails using SNMP4J
I have a SNMP Agent developed with SNMP4J stack.
I have a security requirement where I need to monitor a manager if the v3 authentication fails.
Is only option is to change stack and add a callback mechanism when the authentication fails ?
I…

Bankelaal
- 408
- 1
- 9
- 24
1
vote
1 answer
MIB compiler for Java
I am going to develop SNMP Manager using snmp4j and i have MIB files from hardware vendor. Programming using digital OID is inconvenient. Is there a compiler from MIB file(s) to corresponding Java classes that support getting digital OID needed by…

pavel_barbashov
- 112
- 8
1
vote
1 answer
How can I traverse SNMP/MIB tree with names and not the numbers (snmp4j)
I am tying to understand snmp; I was able to run the example at http://www.shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/ to traverse the SNMP tree and get the following results
1.3.6.1.2.1.1.1.0 : OCTET STRING : Hardware:…

kashili kashili
- 955
- 4
- 15
- 31
1
vote
1 answer
What is the time frame used to collect data for oid 1.3.6.1.2.1.2.2.1.10(ifInOctets(10) )
When I do an snmpwalk for oid 1.3.6.1.2.1.2.2.1.10.1 I get a Counter32 integer value as the result. [1] states that 1.3.6.1.2.1.2.2.1.10 gives total number of octets received on the interface, including framing characters.
Does anybody knows for…

Sajini
- 59
- 1
- 2
- 5
1
vote
2 answers
Message processing model 3 returned error: Unknown security name
I'm getting Message processing model 3 returned error: Unknown security name error while running get/getNext command for single device. I'm hitting the device every 2 seconds. In order to have better performance, if I want get the different tables.…

Karthik Prasad
- 9,662
- 10
- 64
- 112
1
vote
1 answer
centralized log files with snmp protocol
i was wondering if the SNMP protocol can help me to developpe java application to centralized log files of local network.
i m not trying to monitoring the network devices,i just want to centralized the log files and analyse theme.

CodCad
- 13
- 2
1
vote
1 answer
ifInOctets and ifOutOctets return noSuchInstance
i'm writting a java code that retrieves some information from several servers. everything is working fine, except ifInOctets and ifOutOctets that return "noSuchInstance" instead of their value. i can retrieve ifInOctets and ifOutOctets of the same…

raven
- 775
- 6
- 22
1
vote
1 answer
Create json in java and parse in python?
I am using snmp4j to do a SNMP Walk result needs to be sent to a client to decode in python for further analysis. I am new to json and need to help in knowing best ways to convert java datatypes to json so that it can be easily decoded in python. I…

RAFIQ
- 905
- 3
- 18
- 32
1
vote
1 answer
How to send a SNMP trap with a script
I have to send a SNMP trap towards my monitor with a script (perl for instance, or other) when some condition is met (e.g. when memory use or disk usage rise above 80%).
I never write script so I have no idea how to do that.
This little script will…

DouglasAdams
- 490
- 7
- 19
1
vote
1 answer
SNMP4J - OID Output Options - Hex-STRING as STRING
I'm using SNMP4J to read info of devices with SNMP. Now I found some devices which represent the system name (OID iso.3.6.1.2.1.1.5.0) as a Hex-STRING instead of a STRING.
To show the system name I use the following code:
Variable var =…

Daantie
- 951
- 10
- 13