On 2 August 2012 16:03, Jérôme BELLEGARDE
<j.bellega...@alpha-direct-services.com> wrote:
> ./configure --with-default-snmp-version="2" --with-sys-contact="@@no.where" 
> --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" 
> --with-persistent-directory="/var/net-snmp" 
> --with-mibs="SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:IP-FORWARD-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEND-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB:ADSP-MIB"
>  --with-mib-modules="adspFAFtp adspFASql adspFAConnexionFtp 
> adspFAFichierPresent adspFARecupFichier adspFAPresenceFacture adspBAYFtp 
> adspBAYSql adspBAYConnexionFtp adspBAYFichierPresent adspBAYRecupFichier 
> adspBAYPresenceFacture SupervisionTSEClient"
>
> By adding all the things, my MIB and my module from my mib
>
> Is there is a better solution to get this work :) ?

Yes

Dave

   Oh - you want to know what it is?   :-)
Create a file   'agent/mibgroup/adsp.h'  containing the following:

     config_require( adspFAFtp )
     config_require( adspFASql )
        :
     config_require( adspBAYPresenceFacture )
     config_add_mib(  ADSP-MIB )

and then run

     ./configure  --with-default-snmp-version="2"  --with-defaults
--with-mib-modules=adsp

and that should pull in the other modules codes automatically ('config_require')
as well as adding the relevant MIB file(s) to the default list.

Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to