[SNMP4J] SnmpRequest IllegalArgumentException ?

wafae alami alami.ouafae at gmail.com
Sun Jul 19 02:49:52 CEST 2009


Hi Frank,

I'm trying  to use the SnmpRequest class  , when using the following
arguments like in the usage help  : (as the main arguments )

SNMP4J -c private -v 2c -p SET udp:localhost/161
"1.3.6.1.2.1.1.5.0={s}SNMP4J"

, I have the following exception :


Error: *SNMP4J/161java.lang.IllegalArgumentException*: SNMP4J/161

at org.snmp4j.smi.UdpAddress.<init>(*UdpAddress.java:48*)

at org.snmp4j.tools.console.SnmpRequest.getAddress(*SnmpRequest.java:560*)

at org.snmp4j.tools.console.SnmpRequest.<init>(*SnmpRequest.java:116*)

at org.snmp4j.tools.console.SnmpRequest.main(*SnmpRequest.java:1197*)



Could you help please ?

Thanks in advance .

Ouafae



More information about the SNMP4J mailing list