On Tue, 2005-10-18 at 15:33 +0530, Sumalatha_Nadella wrote:
>   Can anybody help me out in registering the .c file generated
>  by the mib module with the snmp agent.

Put the C file (and accompanying header file) into the source
tree somewhere under 'agent/mibgroup', and run "configure" with
the option '--with-mib-modules'

For example:

        $ cd net-snmp-source
        $ cp ~/myMIB/myMIB.[ch] agent/mibgroup/
        $ configure --with-mib-modules=myMIB
        $ make
        $ sudo make install

If you copied the MIB module files into a subdirectory
of 'mibgroup':
        $ cp ~/myMIB/redMIB.[ch]  agent/mibgroup/rainbow/

then this would be reflected in the "configure" line:
        $ configure --with-mib-modules=rainbow/redMIB


If you've got more than one MIB to add:
        $ cp ~/myMIB/yellowMIB.[ch]  agent/mibgroup/rainbow/
        $ cp ~/myMIB/pinkMIB.[ch]    agent/mibgroup/rainbow/

then list them all in the "configure" line:
        $ configure --with-mib-modules="rainbow/redMIB
                             rainbow/yellowMIB rainbow/pinkMIB"

HTH

Dave



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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
  • Re: Hi Dave Shield
    • Hi Sumalatha_Nadella

Reply via email to