[SNMP4J] About SNMP4J
Mauricio Reyes
maure5 at hotmail.com
Tue Feb 22 21:13:55 CET 2005
Hello,
I'm currently evaluating the use of SNMP4J in a proyecto I am developing. I
would like to knoe some things:
1. I need to build a Java program that calculates some statistics from v3
traps received from net-snmp program. The idea is to have one thread to
listen to incoming traps and another thread to issue some traps to a manager
station, and on top of this two is the program I need to build. Would SNMP4J
work like this?
2. Can SNMP4J send and receive SNMPv3 traps from net-snmp?
3. I've been trying to test if SNMPv3 traps (I need them to be authPriv
traps, with authentication and encryption) are received with the tool
provided, like this:
C:\Documents and
Settings\Nest\Desktop\test\snmp4j\snmp4j_tool\snmp4j_tool>SNMP4
J -a MD5 -A nbaprueba -x DES -X nbaprueba -u nbatest -Ol 0.0.0.0/162
But I get this message:
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:<option>=<value>, ...]
perform JVMPI heap, cpu, or monitor profiling
-Xdebug enable remote debugging
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see
documentation)
-Xcheck:jni perform additional checks for JNI functions
The -X options are non-standard and subject to change without notice.
And the program quits. How can I solve this? I need to receive SNMPv3 traps.
For SNMPv2c traps it works fine. Am I missing something?
4. How can I send and receive traps from within the code?
Thanks a lot for your collaboration.
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the SNMP4J
mailing list