[Aglets-developer] i have problem in using package
Status: Beta
Brought to you by:
cat4hire
From: Tulus T. <tul...@ya...> - 2005-06-22 06:05:50
|
hi all, i have problem when i try to perform snmp operation.. i give you my simple source code and the result.. it work and return what i want..but there are many rows on the console show failed..you can see bottom.. How can i fix it? package tulus; import com.adventnet.snmp.beans.*; import com.ibm.aglet.*; public class Test_Aglet extends Aglet{ public void onCreation(Object init) { snmp_test target = new snmp_test(this); target.proses(); } } class snmp_test extends SnmpTarget { private Test_Aglet aglet = null; snmp_test(Test_Aglet aglet){ this.aglet = aglet; //proses(); } public void proses() { setTargetHost("localhost"); setObjectID(".1.3.6.1.2.1.1.1.0"); // or 1.1.0 with standard prefix String result=snmpGet(); if (result == null) System.err.println("Failed nih isinya : "+getErrorString()); else System.out.println("Result SNMP : "+result); } } Failed to write a bytecode cache entry to disk: Entry:[com/adventnet/snmp/snmp2/ SnmpAPI.class.1245010764.24331] Failed to write a bytecode cache entry to disk: Entry:[com/adventnet/snmp/snmp2/ ProtocolOptions.class.-679783014.207] Failed to write a bytecode cache entry to disk: Entry:[com/adventnet/snmp/snmp2/ SnmpSession.class.1112916975.47081] Result SNMP: Hardware: x86 Family 6 Model 8 Stepping 10 AT/AT CO MPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Uniprocessor Free) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |