snmp4j

Getting started with SNMP4J

不羁岁月 提交于 2019-12-17 18:08:41
问题 I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. 回答1: You can download the source code for SNMP4JAgent here: http://www.snmp4j.org/html/download.html The source code includes a sample agent -- look in the org.snmp4j.agent.example package for all of the related classes. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html One

How to set a specified engine ID for SNMP4J to send V3 trap

牧云@^-^@ 提交于 2019-12-11 19:06:27
问题 When I want to create a SNMPv3 user on the NMS, there need to input an engine ID which is an identifier string from SNMP Agent server for each user, so I input an casual id. For example: createUser -e "0x80001370017f000101" "mytrapuser1" SHA "user1authpass" AES "user1encypass" authUser log,execute,net mytrapuser1 And I can successfully send the trap from Agent server to NMS using below command: snmptrap -v 3 -a SHA -A user1authpass -x AES -X user1encypass -l authPriv -u mytrapuser1 -e

java.lang.NoClassDefFoundError: javax/crypto/Cipher

╄→гoц情女王★ 提交于 2019-12-11 16:08:57
问题 I am implementing SNMP traps in JBOSS FUSE using log4j and unfortunately getting into an issue as follows. Can any one please advise on what bundle/dependency I need to install to resolve this issue Caused by: java.lang.NoClassDefFoundError: javax/crypto/Cipher at org.snmp4j.security.SecurityProtocols.addDefaultProtocols(SecurityProtocols.java:152)[244:AbstractionAPI:1.0.0] at org.snmp4j.Snmp.initMessageDispatcher(Snmp.java:225)[244:AbstractionAPI:1.0.0] at org.snmp4j.Snmp.(Snmp.java:251)[244

SNMP Agent in Java: How adding new rows in MOTable

穿精又带淫゛_ 提交于 2019-12-09 14:07:19
问题 I am trying to implement an SNMP Agent in Java. I use snmp4j library (http://www.snmp4j.org/). Currently, my agent works on localhost/4700. I tried to send snmpget request thanks to the following request: snmpget -v2c -c public localhost:4700 1.3.6.1.4.1.1.99.5.4.1.3.1.1 but I only get something like "No such instance currently exists at this OID" Here is my problem: I don't know how to create one. I tried to add rows to my MOTable, but it doesn't seem to work. Here is a summary of my class

registering OIDs with snmp agent

末鹿安然 提交于 2019-12-07 09:56:44
问题 I am trying to simulate SNMP agent using snmp4j. I am trying to register MOs to the agent. Below is code snippet: static final OID mo1= new OID("1.3.6.1.4.1.1234.1.104"); static final OID mo2= new OID("1.3.6.1.4.1.1234.1.104.1"); static final OID mo3= new OID("1.3.6.1.4.1.1234.1.104.1.1"); agent.registerManagedObject(MOCreator.createReadOnly(mo1,"m1")); agent.registerManagedObject(MOCreator.createReadOnly(mo2,"m2")); agent.registerManagedObject(MOCreator.createReadOnly(mo3,"m3")); public

registering OIDs with snmp agent

会有一股神秘感。 提交于 2019-12-05 16:21:16
I am trying to simulate SNMP agent using snmp4j. I am trying to register MOs to the agent. Below is code snippet: static final OID mo1= new OID("1.3.6.1.4.1.1234.1.104"); static final OID mo2= new OID("1.3.6.1.4.1.1234.1.104.1"); static final OID mo3= new OID("1.3.6.1.4.1.1234.1.104.1.1"); agent.registerManagedObject(MOCreator.createReadOnly(mo1,"m1")); agent.registerManagedObject(MOCreator.createReadOnly(mo2,"m2")); agent.registerManagedObject(MOCreator.createReadOnly(mo3,"m3")); public class MOCreator { public static MOScalar createReadOnly(OID oid,Object value ){ return new MOScalar(oid,

Getting started with SNMP4J

末鹿安然 提交于 2019-11-28 06:34:40
I need to make an agent in SNMP4J, but the documentation on how to get started is pretty poor. Does anyone have any experience with SNMP4J and could give me an idea on how to get started? Thanks. You can download the source code for SNMP4JAgent here: http://www.snmp4j.org/html/download.html The source code includes a sample agent -- look in the org.snmp4j.agent.example package for all of the related classes. http://www.snmp4j.org/agent/doc/org/snmp4j/agent/example/SampleAgent.html One way of getting started would be to create an agent using the example code and then modify it to suit your