What do you think about the following snmpwalk output?

Need Help <[EMAIL PROTECTED]> wrote:Here is the code I currently added in the 
Table_object_lookup() routine:

    if (MFD_SUCCESS != rc)
        netsnmp_request_set_error_all(requests, rc);
    else {
        rc = ocStbHostAnalogVideoTable_row_prep(rowreq_ctx);
        if (MFD_SKIP == rc) {
           netsnmp_request_info *req;
           for (req=requests; req;  req=req->next)
              req->requestvb->type = SNMP_NOSUCHINSTANCE;
           rc = SNMP_ERR_NOERROR;
        }
   }


Now, let me explain what I see and you can tell me if this is normal.  I am not 
sure what a SNMP operator performing a snmpwalk request of Table2 would expect 
to see as a result.  You can let me know.  Remember Table2 is an  extension of 
the main Table1 so not all rows in Table1 relate to Table2 data.  

I am performnig a snmpwalk of Table2 (ocStbHostAnalogVideoTable) which only 
includes one field (ocStbHostAnalogVideoProtectionStatus).   The value of this 
field can be one of the following defined values:

copyProtectionOff = 0
splitBurst = 1
twoLineSplitBurst = 2
fourLineSplitBurst = 3


The "ocStbHostAnalogVideoTable_row_prep()" routine is set to return MFD_SKIP 
for the third row only.


Here is the output of the "snmpwalk" command for Table2:

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)


The third row is being displayed and it has the default value (0 - 
copyProtectionOff) associated with it.  Is it normal for a skipped row to be 
displayed as output?   I would have assumed only Table2-specific rows (1, 2, 4, 
5) would be displayed only when walking through Table2.

If Table1 had 100 rows and only 2 rows of Table1 relate to Table2, then I would 
not expect 100 rows to be displayed when walking through Table2.  I would 
expect only 2 rows to be displayed only.



       
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. 
-------------------------------------------------------------------------
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

Reply via email to