I first started the snmp master agent "without" the tokens you recommended so
you can see the results of a "snmpwalk" request of both tables, then I
restarted the agent with the tokens and got the "snmpgetnext" output you
requested.
Here is the "snmpwalk" of Table1(ocStbHostAVInterfaceTable):
[net-snmp]# /export/home/myname/snmp/usr/local/bin/snmpwalk -v1 -c
mycommunity_ro localhost ocStbHostAVInterfaceTable
OC-STB-HOST-MIB::ocStbHostAVInterfaceType.1 = OID:
OC-STB-HOST-MIB::ocStbHostOther
OC-STB-HOST-MIB::ocStbHostAVInterfaceType.2 = OID:
OC-STB-HOST-MIB::ocStbHostScte55FdcRx
OC-STB-HOST-MIB::ocStbHostAVInterfaceType.3 = OID:
OC-STB-HOST-MIB::ocStbHostScte55RdcTx
OC-STB-HOST-MIB::ocStbHostAVInterfaceType.4 = OID:
OC-STB-HOST-MIB::ocStbHostScte40FatRx
OC-STB-HOST-MIB::ocStbHostAVInterfaceType.5 = OID:
OC-STB-HOST-MIB::ocStbHostBbVideoIn
OC-STB-HOST-MIB::ocStbHostAVInterfaceDesc.1 = STRING: MY DESCRIPTION 1 1
OC-STB-HOST-MIB::ocStbHostAVInterfaceDesc.2 = STRING: MY DESCRIPTION 2 2
OC-STB-HOST-MIB::ocStbHostAVInterfaceDesc.3 = STRING: MY DESCRIPTION 3 3
OC-STB-HOST-MIB::ocStbHostAVInterfaceDesc.4 = STRING: MY DESCRIPTION 4 4
OC-STB-HOST-MIB::ocStbHostAVInterfaceDesc.5 = STRING: MY DESCRIPTION 5 5
OC-STB-HOST-MIB::ocStbHostAVInterfaceStatus.1 = INTEGER: enabled(1)
OC-STB-HOST-MIB::ocStbHostAVInterfaceStatus.2 = INTEGER: enabled(1)
OC-STB-HOST-MIB::ocStbHostAVInterfaceStatus.3 = INTEGER: enabled(1)
OC-STB-HOST-MIB::ocStbHostAVInterfaceStatus.4 = INTEGER: enabled(1)
OC-STB-HOST-MIB::ocStbHostAVInterfaceStatus.5 = INTEGER: enabled(1)
Here is the "snmpwalk" of Table2(ocStbHostAnalogVideoTable):
[net-snmp]# /export/home/myname/snmp/usr/local/bin/snmpwalk -v1 -c
mycommunity_ro localhost ocStbHostAnalogVideoTable
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.1 = INTEGER:
fourLineSplitBurst(3)
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.2 = INTEGER:
fourLineSplitBurst(3)
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.3 = INTEGER:
copyProtectionOff(0)
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.4 = INTEGER:
fourLineSplitBurst(3)
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.5 = INTEGER:
fourLineSplitBurst(3)
Here is the "snmpgetnext" output you requested:
[net-snmp]# /export/home/myname/snmp/usr/local/bin/snmpgetnext -v 1 -c
mycommunity_ro localhost ocStbHostAnalogVideoProtectionStatus.2
handler:calling: main handler bulk_to_next
handler:calling: calling handler bulk_to_next for mode GETNEXT
handler:returned: handler bulk_to_next returned 0
handler:calling: calling handler table for mode GETNEXT
handler:calling: calling handler cache_handler for mode GETNEXT
handler:returned: handler cache_handler returned 0
handler:calling: calling handler table_container for mode GETNEXT
table_container: Mode GETNEXT, Got request:
table_container: data_lookup
oid:OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.2
handler:calling: calling handler row_merge for mode GET
handler:calling: calling handler baby_steps for mode GET
handler:calling: calling handler baby_steps_mux for mode (null)
internal:ocStbHostAnalogVideoTable:_mfd_ocStbHostAnalogVideoTable_pre_request:
called
verbose:ocStbHostAnalogVideoTable:ocStbHostAnalogVideoTable_pre_request: called
handler:returned: handler baby_steps_mux returned 0
handler:calling: calling handler baby_steps_mux for mode (null)
internal:ocStbHostAnalogVideoTable:_mfd_ocStbHostAnalogVideoTable_object_lookup:
called
verbose:ocStbHostAnalogVideoTable:ocStbHostAnalogVideoTable_row_prep: called
handler:returned: handler baby_steps_mux returned 0
handler:calling: calling handler baby_steps_mux for mode GET
internal:ocStbHostAnalogVideoTable:_mfd_ocStbHostAnalogVideoTable_get_values:
called
internal:ocStbHostAnalogVideoTable:_mfd_ocStbHostAnalogVideoTable_get_column:
called for 1
verbose:ocStbHostAnalogVideoTable:ocStbHostAnalogVideoProtectionStatus_get:
called
handler:returned: handler baby_steps_mux returned 0
handler:calling: calling handler baby_steps_mux for mode (null)
internal:ocStbHostAnalogVideoTable:_mfd_ocStbHostAnalogVideoTable_post_request:
called
verbose:ocStbHostAnalogVideoTable:ocStbHostAnalogVideoTable_post_request: called
handler:returned: handler baby_steps_mux returned 0
handler:returned: handler baby_steps returned 0
handler:returned: handler row_merge returned 0
handler:returned: handler table_container returned 0
handler:returned: handler table returned 0
OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.3 = INTEGER:
copyProtectionOff(0)
Need Help <[EMAIL PROTECTED]> wrote: Ok, I remember the "-D" option now .... I
will try it and let you know.
Need Help <[EMAIL PROTECTED]> wrote: I remember looking at the subContainer
stuff but could not make sense out of it. I guess I might need to go this
route if I can not figure out why these rows are being displayed. Since this
SNMP implementation is for my company, I doubt they would like to see all rows
in Table1 being displayed when they so a snmpwalk through Table2.
Now, in hope we can figure out why these extras rows are being displayed, I
will try running with the debugging tokens ..... but how do I do this? Is
there a special option I need to start the agent with perhaps?
** Also, I will be compiling with code into the master agent for this testing.
No need to see all the subagent stuff I guess.
Robert Story <[EMAIL PROTECTED]> wrote: On Tue, 19 Jun 2007 08:59:49 -0700
(PDT) Need wrote:
NH> Any idea what I should do to fix this problem?
Unfortunately, we are rapidly approaching the line between help I can offer by
quick peeks at the code, and help that needs serious debugging.
Try running with the following debugging tokens:
oc,verbose:oc,internal:oc,table,handler,sparse
Then do a snmpgetnext
for OC-STB-HOST-MIB::ocStbHostAnalogVideoProtectionStatus.2 and send the
resulting output.
NH> Would providing my code be helpful?
No, I don't think so.
NH> Anyway, not real sure what I can do on my own here unels syou
have some ideas. Let me know what you recommend.
If I can't pick something out of the debug output, the next step would be
using a debugger to actually trace through the agent and see why it isn't
moving on to the next row. It may well be that one of the handlers used by MfD
doesn't like it when a row goes missing.
I'm guessing that you might not actually enjoy tracing through the agent. In
that case, your options are:
1) grin and bear it (at the expense of your time)
2) grin and bear it II: pay someone else to do it (at the expense of your
wallet)
3) try using sub-containers with filters, as I originally suggested.
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
---------------------------------
8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime
shortcut.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders