| From | Sent On | Attachments |
|---|---|---|
| Lucio Crusca | Feb 10, 2011 9:03 am | |
| Daniel Fuchs | Feb 10, 2011 9:22 am | |
| Lucio Crusca | Feb 11, 2011 6:49 am | |
| Daniel Fuchs | Feb 11, 2011 7:04 am | |
| Lucio Crusca | Feb 11, 2011 8:20 am | |
| Lucio Crusca | Feb 15, 2011 8:48 am | |
| Daniel Fuchs | Feb 20, 2011 6:10 am | |
| Lucio Crusca | Feb 21, 2011 8:17 am | |
| Daniel Fuchs | Feb 21, 2011 9:28 am | |
| Lucio Crusca | Feb 22, 2011 7:02 am | |
| Daniel Fuchs | Feb 22, 2011 9:07 am | |
| Lucio Crusca | Mar 31, 2011 9:17 am | |
| Daniel Fuchs | Mar 31, 2011 9:39 am | |
| Daniel Fuchs | Mar 31, 2011 9:53 am |
| Subject: | Re: starting a standalone snmp agent | |
|---|---|---|
| From: | Daniel Fuchs (dani...@oracle.com) | |
| Date: | Feb 20, 2011 6:10:39 am | |
| List: | net.java.dev.opendmk.users | |
Hi Lucio,
Sorry for the late answer. I suggest you have a look at how to implement tables as described in the Java DMK tutorial.
http://java.sun.com/products/jdmk/jdmk_docs.html
-- daniel
On 2/15/11 5:48 PM, Lucio Crusca wrote:
In data venerdì 11 febbraio 2011 17:20:57, I wrote:
2: name. This is a plain mistery to me. No clue about what it should be.
Now, assuming the informations I've found [1] hold valid for a snmp standalone agent (please confirm), seems to me that the ObjectName can be anything as far as it's unique and respects the syntax "domain:key=value".
And in fact I've managed to compile my code and run it without it complaining about the ObjectName instance, but the call to addEntry raises a SnmpStatusException with status 5 anyway... what's wrong now?
Snippet:
SnmpAdaptorServer snmpserv = new SnmpAdaptorServer(port, addr);
snmpserv.start();
// Send a coldStart SNMP Trap snmpserv.setTrapPort(new Integer(port+1)); snmpserv.snmpV1Trap(0, 0, null);
SURFBEAM_SYSTEM_MIB snmpMib = new SURFBEAM_SYSTEM_MIB(); snmpMib.init(); snmpserv.addMib(snmpMib); snmpMib.setSnmpAdaptor(snmpserv);
RcgReturnChannelEntry rcg = new RcgReturnChannelEntry(snmpMib); RcgReturnChannelTableMeta rcgtab = new RcgReturnChannelTableMeta(snmpMib, snmpMib.objectserver); SnmpOid oid = new SnmpOid("1.3.6.1.4.1.8698.1000.1.16.1"); ObjectName on = new ObjectName("mydomain:mykey=myvalue"); rcgtab.addEntry(oid, on, rcg, true);
the last "true" means registerFlag=true, as per the mibgen generated code. If I set it to false I get no exceptions, but I also get the same old reply from
$ snmpgetnext 1.3.6.1.4.1
iso.3.6.1.4.1.8698.1000.1.1.1.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
Please help...
[1] http://www.nm.ifi.lmu.de/pub/Publikationen/hare99/HTML-Version/node6.html





