I am implementing a (native Perl) AgentX library and I'm testing it
with a sample sub-agent...

Can someone explain my confusion in the following AgentX scenario:

1/ My sub-agent registers a row in its table.  The row has 4 columns.
    The table OID is defined as 1.3.6.1.4.1.881.500.1.5.1.column.rowIndex
   so for registering a row at index 1, it issues the AgentX 'Register PDU'
   with:

     sub-tree:    1.3.6.1.4.1.881.500.1.5.1.0.1
      Range subid: 12
     Upper bound:  4

   The way _I_ interpret that is to say that the sub-agent now has the
    following OIDs:

     1.3.6.1.4.1.881.500.1.5.1.1.1
     1.3.6.1.4.1.881.500.1.5.1.2.1
     1.3.6.1.4.1.881.500.1.5.1.3.1
     1.3.6.1.4.1.881.500.1.5.1.4.1

   ie, columns 1 through 4 for row 1

2/ To test it, I query my agent with a:
      getnext 1.3.6.1.4.1.881.500.1

3/ What I see in the AgentX getNext PDU is:

   Range Start: 1.3.6.1.4.1.881.500.1.5.1.0.1  (inclusive)
   Range End:   1.3.6.1.4.1.881.500.1.5.1.0.2  (exclusive)

4/ My sub-agent then looks for OIDS between those two ranges
   and should find the first variable (I listed above) at
   1.3.6.1.4.1.881.500.1.5.1.1.1

   so   'start range' of ...5.1.0.1 IS less than      'my variable' at
...5.1.1.1
   BUT, 'my variable' at ...5.1.1.1 is NOT less than  'end range'   at
...5.1.0.2

And yet, that IS the variable that should be returned by the getNext.

What am I mis-interpreting in the specs and/or transactions?

TIA
Fulko
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to