Hello

I have a problem with GETBULK on an agent developed using mib2c with
MFD.

The agent was built by running mib2c with MFD on several tables, one at
a time. One of the subagent files was modified to run the "init"
function for each of the tables. Everything has been working fine, until
we decided to to try GETBULK operations.

Basically, the problem is that GETBULK operations return "No more
variables left in this MIB View (It is past the end of the MIB tree)" in
between tables. If running 'snmpbulkwalk' from the top of the tree, this
is received AFTER the first table.

Sample output, SNMPBULKWALK:
==========================
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.1 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.2 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.3 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.4 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.5 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.5 = No more variables
left in this MIB View (It is past the end of the MIB tree)

Sample output, SNMPWALK:
======================
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.1 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.2 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.3 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.4 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.2.20.1.5.5 = STRING: "None"
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.101 = INTEGER: 101
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.102 = INTEGER: 102
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.201 = INTEGER: 201
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.202 = INTEGER: 202
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.203 = INTEGER: 203
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.301 = INTEGER: 301
SNMPv2-SMI::enterprises.23792.100.1.1.10.3.10.1.1.302 = INTEGER: 302

If I run SNMPBULKGET starting from
enterprises.23792.100.1.1.10.2.20.1.5.5 I also get "No more
variables..." but if I run it from enterprises.23792.100.1.1.10.2.20.1.6
it prints the entire next table and then "No more variables...".

We are building the entire table using the "...cache_load" functions.

This is the "init" function for the first table:
int
dlccdCCDTrapDestinationsTable_init_data
    (dlccdCCDTrapDestinationsTable_registration_ptr
     dlccdCCDTrapDestinationsTable_reg)
{
 
DEBUGMSGTL(("verbose:dlccdCCDTrapDestinationsTable:dlccdCCDTrapDestinati
onsTable_init_data", "called\n"));

    /*
     * @GS: HJS list of columns in this table
     */
    static unsigned int dlccdCCDTrapDestinationsTableColumns[] = {
        COLUMN_DLCCDTRAPDESTINATIONINDEX,
        COLUMN_DLCCDTRAPDESTINATIONIP,
        COLUMN_DLCCDTRAPDESTINATIONPORT,
        COLUMN_DLCCDTRAPDESTINATIONCOMMUNITY,
        COLUMN_DLCCDTRAPDESTINATIONDESC
    };

    static netsnmp_column_info valid_columns;

    valid_columns.isRange = 0;
    valid_columns.details.list = dlccdCCDTrapDestinationsTableColumns;
    valid_columns.list_count =
sizeof(dlccdCCDTrapDestinationsTableColumns) /
                                       sizeof(int);
    dlccdCCDTrapDestinationsTable_valid_columns_set(&valid_columns);
    /*
     * @GS: HJS end
     */


    return MFD_SUCCESS;
}                               /*
dlccdCCDTrapDestinationsTable_init_data */


Harold Ship
Giant Steps Networks


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to