Re: mib2c -c mib2c.mfd.conf

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGaDu_yCnNvwCzwi3D2rzvDDs4CPE7v4jH2ANDOU3uT+Pw@mail.gmail.com>
On 3 November 2011 15:21, Simon Chamlian <[email protected]> wrote:
> What does mib2c do?

It produces _template_ code for implementing a MIB module.
You would take the generated code file, fill in the gaps, and
compile it into the SNMP agent (either a native agent for the
system you are developing on, or cross-compiled for some other
target system).

Once you've got the MIB module code file, mib2c is no longer
required.


> I can always install it on a host computer and run it. But eventually, I
> will need an application that returns values associated to my MIB OIDs.

Yes - no problem there.


> Is that done by modifying the SNMP agent daemon

It's typically done by adding new code files to the agent, yes.


> or I can have a different application interact with agent?

If you've got an AgentX-capable master agent, then you
can run a separate AgentX client, to implement a new MIB
module without touching the original agent.

There are also mechanisms for extending the agent by
using scripts - either SNMP-knowledgeable ("pass" or
perl extensions),  or SNMP-ignorant ("exec" or "extend")

See the FAQ entry "How do I extend the agent?" for more info

Dave

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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.