Re: How does the UCD-SNMP agent knows there is a new MIB available?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 02/02/07, Shuaib Siddiqui <[email protected]> wrote:
> i) When we extend the UCD-SNMP agent and write our MIB module, how does it
>    know that there is another MIB available, other than the standard one?
> ii) Is compiling the UCD-SNMP agent with the new MIB does the job? How does
>    the new MIB gets initialized, I mean who triggers the initialization of the
>    new MIB?

Please see the FAQ entry
     How do I add a MIB to the agent?
          http://www.net-snmp.org/wiki/index.php/FAQ:Agent_06

and the various other entries which it references.
Although this is aimed at the Net-SNMP software, the basic
mechanisms have (mostly) been carried over from the earlier
UCD code.  If you ignore anything that talks about "helpers"
or "mib2c config files", then most of the rest should still be relevant.


> iii) Which file has the definition of "oid" structure, required for
>    declaring the location of MIB registeration?

That's in one of the standard UCD header files.
If you're using the same include block as the example
MIB modules from the UCD source, then this should be
available to you automatically.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.