[SNMP4J] Can't get sample to work (even after 6 hours of trying)

ebeard at lexmark.com ebeard at lexmark.com
Thu Oct 25 19:51:33 CEST 2007


I downloaded an installed the snmp4j-1.9RC1 code and documentation on RH
Linux v4.  I thought I'd try something very simple and make a version of
snmpwalk work.  I used the sample from running
"org.smp4j.tools.console.snmpRequest" and tried the following command line

java org.snmp4j.tools.console.snmpRequest  -c public -v 2c -Ot localhost
1.3.6.1.2.1.2.2.1.2-10\ 1.3.6.1.2.1.2.2.1.16

and get the following error

Error: Missing option value for -c java.lang.IllegalArgumentException:
Missing option value for -c
      at org.snmp4j.tools.console.SnmpRequest.nextOption(Unknown Source)
.parseArgs
.<init>
.main

I'm using JAVA 1.6.0_02-b05.  I've read everything in the archives and
google'd and yahoo'd everything I could to find a solution and none appear
forthcoming.

Any suggestions?

Thanks




More information about the SNMP4J mailing list