Questions tagged [snmp4j]

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

268 questions
0
votes
2 answers

RunTimeException in SNMP4J agent

I have downloaded SNMP4J and I added it to buildpath of my project. Then I added some codes from http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/ and…
Naeem Baghi
  • 811
  • 2
  • 14
  • 29
0
votes
1 answer

How to create snmp client using external ip in snmp4j?

I want create snmp client to some devices. However devices are not directly accessible from localhost . Want to use external ip to create the snmp client(session). How can I fullfill it using SNMP4j. Below is the code snippet I use to create snmp…
Brinal
  • 172
  • 2
  • 18
0
votes
2 answers

PDU.TRAP vs PDU.SET snmp4j

PDU pdu = new PDU(); pdu.setType(PDU.SET); pdu.add(new VariableBinding(new OID("1.3.6.1.4.1.100.1.1"), new Counter64(System.currentTimeMillis()))); pdu.add(new VariableBinding(new OID("1.3.6.1.4.1.100.2.1"), new OctetString("some…
Mustafa Genç
  • 2,569
  • 19
  • 34
0
votes
1 answer

How to retrieve messages from dmsMessageTable of a Device Controller Using SNMP

I am working on NTCIP/SNMP Protocol I was able to connect to the device controller using one one of the MIBBrowser and was able to walk through the different objects(OIDS) loaded through a MIB File. However,When I do a walk over the dmsMessageTable…
pavan
  • 979
  • 3
  • 11
  • 21
0
votes
2 answers

query my sql db from snmp agent

I am new to snmp and using snmp4j to create an snmp agent.My java application needs to listen to snmp request and query the db based on the incoming oid and send a response back. I have a src code for snmp agent. But how does the agent query the db…
yonikawa
  • 581
  • 1
  • 9
  • 32
0
votes
1 answer

How to prevent java.net.UnknownHostException using org.snmp4j.transport.DefaultUdpTransportMapping

How do I avoid the UnknownHostException in this line: TransportMapping transport = new DefaultUdpTransportMapping(); I use the SNMP4J 2.2.0 API and use multiple threads (one thread for each switch)
Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113
0
votes
1 answer

IllegalArgumentException error with snmpget

I have a jlist for IP addresses and a method to save the selected value from the jlist list.addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent e){ s=(String)list.getSelectedValue(); …
HobbitOfShire
  • 2,144
  • 5
  • 24
  • 41
0
votes
1 answer

snmp4j - unable to get full records with getBulk

I try to implement snmpgetbulk function using snmp4j and failed to get the all the records. It always return me the 100 records. Can anyone can advice me on this? Below is my code: //create transport transport = new…
bear
  • 87
  • 3
  • 12
0
votes
1 answer

unable to receive and process snmp packets having RequestID 0

I have a snmp enabled device whose monitoring i want to do. But this device gives response with Request-ID 0 for all the get request. snmp4j library discards these received packets because it sends get request with some Request-ID value other than…
0
votes
1 answer

What is Target in snmp4j lib for SNMP

Hello Everyone!! I have a sample code to access some information of device using snmp4j in SNMP protocol...In the sample code they have given to dump the information retrieved into some target address and i am not getting what…
vikas
  • 339
  • 2
  • 6
  • 12
0
votes
1 answer

Missing value in SNMP

I use snmp4j ver 1.10.1 from org.snmp4j and this is my trap receiver code to catch data from snmp trap. public class TrapReceiver extends Thread implements CommandResponder { //@Autowired private CarService carService; List listPdu = new…
Mahadi Siregar
  • 615
  • 3
  • 17
  • 38
0
votes
0 answers

Snmp4j Walk Different Results

I have a problem about the snmp walk behaving differently between platforms(same network). For example, on my windows 7 laptop, snmp walk request return with 200 results but on solaris 10 server machine, it returns with 30 results. Are there any…
MartK
  • 614
  • 2
  • 8
  • 21
0
votes
2 answers

How to find bandwidth of a Spring web application using SNMP4J

I am new to SNMP4J. I have a requirement to monitor how much bandwith our web application is using. Web application is developed using Spring, Hibernate. I have downloaded SNMP4J libraries and done basic examples of finding system description,…
Raju Rudru
  • 1,102
  • 12
  • 19
0
votes
2 answers

SNMP Message with SNMP4J : Specify Read Community and Write Community?

I create an snmp message (SNMP4J) and I need to set the Read Community Public and the Write Community Private. From an example the community is set: // Specify receiver Address targetaddress = new UdpAddress("10.10.10.10/162"); CommunityTarget…
beanf
  • 37
  • 1
  • 7
0
votes
1 answer

no response from the host :snmpwalk

I have implemented AgentX using mib2c.create-dataset.conf ( with cache enabled) In my snmd.conf :: agentXTimeout 15 In testtable.h file I have changed cache value as below... #define testTABLE_TIMEOUT 60 According to my…
jatin bodarya
  • 72
  • 3
  • 8
1 2 3
17
18