Questions tagged [snmp4j]

SNMP4J is a Java library that provides some classes in order to implement a SNMP Agent or Manager

268 questions
1
vote
1 answer

Heartbeat SNMP4J: How to send SNMP heartbeat message using SNMP4J?

How do I send a SNMP Heartbeat to NMS using SNMP4J? I am currently implementing a basic agent used to send only traps to NMS. Thanks in advance.
epiyugu
  • 13
  • 5
1
vote
1 answer

SNMP4J-2.2.2 & support for SNMP V3

My java application uses the snmp4j-2.2.2 jar. I just need to know whether this version will support SNMP V3 ?
Zise
  • 123
  • 1
  • 1
  • 10
1
vote
1 answer

How get DisplayString size constraits from MIB?

I have this object in MIB userId OBJECT-TYPE SYNTAX DisplayString (SIZE(0..30)) MAX-ACCESS read-write STATUS current DESCRIPTION "Id for user" REFERENCE "CFG:WRITE" ::= { config 1 } I…
1
vote
1 answer

Not able to access MSSQLSERVER-MIB using SNMP Protocol

I was trying to access MSSQLSERVER-MIB on Windows Server 2012 using SnmpWalk.exe . The object that I am particularly interested is the mssqlSrvState, whose oid is: 1.3.6.1.4.1.311.1.4.1.1.1.1.5 . Although the MS SQL Service is running on the server,…
Shreesha A
  • 23
  • 4
1
vote
0 answers

Snmp4j agent with snmp v2 instead of v3

I have successfully working the snmp4j sample agent. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html This works with snmp v3 but what must I change to get the agent working with snmp v2 instead of v3? An alternative…
TTho Einthausend
  • 609
  • 4
  • 13
1
vote
2 answers

Why snmpv3 get PDU returned successfully with a not existed OID?

When I using SNMP4J to simulate the snmpv3's GET PDU, I found that although I add a not-existed OID to the variable binding list, I still get a valid response.But when the protocol version is v1, I got the error code 2 , means 'no such name'. When…
scugxl
  • 317
  • 4
  • 15
1
vote
0 answers

Asynchornous SNMP get message with SNMP4J

I have been working in a simple SNMP manager for java using the library SNMP4J. I am trying to send simple asynchronous get messages. I have greated a SNMPmanager to create the PDUs and start the listeners and a simple class named SNMPget that makes…
user3102314
1
vote
0 answers

How SNMP agent gets data from snmp devices will work c#

I've been looking around the net for a guide or tutorial on how to start on using C#.NET to query SNMP devices but I have been unsuccessful. I am using Sharpsnmplib because of MIT license. I didn't understand about the flow of data that how devices…
ankit Gupta
  • 313
  • 1
  • 5
  • 19
1
vote
0 answers

How to set snmp v3 context name in linux

all How can I set the snmpv3 context name for the snmp agent ? Can I set it when I create a new snmpv3 user or need to change the snmp configuration ?
1
vote
1 answer

SNMP4j Trap Severity

How can I set a trap severity? Code below TransportMapping transport = new DefaultUdpTransportMapping(); Snmp snmp = new Snmp(transport); CommunityTarget localtarget = new CommunityTarget(); localtarget.setCommunity(new…
Jin
  • 77
  • 1
  • 6
1
vote
1 answer

SNMP4J : What does "Inconsistent naming used" error mean?

I am currently on a project of building an SNMP agent and manager with Java using SNMP4J API. I created an MOTable with 3 columns and then try to send a set from the client to create a new row in the MOTable conceptual table. Here is the extract of…
rBenks93
  • 53
  • 1
  • 8
1
vote
0 answers

snmp4j - v3 USM with NoAuthNoPriv

Trying out Frank's simple snmpv3 example up on snmp4j.org and the following code keeps returning a REPORT with an OID of 1.3.6.1.6.3.15.1.1.3.0 which means UnknownUserName.. First, here is the sample snmpwalk that correctly connects and returns a…
user3341047
  • 33
  • 1
  • 6
1
vote
1 answer

parsing an MIB text file and generating xml file

I am developing an snmp manager using snmp4j. I have requirement to read an MIB text file and generate corresponding XML file. Is there any SNMP4j library available to parse the Mib text file and get the data for each object. if snmp4j could not…
Rajesh Kumar
  • 349
  • 3
  • 18
1
vote
1 answer

SNMP4J-Agent: SampleAgent vs TestAgent

The documentation of SNMP4J-Agent tells, if you want to write your own SNMP agent you should sub-class BaseAgent. And this is done in TestAgent class in the org.snmp4j.agent.test package. But in org.snmp4j.agent.example there is another class…
HungryFoolish
  • 542
  • 1
  • 9
  • 27
1
vote
1 answer

SNMP4J for updating a row in an SNMP table?

How can I update a row from an SNMP table using the SNMP4J library? I found the method: TableUtils.createRow(Target target,OID rowStatusColumnOID,OID rowIndex,VariableBinding[] values) to create a row, but it doesn't have a method to update?
iness31
  • 11
  • 2