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

Frank Fock fock at agentpp.com
Thu Oct 25 20:04:03 CEST 2007


Hi,

May be removing the extra space between "snmpRequest" and "-c"
helps.

Best regards,
Frank

ebeard at lexmark.com wrote:
> 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
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list