Hi,

Thanks a lot for your reply.

Basically my issue is as follows:

To our product which uses net-snmp, we have provided few CLIs for
configuring SNMP agent. We would be providing only the agent support to
the product but not the SNMP manager support.

Being agent we do not much require the actual parsing of MIBs. But only
one CLI for configuring view need to be friendly enough to take table
names instead of actual OIDs. For example it should take system, etc. I
guess the API read_config_read_objid() is meant for this purpose and is
dependent on prior MIB parsing and constructs tree when agent
initialises.

But the problem here would be at the time of making agent image. This
would mandate that along with the image all MIBs have to be shipped. If
there is any intermediate file that can get compiled during compile time
itself, only this file could have been shipped along with the image. 

It would be of great help if you can suggest about this. 

Thanks,
Anu.


-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 21, 2005 8:07 PM
To: Anuradha Bhakta
Cc: [email protected]
Subject: Re: Implementation details about snmptranslate.


On Tue, 2005-06-21 at 15:34, Anuradha Bhakta wrote:
> I would like to know the internal implementiaon details of 
> snmptranslate. Does this tool read all the MIB files that are are 
> present every time this command is triggered

It reads and parses all the MIBs that are configured to be loaded, yes.
If the MIBS environmental variable is set to "all" (or one of the
equivalent mechanisms) then this will be all MIB files. 


>                                       or does it depend on any 
> intermediate file which would have been compiled of all MIB files.

There's a file '.index' in each MIB directory, that holds a mapping from
the MIB files to MIB module names.  This is regenerated if the library
detects that it's out of date.

That's the only intermediate file we use - there's no "internal
representation" of pre-parsed MIBs.

Dave



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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

Reply via email to