snmpwalk does not walk the table when using dynamic load.

Wei Zheng <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <4B18A8F75A6384449755BC7784073E93616F5DD485@exch11.olympus.f5net.com>
We are using net-snmp 5.4.2.1.  We've been using subagent for our own SNMP mibs. It has been working fine.  Now, I am trying to use dynamic load for our own SNMP mibs.

When I do a snmpwalk of our own SNMP tables, it only output the top level of the table, does not output what below the top level.  (This problem does not exist if we use subagent.)

For example, for table lmPl,
snmptranslate -Tp -IR lmPl
+--lmPl(1)
   |
   +-- -R-- INTEGER   lmPlNumber(1)
   |
   +--lmPlTable(2)
      |
      +--lmPlEntry(1)
         |  Index: lmPlName
         |
         +-- -R-- String    lmPlName(1)
         |        Textual Convention: LongDisplayString
         |        Size: 0..1024
        +-- -R-- Integer32 lmPlMemberCnt(23)

When I do "snmpwalk  -c public localhost lmPl",  it outputs,
# snmpwalk -c public localhost lmPl
LOCAL-MIB::lmPNumber.0 = INTEGER: 2

It does not output lmPlName and lmPlMemberCnt.

If just walk lmPlName, it gave out correct data,
# snmpwalk -c public localhost lmPlName
LOCAL-MIB::lmPlName."test1" = STRING: test1
LOCAL-MIB::lmPlName."test2" = STRING: test2

While trying to figure out what is happening, it seems in snmpwalk, function main(), return data response from calling function snmp_synch_response does not output next level of data in the table, i.e.,  response->variables->name is not oid value of lmPlName, but still is lmPlNumber.

So, snmpwalk thinks it is end of the table and will not continue.

My question is, what could be the possible reasons for it?  Our SNMP MIBs works fine when using subagent.  When using dynamic load, MIBS and their access functions are not changed.  The data is still in MIBs, as it can be obtained when specifically ask for it.

Any tips are appreciated!
Wei

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.