[SNMP4J] odd problem, when using NetBeans IDE

Frank Fock fock at agentpp.com
Fri Feb 8 19:01:38 CET 2013


Hi Mike,

Sorry, I cannot help you with the SimpleSnmpClient class.
This is the SNMP4J mailing list.

Best regards,
Frank

Am 08.02.2013 18:10, schrieb Mike Dorin:
>
>
>
> Hello,I am having an odd problem when I use the NetBeans IDE...but have no problem at all using the Eclipse IDE. My program looks kind of like below.  (imports omitted)  I use the simplesnmpclient class found here:http://www.jayway.com/2010/05/21/introduction-to-snmp4j/ On net-beans, the request goes to the agent, and the angent replies..but client.getAsString does not return a string. Thank you, Mike
> public class SNMPTester2 {    /**
>       * @param args the command line arguments
>       */
>      public void snmp() throws IOException {
>          SimpleSnmpClient client = new SimpleSnmpClient("udp:192.168.1.20/161");
>          String sysDescr = client.getAsString(new OID(".1.3.6.1.2.1.1.1.0"));
>          System.out.println(sysDescr);
>      }    public static void main(String[] args) {
>          // TODO code application logic here
>          SNMPTester2 ssc = new SNMPTester2();
>          try {
>              ssc.snmp();
>          } catch (IOException ex) {
>              Logger.getLogger(SNMPTester2.class.getName()).log(Level.SEVERE, null, ex);
>          }
>         
>      }
> } 		 	   		
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list