2009/4/13 sanjay kumar <[email protected]>:
>    As by default net-snmp (5.4.2.1) register the mib object by loading the
> mib from the directory "usr/share/local/snmp/mibs"

No - that is where the *client* tools would load a new MIB from.
See the FAQ entry
   http://www.net-snmp.org/wiki/index.php/FAQ:Applications_02


> To support this  , there is a macro "#ifndef NETSNMP_DISABLE_MIB_LOADING"
> If we disable the this option by enabling the this macro as "#define
> NETSNMP_DISABLE_MIB_LOADING"

That's typically used to provide a stripped-down library (e.g. for embedded
agents).   It would be activated using

   ./configure --disable-mib-loading



> Then how the mib registeration will be supported ?

The agent doesn't really use the MIB files at all.
The registration of a MIB module uses the code that was developed
to implement this module, and would typically include the numeric
OID hardcoded in.
   See the FAQ entry
      http://www.net-snmp.org/wiki/index.php/FAQ:Agent_05
(and the ones around it)

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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