[SNMP4J] How can I find oid(myTable)?

손인선 freshon at gmail.com
Fri Nov 21 04:50:40 CET 2008


Hi, Frank.


I have a question.


============================================================================
      // Register a table with a string index and a single integer payload
column
      // a row status column to
      DefaultMOTable myTable =
         new DefaultMOTable(new OID("1.3.6.1.4.1.4976.10.1.1.20.1.2"),
                            new MOTableIndex(new MOTableSubIndex[] {
                                             new MOTableSubIndex(new
OID("1.3.6.1.4.1.4976.10.1.1.20.1.2.1"),

SMIConstants.SYNTAX_OCTET_STRING, 1, 16) },
                                             true),
         new MOMutableColumn[] {
      new MOMutableColumn(1, SMIConstants.SYNTAX_INTEGER32,
                          MOAccessImpl.ACCESS_READ_CREATE,
                          new Integer32(10), true),
      new RowStatus(2)
         });
      server.register(myTable, null);
============================================================================

There is this code in protected void registerMIBs() in SampleAgent.java

I registered myTable in MIB.
And then, I tried to find oid(1.3.6.1.4.1.4976.10.1.1.20.1.2) using MIB
browser.
But, I could not find oid(1.3.6.1.4.1.4976.10.1.1.20.1.2), why??
Why cannot I find oid?




-- 
Impossible is nothing.



More information about the SNMP4J mailing list