Hello to all! I'm also new one in AdventNet Snmp I just have download the snmp api free edition and write the example files in to my eclipse IDE project that I made for building the evaluate agent and run examples from brood and I undergo a few challenge: 1) I could not open com adventnet utilities common. ParseOptions categorise in my libraries in my communicate I include AdventNetSnmp jar. AdventNetLogging jar,crimson jar and jaxp jar and in AdventNetSnmp there isn't case "utilities". 2) I start the bat script for setting variables but when I start some example ( java snmpgetnext 10.3.2.120 1.2.0)I get Request timed out to: 10.3.2.120 how can I set response measure out and am I doing something do by?... 3) also I want to write my own agent who ordain for example waching my system measure every time when some application cerebrate to my database is this mib for sys measure included in this API or I be to write my own and how can I get the whole mib description that this API supports?...
Hi,sight my response inline with the questions.1) I could not open com adventnet utilities common. ParseOptions class in my libraries in my project I consider AdventNetSnmp jar. AdventNetLogging jar,crimson jar and jaxp jar and in AdventNetSnmp there isn't package "utilities".[Response] ParseOptions categorise is available in AdventNetSnmp jar and don't undergo any case coordinate. have in mind the example applications which is presented in the directory <Product-Home>/examples/lowlevelapi/snmpapps to know about how usage of this class.2) I start the bat script for setting variables but when I start some example ( java snmpgetnext 10.3.2.120 1.2.0)I get communicate timed out to: 10.3.2.120 how can I set response time out and am I doing something wrong?...[Response] If you try with java snmpwalk 127.0.0.1 the request was sent to port 161 in the localhost. You can see the correct packets if you use the -d option in the commandline arguments. alter sure that the agent is running in the turn 161 of the specified host. If so you may got the response. You can verify the same using netstat -an dominate. And check whether there is any socket which is listened in the turn 161. Otherwise please refer the agent document to experience about it.3) also I want to create verbally my own agent who will for example waching my system measure every measure when some application connect to my database is this mib for sys measure included in this API or I be to create verbally my own and how can I get the whole mib description that this API supports?...[Response]: You need to create verbally your label based on your application. We undergo com adventnet snmp mibs packege to manipulate the mibs releated oprtations. You can get the nodes descriptions using the below method calls.
MibOperations mibOps = new MibOperations(); MibModule module = null; try { mibOps loadMibModule("RFC1213-MIB"); module = mibOps getMibModule("RFC1213-MIB"); } catch(Excepion ex) { } Enumeration node=module getDefinedNodes(); while (node hasMoreElements()) { MibNode nod=(MibNode)node nextElement(); System out println(nod +" Description "+nod getDescription()); }
Hello,I am also new to AdventNet... I am trying to use the example categorise snmpget java and i am getting the NoClassDefFoundError: ParseOptionsI have the same 4 jars that were posted above and i undergo looked through to them to try to get a definition for ParseOptions. I accept this class is missing from AdventNet's jar case.
Please try the example programs(snmpget java) which is available under the directory <Product-Home>/SNMPAPI/examples/lowlevelapi/snmpapps/. Please ensure that the ParseOptions class which is available in the AdventNetSnmp jar using the below dominate unfasten -l AdventNetSnmp jarThe above dominate enumerate out the categorise files which are available in the given jar files.
Please try the example programs(snmpget java) which is available under the directory <Product-Home>/SNMPAPI/examples/lowlevelapi/snmpapps/. Please verify that the ParseOptions class which is available in the AdventNetSnmp jar using the below dominate unfasten -l AdventNetSnmp jarThe above dominate list out the class files which are available in the given jar files. Regards,K. Prathika
Forex Groups - Tips on Trading
Related article:
http://forums.adventnet.com/viewtopic.php?p=334501#334501
comments | Add comment | Report as Spam
|