On Wed, 2007-04-11 at 14:24 -0500, Blau, Eric wrote: > Hi Randall, > > I ran into this same problem in implementing an enterprise MIB. Try > changing the type of the index in your MIB implementation to > ASN_PRIV_IMPLIED_OCTET_STR. That tells Net-SNMP that the length of the > octet string index is implied and should not be included in the > response. > > In the mib2c generated code, the place I had to change this was in the > initialize_table_* function: > > table_info = SNMP_MALLOC_TYPEDEF( netsnmp_table_registration_info ); > netsnmp_table_helper_add_indexes(table_info, > ASN_PRIV_IMPLIED_OCTET_STR, > 0); > > Hope that helps. > > Regards, > Eric >
Thanks Eric, I tried making that change to my agent, but it didn't work. Looks like it's part of the solution to my problem but is in conjunction with some bugfixes that were made to 5.3.1 in CVS. In particular, a problem in 5.3.1 when trying to use the ASN_PRIV_IMPLIED_OCTET_STR scheme on an index that is not the last of multipe indices: http://www.mail-archive.com/[email protected]/msg06292.html Guess I'm going to have to do some patching on my 5.3.1 from CVS, or migrate to 5.4. --Randall -- |\/| |/\| |\/| Randall S. Loomis Sr. Software Engineer Solectek Corporation www.solectek.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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
