Thanks for the response. I'll keep looking at the if-mib and see if I can figure it out or use mib2c to use a different template on it.
Actually I see so much information in Agent.txt and README.mib2c that I missed before I sent out this email and I would have surely had my wrist slapped at most other free-ware user groups. So I appreciate having escaped an Ouch(!) and thank for your courtesy and kindness. Regards, Kavita On 3/24/10 10:38 AM, "Dave Shield" <d.t.shi...@liverpool.ac.uk> wrote: > On 24 March 2010 13:58, Kavita Raghunathan > <kavita.raghunat...@skyfiber.com> wrote: >>>> For now, let me ask you: how do I use EtherLike-MIB.txt >>>> to generate .c and .h, even if they are only stubs ? >>> >>> Copy the MIB file into the appropriate directory, >>> and then run >>> >>> mib2c -c mib2c.{template}.conf EtherLike-MIB::dot3StatsTable >> >> Why must I specify a table? I want the whole MIB. > > So run "mib2c" once for each table. > If you compile the agent to include all of these modules, > then you will get the whole MIB. > > But it's sensible to tackle problems one step at a time. > Implement the simplest table first, then add on the others > in turn. > > Don't run before you can walk :-) > > >> Absolutely. I'm going to do that next. But there is a lot of proprietary >> MIBs we have and I'm trying to understand how hard it will be to code those >> to use net-snmp agent. Any input? > > The hardest thing about implementing most MIBs is obtaining the > underlying data that you wish to report. Turning this into SNMP > is relatively straightforward, which is why it can be automated ("mib2c") > > The main bit that can't be automated is getting hold of the data > in the first place. > > > >> I'm also having a real hard time trying to figure out how to get the if-mib >> (ifTable/ifXTable) to plug into our system. Basically I don't know what >> modules I need to modify to plug into our user code world from the net-snmp >> world so the ifInOctets etc can be correctly populated by polling the >> hardware device. > > I'll pass on the ifTable implementation. > That uses MfD which is not my pigeon. > > Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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/listinfo/net-snmp-users