RE: index defined as IMPLIED to avoid length oid, but nothing happens :-(

Torben Surmer <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,
 
I have change the netSnmpIETFWGTable.c file as it was recommended me, so it looks now like:
CODE EXTRACT:
>>
    netsnmp_table_set_add_indexes(table_set,                           ASN_PRIV_IMPLIED_OCTET_STR,  /* index: nsIETFWGName */                           0);
    DEBUGMSGTL(("initialize_table_netSnmpIETFWGTable",                "adding column types to table netSnmpIETFWGTable\n"));       netsnmp_table_set_multi_add_default_row(table_set,                                            COLUMN_NSIETFWGNAME, ASN_PRIV_IMPLIED_OCTET_STR, 0,                                            NULL, 0,                                            COLUMN_NSIETFWGCHAIR1, ASN_OCTET_STR, 1,                                            NULL, 0,                                            COLUMN_NSIETFWGCHAIR2, ASN_OCTET_STR, 1,                                            NULL, 0,                              0);<<
After compiling the subagent, the snmpset shows the used, but unwanted picture
%snmpset localhost .1.3.6.1.4.1.8072.2.2.1.1.2.\"sming\" s "David"NET-SNMP-MIB::netSnmp.2.2.1.1.2.5.115.109.105.110.103 = STRING: "David"
with the length subidentifier "5". Does someone has further advise?
 
Thanks a lot,
Torben
 
 



> Date: Tue, 14 Aug 2007 10:20:11 +0100> From: [email protected]> To: [email protected]> Subject: Re: index defined as IMPLIED to avoid length oid, but nothing happens :-(> CC: [email protected]> > On 14/08/07, Torben Surmer <[email protected]> wrote:> > > I changed the netSnmpIETFWGTable ...as follows> > > INDEX { IMPLIED nsIETFWGName }> > > After creating the c-file - mib2c -c mib2c.create-dataset.conf> > netSnmpIETFWGTable and compiling the subagent> > A quick test seems to imply that the mib2c templates don't know> about IMPLIED indexes. That's clearly a bug, which needs to be fixed.> > Try tweaking the generated code file as follows (untested):> > *** netSnmpIETFWGTable.c.orig 2007-08-14 10:17:59.831483000 +0100> --- netSnmpIETFWGTable.c 2007-08-14 10:19:18.298892000 +0100> ***************> *** 35,37 ****> "adding indexes to table netSnmpIETFWGTable\n"));> ! netsnmp_table_set_add_indexes(table_set, ASN_OCTET_STR, /*> index: nsIETFWGName */> 0);> --- 35,37 ----> "adding indexes to table netSnmpIETFWGTable\n"));> ! netsnmp_table_set_add_indexes(table_set,> ASN_PRIV_IMPLIED_OCTET_STR, /* index: nsIETFWGName */> 0);> ***************> *** 42,44 ****> COLUMN_NSIETFWGNAME,> ! ASN_OCTET_STR, 0, NULL, 0,> COLUMN_NSIETFWGCHAIR1,> --- 42,44 ----> COLUMN_NSIETFWGNAME,> !> ASN_PRIV_IMPLIED_OCTET_STR, 0, NULL, 0,> COLUMN_NSIETFWGCHAIR1,> > > Dave> > -------------------------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc.> Still grepping through log files to find problems? Stop.> Now Search log events and configuration files using AJAX and a browser.> Download your FREE copy of Splunk now >> http://get.splunk.com/> _______________________________________________> 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> 
_________________________________________________________________
Play free games, earn tickets, get cool prizes! Join Live Search Club. 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

_______________________________________________
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.