Sergiy Michka | 11 May 09:35 2015
Picon

building net-snmp with vc++ 2008 error (new definition of socklen_t)

Hey,

I've build net-snmp 5.7.3 under win7 and cygwin and now trying to build a sample with VC++ 2008, but getting this error:

1>c:\usr\include\net-snmp\types.h(81) : error C2371: 'socklen_t': Neudefinition; unterschiedliche Basistypen
1>        c:\program files\microsoft sdks\windows\v6.0a\include\ws2tcpip.h(502): Siehe Deklaration von 'socklen_t'

Which means:
* New definition; different base types
* See declaration of "socklen_t"

My sample has only 2 net-snmp includes:
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>

and a reference to netsnmp_session struct and does nothing beyond that.

Thanks,
Sergiy
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Afshin Paydar | 16 May 08:18 2015
Picon

Snmp proxy & cache solution

I'm looking for software which will act as a SNMP proxy/cache to minimize CPU loads on routers from the many SNMP polling devices on our network. So far I've been unable to find much on this. I'm hoping someone here may know of something that can do this.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Martin T | 12 May 17:45 2015
Picon

find SNMP ifIndex value if hostname and SNMP ifDescr are known

Hi,

Is there a clever method to find out the SNMP ifIndex value if I know
the hostname of the network device and ifDescr for this particular
interface? At the moment I do it like this:

snmpwalk -v 2c -c public router ifDescr | grep -E
"GigabitEthernet5/26$" | gsed -r "s/IF-MIB::ifDescr.([0-9]+) .*/\1/"

"router" is the hostname and "GigabitEthernet5/26" is the ifDescr.
"gsed -r "s/IF-MIB::ifDescr.([0-9]+) .*/\1/"" part is to make sure
that I get the ifIndex of the physical interface and not the
sub-interface like "GigabitEthernet5/26.123".

thanks,
Martin

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dixon Xavier | 11 May 17:57 2015
Picon

net-snmp-5.7.3 snmptrapd issues in hpux

Hi,

I successfully compiled net-snmp-5.7.3 for HP-UX ia64.
configure script was:
'--with-default-snmp-version=3' '--enable-ipv6'
'--with-logfile=/var/tmp' '--with-persistent-directory=/var/tmp'
'--with-perl-modules=no' '--enable-embedded-perl=no'
'--with-openssl=/home/dixon/HPUX11.23_IPF64/release'
'--enable-static=yes' '--enable-shared=no'
'--prefix=/home/dixon/buildoutput_hpuxia64' 'CC=cc +DD64'
'CFLAGS=+DD64'

But i am not able to get snmptrapd working.

snmptrapd is not processing traps at all.

I suspect the fd_set returned by snmp_select_info is corrupted somehow:

I added further debug lines in apps/snmptrapd.c

 <at>  <at>  -587,7 +587,17  <at>  <at> 
         tvp = &timeout;
         timerclear(tvp);
         tvp->tv_sec = 5;
+
+        DEBUGMSGTL(("snmptrapd:", "before snmp_select_info
numfds=%d", numfds));
         snmp_select_info(&numfds, &readfds, tvp, &block);
+        DEBUGMSGTL(("snmptrapd:", "after snmp_select_info numfds=%d", numfds));
+       for(int i=0;i<FD_SETSIZE;i++)
+       {
+               if (FD_ISSET(i, &readfds))
+                       DEBUGMSGTL(("snmptrapd:", "fd %d is set", i));
+       }
+
+
         if (block == 1)
             tvp = NULL;         /* block without timeout */
 #ifndef NETSNMP_FEATURE_REMOVE_FD_EVENT_MANAGER

When i run snmptrapd as:
./snmptrapd -f -D all -Lo

...
snmptrapd:: before snmp_select_info numfds=0trace:
snmp_sess_select_info2_flags(): snmp_api.c, 6046:
sess_select: for all sessions: 7 5 3
sess_select: next alarm at 1431378290.330218 sec
verbose:sess_select: timer due in 4.359099 sec
verbose:sess_select: setting timer to 4.359099 sec, clear block (was 0)
trace: snmptrapd_main_loop(): snmptrapd.c, 593:
snmptrapd:: after snmp_select_info numfds=8trace:
snmptrapd_main_loop(): snmptrapd.c, 597:
snmptrapd:: fd 35 is settrace: snmptrapd_main_loop(): snmptrapd.c, 597:
snmptrapd:: fd 37 is settrace: snmptrapd_main_loop(): snmptrapd.c, 597:
...

Note:
sess_select: for all sessions: 7 5 3

snmptrapd:: fd 35 is set
snmptrapd:: fd 37 is set

Also lsof shows:
# lsof -i :162
COMMAND    PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
snmptrapd 3893 root    7u  IPv4 0xe0000001be315380      0t0  UDP
*:snmp-trap (Idle)

Therefore, at select, it waits for wrong fds and ended up not
receiving any traps ?

Thanks in advance..

Regards,
Dixon Xavier

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Erik Steggall | 8 May 02:40 2015
Picon

Can't add MIB to tools

I've created a custom MIB and I'm able to add the MIB to the agent (get and set values work) but I'm unable to add the MIB so that the tools recognize the names of my OIDs. Do I need to add anything to the .c/.h files in order to get the naming to work correctly?

More Info:

# This call fails and IDK why
> snmptranslate -m +PEAXY-SNMP-MIB -IR -Of pxeSnmpMib
Unknown object identifier: pxeSnmpMib

# OIDs are definitely there...
> snmpwalk localhost .1.3.6.1.4.1.45190
SNMPv2-SMI::enterprises.45190.1.1.1.0 = INTEGER: 42
SNMPv2-SMI::enterprises.45190.1.1.2.0 = STRING: "Peaxy Inc"

# Adding -m doesn't seem to help
> snmpwalk -m +PEAXY-SNMP-MIB localhost .1.3.6.1.4.1.45190
SNMPv2-SMI::enterprises.45190.1.1.1.0 = INTEGER: 42
SNMPv2-SMI::enterprises.45190.1.1.2.0 = STRING: "Peaxy Inc"

# Can't use names
> snmpwalk -m +PEAXY-SNMP-MIB localhost PEAXY-SNMP-MIB::pxeSnmpMib
PEAXY-SNMP-MIB::pxeSnmpMib: Unknown Object Identifier

# My mibdirs
> net-snmp-config --default-mibdirs
/root/.snmp/mibs:/usr/local/share/snmp/mibs

> ls ~/.snmp/mibs/ | grep PEAXY
PEAXY-SNMP-MIB.txt

> ls /usr/local/share/snmp/mibs/ | grep PEAXY
PEAXY-SNMP-MIB.txt


#### Start MIB ####
PEAXY-SNMP-MIB DEFINITIONS ::= BEGIN

-- Peaxy Inc.
-- Author: Erik Q. Steggall

--
-- IMPORTS: Include definitions from other mibs here
--
IMPORTS
        netSnmpExamples                         FROM NET-SNMP-EXAMPLES-MIB
        OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY,
        Integer32, Opaque, enterprises, Counter32, Unsigned32
                                                FROM SNMPv2-SMI
        MODULE-COMPLIANCE, OBJECT-GROUP         FROM SNMPv2-CONF

--
-- A brief description and update info about this mib
--

pxeSnmpMib MODULE-IDENTITY
        LAST-UPDATED "201505050000Z"
        ORGANIZATION "Peaxy Inc"
        CONTACT-INFO "Postal:   Erik Steggall
                                2380 Bering Dr,
                                San Jose, CA, 95131
                      email:    esteggall <at> peaxy.net
                      "
        DESCRIPTION "An MIB for Peaxy Inc."
        ::= { enterprises 45190 }

--
-- Define typical mib nodes
--
 pxeMIBObjects  OBJECT IDENTIFIER ::= { pxeSnmpMib 1 }
 pxeMIBConformance      OBJECT IDENTIFIER ::= { pxeSnmpMib 2 }

--
-- define objects
--

pxeAgentModules         OBJECT IDENTIFIER ::= { pxeMIBObjects 1 }

pxeAgentModuleObject OBJECT-TYPE
        SYNTAX  Integer32
        MAX-ACCESS read-write
        STATUS  current
        DESCRIPTION
                "This is an int to test snmp for PEAXY"
        DEFVAL { 1 }
        ::= { pxeAgentModules 1 }

pxeAgentTestString OBJECT-TYPE
        SYNTAX          OCTET STRING
        MAX-ACCESS      read-write
        STATUS          current
        DESCRIPTION
            "This is a demo string, should hold PEAXY"
        DEFVAL { 2 }
        ::= { pxeMIBObjects 2 }

END
#### End MIB ####

best,

- Erik S.
(530)400-6194
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Faster Bits | 5 May 16:43 2015
Picon

Perl SNMP module and weird little 'set' issue

I could use some help understanding what's happening (or if I'm doing something wrong): I'm using the perl SNMP module to read/set a specific Cisco OID that is read/create having integer as value.

I can set the OID using command line (to know it works):

snmpset -v 1 -c derp 172.30.10.254 ciscoMgmt.46.1.6.1.1.13.10118 i 1    
.1.3.6.1.4.1.9.9.46.1.6.1.1.13.10118 = INTEGER: 1

'10118' is an ifIndex -- pretty straightforward. When I try to do the same from within a perl script, I get a 'wrongType' error. Below is the code sample, first reading the value and (re)setting the same.


#!/usr/bin/perl

use SNMP;

my $host = shift || 'localhost';
my $community = shift || 'private';

my $sess = new SNMP::Session (DestHost => $host,
       Community => $community,
       Version => 2,
       UseNumeric => 1,
       UseSprintValue => 1,
       UseEnums => 1,
       UseLongNames => 1,
       Debugging => 2,
       Retries => 2);

my $oid = ".1.3.6.1.4.1.9.9.46.1.6.1.1.13";
my $IF = 10118;

my $var = $sess->get([$oid,$IF]);
print "$var\n" ;
sleep 1 ;

$sess->set([$oid,10118,$var,'INTEGER']) ;
print $sess->{ErrorNum} . ' ' . $sess->{ErrorStr} . "\n" ;

exit ;


The output is '1' (per the read), and '7 wrongType (The set datatype does not match the data type the agent expects)'

I've tried several syntax variations yet, for something so simple, it doesn't work. As an aside, I created a 'Net::SNMP' equivalent to the script and it worked perfectly fine -- I'm rather confounded as to why this one doesn't. The module version is 5.05, that it relatively new (and I couldn't find any references to this being buggy.)

I feel like I'm missing something obvious, but given the amount of time I've put into trying to understand it...







------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Anjali.Arora | 4 May 13:54 2015

Not able to configure NET-SNMP 5.7.1 to generate .so files

Hi Sir/Madam,

 

I am not able to generate NET-SNMP shared libraries. Please let me know the ./configure options of SNMP 5.7.1 to generate .sp library.

 

I am using below configure options to generate shared library:

 

./configure --prefix=/usr --build=i486-build_pc-linux-gnu --host=arm-unknown-linux-gnueabi --target=arm-unknown-linux-gnueabi --with-ar=/opt/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ar --with-cc=/opt/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc --with-ld=/opt/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld --with-cflags="-O3" --with-endianness=big --with-ldflags=-shared --enable-mini-agent --with-mib-modules="mibII ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib snmpv3mibs notification" --without-openssl --without-perl-modules --disable-embedded-perl --disable-shared --with-default-snmp-version="2" --with-sys-contact="root" --with-sys-location="unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --disable-manuals

 

 

Thanks,

Anjali

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Kamal.Joshi | 4 May 11:17 2015

snmp mibs compilation process

Hi all,

 

We are referring data_set.c file

http://www.net-snmp.org/dev/agent/data_set_8c-example.html

 

We have tried couple of options as mentioned in your website.

We are trying to run snmpwalk command but we are not getting any output.

 

·         snmpwalk localhost netSnmpIETFWGTable

For this command,we are getting error as unknown object identifier.

We are not getting tabular data as per mentioned in site.

 

Could you please let us know how to execute this file for net-snmp 5.7.1 version?

In terms of directory organization( which files are necessary for execution)

 

·         We have generated ifTable.c and ifTable.h but we are failed to compile this code. Could you please explain us how to compile this?

 

 

Thanks and Regards,

Kamal Joshi

 

 

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Erik Steggall | 1 May 22:13 2015
Picon

snmpd start/stop

Hi all,

I'm having trouble adding snmpd to the services.

I've cloned and make/make installed from the master branch of the sourceforge re
> git clone git://git.code.sf.net/p/net-snmp/code snmp

I initially tried running sudo service snmpd start, which returns nothing:
> sudo service snmpd start
snmpd: unrecognized service

I've tried running chkconfig --add snmpd but I get:
> chkconfig --add snmpd
error reading information on service snmpd: No such file or directory

I copied over the script from /etc/rc.d/init.d/snmpd to /etc/init.d/snmpd and chkconfig was able to add snmpd successfully, however when I run the service command it doesn't seem to do anything:
> service snmpd start
> ps aux | grep snmpd
root      8616  0.0  0.0 103252   860 pts/16   S+   13:05   0:00 grep snmpd

Is there something I'm missing?
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Doughty, Daniel | 1 May 19:56 2015

Difficulty statically compiling netsnmp-5.7.3 for Solaris10 system with old version of libc

Hi,

 

We have some old Solaris systems that we need to monitor until we can virtualize them in a few months.  I can’t install the opencsw version of netsnmp due to us being below update8 on Solaris8.  So I’ve been trying to compile a static version of netsnmp on a dev box so I can copy the binaries over.  Unfortunately I can’t seem to get the flags right.  The wiki indicates that all is needed is the –Bstatic flag on configure.

 

During my attempts to troubleshoot I’ve tried to not use the Solaris binaries of make, ar or gcc via path and environment settings:

 

bash-3.00# echo $AR

gar

bash-3.00# echo $MAKE

gmake

bash-3.00# echo $PATH

/usr/bin:/opt/csw/bin:/usr/sbin:/usr/local/bin

bash-3.00#

bash-3.00# uname -a

SunOS p001solmgmt01 5.10 Generic_142909-17 sun4v sparc SUNW,T5140

 

I think we have issues right off the bat as my ./configure states that the gcc –static flag won’t work and that it can’t strip libraries.  I’ve also tried with –enable-static –disable-shared but didn’t get different end results.  Although at that point the “build shared libraries” output does change to no.

 

bash-3.00# ./configure --with-ldflags=-Bstatic --with-sys-contact="blah <at> blah.com" --with-sys-location="Earth" --with-logfile="/v

ar/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-default-snmp-version="2"

 

checking whether stripping libraries is possible... no

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

 

I did go all the way through the make;make test;make install steps.  The make succeeds and the test passes at 98%.  The make install creates a snmpd that is dynamically linked and not stripped.

 

Do you have any ideas on what I’m doing wrong?

 

Full ./configure output(somewhat truncated to avoid message moderation by listserv software):

 

using default persistent mask 077

using default temporary file pattern /tmp/snmpdXXXXXX

using default AgentX socket /var/agentx/master

using default "enterprise.net-snmp"

using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."

using default notifications "NET-SNMP-MIB::netSnmpNotifications"

using OS default send buffer size for server sockets

using OS default recv buffer size for server sockets

using OS default send buffer size for client sockets

using OS default recv buffer size for client sockets

checking Default version of SNMP to use... (cached) 2

checking System Contact Information... (cached) blah <at> blah.com

checking System Location... (cached) Earth

checking Location to write logfile... (cached) /var/log/snmpd.log

checking Location to write persistent information... (cached) /var/net-snmp

checking if I need to feed myself to ksh... no

checking for grep that handles long lines and -e... /opt/csw/bin/ggrep

checking for egrep... /opt/csw/bin/ggrep -E

checking for grep that handles long lines and -e... (cached) /opt/csw/bin/ggrep

checking for a BSD-compatible install... /opt/csw/bin/ginstall -c

checking whether ln -s works... yes

checking whether gmake sets $(MAKE)... yes

checking for a sed that does not truncate output... /opt/csw/bin/gsed

checking for file... file

checking for find... find

checking for whoami... no

checking for logname... logname

checking for autoconf... no

checking for autoheader... no

checking for perl... /usr/bin/perl

checking for ps... /usr/bin/ps

checking for python... /usr/bin/python

checking for uname... /usr/bin/uname

checking whether the Perl function system() invokes a POSIX shell... yes

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking for an ANSI C-conforming const... yes

checking for inline... inline

checking build system type... sparc-sun-solaris2.10

checking host system type... sparc-sun-solaris2.10

checking how to print strings... printf

checking for a sed that does not truncate output... (cached) /opt/csw/bin/gsed

checking for fgrep... /opt/csw/bin/ggrep -F

checking for ld used by gcc... /usr/ccs/bin/ld

checking if the linker (/usr/ccs/bin/ld) is GNU ld... no

checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p

checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm

checking the maximum length of command line arguments... 786240

checking whether the shell understands some XSI constructs... yes

checking whether the shell understands "+="... no

checking how to convert sparc-sun-solaris2.10 file names to sparc-sun-solaris2.10 format... func_convert_file_noop

checking how to convert sparc-sun-solaris2.10 file names to toolchain format... func_convert_file_noop

checking for /usr/ccs/bin/ld option to reload object files... -r

checking for objdump... no

checking how to recognize dependent libraries... pass_all

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for archiver <at> FILE support... <at>

checking for strip... no

checking for ranlib... no

checking for gawk... no

checking for mawk... no

checking for nawk... nawk

checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok

checking for sysroot... no

checking for mt... mt

checking if mt is a manifest tool... no

checking for dlfcn.h... yes

checking for objdir... .libs

checking if gcc supports -fno-rtti -fno-exceptions... no

checking for gcc option to produce PIC...

-fPIC -DPIC

checking if gcc PIC flag -fPIC -DPIC works... yes

checking if gcc static flag -static works... no

checking if gcc supports -c -o file.o... yes

checking if gcc supports -c -o file.o... (cached) yes

checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... solaris2.10 ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... no

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

checking for developer gcc flags...

checking target system type... sparc-sun-solaris2.10

checking whether to un-define target system token (before redefining)... yes

checking for system include file... net-snmp/system/solaris.h

checking for machine-type include file... net-snmp/machine/generic.h

checking for additional cpp flags... -x c

checking for gcc... /opt/csw/bin/gcc

checking whether the compiler supports -fno-strict-aliasing... yes

checking for dpkg-query... no

checking for ANSI C header files... (cached) yes

checking for dirent.h that defines DIR... yes

checking for library containing opendir... none required

checking for sys/wait.h that is POSIX.1 compatible... yes

checking getopt.h usability... yes

checking getopt.h presence... yes

checking for getopt.h... yes

checking pthread.h usability... yes

checking pthread.h presence... yes

…   [ truncating so that message stays below 100KB and avoids moderation ]

checking for kvm_openfiles... no

checking for kvm_getprocs... no

checking for kvm_getproc2... no

checking for kvm_getswapinfo... no

checking for library containing dlopen... none required

checking for dlopen... yes

checking for and configuring mib modules to use... default_modules.

default_modules snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedu

le utilities host snmpv3/snmpMPDStats_5_5 snmpv3/usmStats_5_5 snmpv3/snmpEngine snmpv3/usmConf snmpv3/usmUser mibII/snmp_mib_5_5

mibII/system_mib mibII/sysORTable mibII/vacm_vars mibII/setSerialNo mibII/at mibII/ifTable mibII/ip mibII/tcp mibII/icmp mibII/

udp if-mib tcp-mib udp-mib ip-mib/ipSystemStatsTable ip-mib/ipAddressTable ip-forward-mib ucd-snmp/disk_hw ucd-snmp/proc ucd-snm

p/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/loadave agent/extend ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod u

cd-snmp/proxy ucd-snmp/logmatch ucd-snmp/memory ucd-snmp/vmstat notification/snmpNotifyTable snmp-notification-mib/snmpNotifyFil

terTable notification/snmpNotifyFilterProfileTable notification-log-mib/notification_log target/target_counters_5_5 target/snmpT

argetAddrEntry target/snmpTargetParamsEntry target/target agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCac

he agent/nsLogging agent/nsVacmAccessTable agentx/master agentx/subagent disman/event/mteScalars disman/event/mteTrigger disman/

event/mteTriggerTable disman/event/mteTriggerDeltaTable disman/event/mteTriggerExistenceTable disman/event/mteTriggerBooleanTabl

e disman/event/mteTriggerThresholdTable disman/event/mteTriggerConf disman/event/mteEvent disman/event/mteEventTable disman/even

t/mteEventSetTable disman/event/mteEventNotificationTable disman/event/mteEventConf disman/event/mteObjects disman/event/mteObje

ctsTable disman/event/mteObjectsConf disman/schedule/schedCore disman/schedule/schedConf disman/schedule/schedTable utilities/ov

erride utilities/execute utilities/iquery host/hrh_storage host/hrh_filesys host/hrSWInstalledTable host/hrSWRunTable host/hr_sy

stem host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition util_funcs/header_ge

neric mibII/updates util_funcs mibII/vacm_context mibII/vacm_conf kernel_sunos5 if-mib/ifTable mibII/ipAddr mibII/var_route mibI

I/route_write mibII/tcpTable mibII/udpTable if-mib/ifXTable tcp-mib/tcpConnectionTable tcp-mib/tcpListenerTable udp-mib/udpEndpo

intTable ip-mib/data_access/systemstats ip-mib/ipSystemStatsTable/ipSystemStatsTable ip-mib/ipSystemStatsTable/ipSystemStatsTabl

e_interface ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access ip-mib/ipAddressTable/ipAddressTable ip-forward-mib/ipCidrR

outeTable ip-forward-mib/inetCidrRouteTable util_funcs/header_simple_table hardware/fsys util_funcs/restart ucd-snmp/pass_common

hardware/memory hardware/cpu header_complex snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable agentx/protocol a

gentx/client agentx/master_admin agentx/agentx_config host/data_access/swinst host/data_access/swrun host/hrSWRunPerfTable if-mi

b/ifTable/ifTable if-mib/ifXTable/ifXTable tcp-mib/data_access/tcpConn tcp-mib/tcpConnectionTable/tcpConnectionTable tcp-mib/tcp

ListenerTable/tcpListenerTable udp-mib/udpEndpointTable/udpEndpointTable ip-mib/data_access/systemstats_common ip-mib/data_acces

s/systemstats_solaris2 if-mib/data_access/interface ip-mib/data_access/ipaddress ip-mib/ipAddressTable/ipAddressTable_interface

ip-mib/ipAddressTable/ipAddressTable_data_access ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable ip-forward-mib/inetCidrRouteTa

ble/inetCidrRouteTable hardware/fsys/hw_fsys hardware/fsys/fsys_mntent hardware/memory/hw_mem hardware/memory/memory_solaris har

dware/cpu/cpu hardware/cpu/cpu_kstat snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface snmp-notificati

on-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access host/data_access/swinst_pkginfo host/data_access/swrun_procfs_psi

nfo if-mib/ifTable/ifTable_interface if-mib/ifTable/ifTable_data_access if-mib/ifXTable/ifXTable_interface if-mib/ifXTable/ifXTa

ble_data_access tcp-mib/data_access/tcpConn_common tcp-mib/data_access/tcpConn_solaris2 tcp-mib/tcpConnectionTable/tcpConnection

Table_interface tcp-mib/tcpConnectionTable/tcpConnectionTable_data_access tcp-mib/tcpListenerTable/tcpListenerTable_interface tc

p-mib/tcpListenerTable/tcpListenerTable_data_access udp-mib/data_access/udp_endpoint udp-mib/udpEndpointTable/udpEndpointTable_i

nterface udp-mib/udpEndpointTable/udpEndpointTable_data_access if-mib/data_access/interface_solaris2 ip-mib/data_access/ipaddres

s_common ip-mib/data_access/ipaddress_solaris2 ip-forward-mib/data_access/route ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable

_interface ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_data_access ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_int

erface ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access udp-mib/data_access/udp_endpoint_common udp-mib/data_acc

ess/udp_endpoint_solaris2 ip-forward-mib/data_access/route_common ip-forward-mib/data_access/route_solaris

.

checking if directories need to be created... .

checking default mib files to read... :SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-E

VENT-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-EXTEN

D-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB

checking whether we have to build PIC code... yes

checking for nlist in -lelf... yes

checking for library containing socket... -lsocket

checking for library containing gethostbyname... -lnsl

checking for gethostbyname... yes

…   [ truncating so that message stays below 100KB and avoids moderation ]

checking inet/common.h usability... yes

checking inet/common.h presence... yes

checking for inet/common.h... yes

checking for inet/ip.h... yes

checking for mib2_ipRouteEntry_t in inet/mib2.h... yes

checking whether IRE_CACHE is defined in inet/ip.h... yes

checking for IP_PKTINFO ... no

checking for IP_RECVDSTADDR ... no

configure: creating ./config.status

config.status: creating Makefile

config.status: creating snmplib/Makefile

config.status: creating apps/Makefile

config.status: creating apps/snmpnetstat/Makefile

config.status: creating agent/Makefile

config.status: creating agent/helpers/Makefile

config.status: creating agent/mibgroup/Makefile

config.status: creating local/Makefile

config.status: creating testing/Makefile

config.status: creating man/Makefile

config.status: creating mibs/Makefile

config.status: creating net-snmp-config

config.status: creating net-snmp-create-v3-user

config.status: creating dist/generation-scripts/gen-variables

config.status: creating local/snmpconf

config.status: creating include/net-snmp/net-snmp-config.h

config.status: executing libtool commands

config.status: executing default commands

 

---------------------------------------------------------

            Net-SNMP configuration summary:

---------------------------------------------------------

 

  SNMP Versions Supported:    1 2c 3

  Building for:               solaris2

  Net-SNMP Version:           5.7.3

  Network transport support:  Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase

  SNMPv3 Security Modules:     usm

  Agent MIB code:            default_modules =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs a

gentx disman/event disman/schedule utilities host

  MYSQL Trap Logging:         unavailable

  Embedded Perl support:      disabled

  SNMP Perl modules:          disabled

  SNMP Python modules:        disabled

  Crypto support from:        internal

  Authentication support:     MD5 SHA1

  Encryption support:         DES AES

  Local DNSSEC validation:    disabled

 

---------------------------------------------------------

 

Thanks,

Dan

 

 

 

This communication (including any attachment(s)) is intended solely for the recipient(s) named above and may contain information that is confidential, privileged or legally protected. Any unauthorized use or dissemination of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication to include any copy that may reside in your sent box. Thank you for your cooperation.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Amit Tomer | 30 Apr 15:09 2015
Picon

How to compile new mib module from Yocto

Hi,

I need to cross compile a new mib module and for the same I'm using Yocto.

Now, I have gone through following link.

http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module

As per above link

Compile it into the master agent.

Copied the respected .c and .h files to agent/mibgroups folder .

But now when I run "bitbake net-snmp", don't find .o file with respect
to .c file copied to agent/mibgroup.

I tried modified "Makefile" but didn't get .o file.

Thanks
Amit.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Gmane