RE: Is MacAddr a fixed or variable length OID?

This is a discussion on RE: Is MacAddr a fixed or variable length OID? within the SNMP Users forums, part of the Networking and Network Related category; On Wed, 2007-04-11 at 14:24 -0500, Blau, Eric wrote: > Hi Randall, > > I ran into ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2007
Randall Loomis
 
Posts: n/a
Default RE: Is MacAddr a fixed or variable length OID?

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/net-snmp.../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?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0