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
1 answer

Simple Example of Sending J2EE-MIB Stats to an SNMP Manager

I'm looking for a simple java example that actively sends SNMP stats to an SNMP Manager using the J2EE-MIB or the JVM-MANAGEMENT-MIB. My intent is to use SNMP4j against CA Spectrum, but any Java API against any generic SNMP manager is fine. I'm…
Nicholas
  • 15,916
  • 4
  • 42
  • 66
-1
votes
1 answer

Snmp code gives me this error Caused by: java.lang.NoClassDefFoundError: org/snmp4j/TransportMapping

i have been trying to apply commands of snmp at java on Ubuntu, i find an example code at stackoverflow and code's github link: https://github.com/jineshmathewt/snmpbulkwalk/blob/master/snmpbulkwalk/src/TestSNMP.java But when i try to execute i m…
-1
votes
1 answer

i work with snmp in spring boot project and i get this error message when i enter the route in the controller

Controller import PFEproject.APIs.services.SNMPManager; @RestController @RequestMapping("/snmp") public class snmptestC { @GetMapping public void ResponseEntity()throws Exception { SNMPManager client…
-1
votes
1 answer

Ip Address is not returning on rquesting cdpCacheAddress in snmp, instead showing c0:a8:0a:xX

i did a snmpwalk code in java , to retrieve data associated with cdp cache. except cdpCacheAddress, every thing is showing as expected. cdpCacheAddress is expected as IP but shows as c0:a8:0a:xX . the oid i requested is begins with…
-1
votes
1 answer

How can i shrink SNMP4J library to extract trap sending feature

I want a specific feature (Traps) from SNMP4j, is there a way to get a new jar which only has this feature?
Shaz Hemani
  • 469
  • 2
  • 10
-1
votes
1 answer

SNMP4J set Error

I'm excuting this DOS snmp command set by snmp4J: snmpset -c private -v 2c 192.168.1.26 .1.3.6.1.4.1.991.100.5.19.3.0 u 1 This is the code: public class SnmpSetExample { private static String ipAddress = "192.168.1.26"; private static String port =…
-1
votes
1 answer

Using SNMP to obtain server information

I need to obtain information about my servers running on Linux Redhat, Windows Server 2003 and Windows Server 2008. I have found the SNMP protocol to be useful for my purpose, but I am not clear how to implement it in my application. I don't even…
-1
votes
1 answer

Windows SNMP extension agent - snmp4j

I currently have an agent built using snmp4j that implements some custom mibs. What Im looking to do is run this snmp4j agent under windows as an snmp extension agent to the windows snmp service. The reason is I need this new snmp4j agent to handle…
-1
votes
2 answers

how to use SNMP

I have some linux servers which will work as SNMP agents. I need to use Java and SNMP4J to monitor these servers (agents), and also the SNMP manager must be able to check upon these servers. How to implement SNMP in the SNMP agent to respond to the…
vaj oja
  • 1,151
  • 2
  • 16
  • 47
-1
votes
1 answer

Is it possible to request multiple status using single SNMP request?

I wrote an application to know the status of the router. Using the program I can able to check one status using by one request. But i want to know multiple status using one request. Is it possible? Could please help? Please see the code This code…
stacktome
  • 790
  • 2
  • 9
  • 32
-3
votes
1 answer

Need support: SNMP trap sender (SNMPv3)

Can someone help me in creating an agent which can send SNMPv3 traps to NMS? Open to use SNMP4J or net-snmp.
epiyugu
  • 13
  • 5
-3
votes
1 answer

cartography of an network

I want to realize a program that would look in the MIB of a Cisco equipment. I have done research on the SNMP protocol (so I know that the equipment has what is called the agent or the server so I need a manager / client), OID, but I block enough on…
Rahim Qtr
  • 11
  • 5
-4
votes
1 answer

How to debug this java code? The code is designed to get the CPU usage and memory info in the Linux System

This is a java code I search from the internet: http://avery-leo.iteye.com/blog/298724 Its goal is to get the CPU usage and memory info in the Linux System. I compiled it in eclipse and found two errors as follows: private Config…
1 2 3
17
18