Re: hrprocessorload-returns-incorrect-values-for-processor-s-100
Den 13-01-2014 08:25, Jianhai Luan skrev: Hi Niels, The patch is being verified in customer's environment, and the customer don't update the issue until now. So sorry for more time to wait the result. As this seems OK for a one or two digit cpu numbers, I have applied it to the active branches, and conside this problem closed. /Nies -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
5.7.2 and 5.7.3.pre1 won't compile on Solaris 10 or 11 on SPARC
Using GSWgcc4core and GSWgmake. ./configure --with-mib-modules=ucd-snmp/lmSensors ucd-snmp/diskio smux mibII/mta_sendmail --with-cc=gcc make barfs on libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibII/icmp.c -fPIC -DPIC -o mibII/.libs/icmp.o mibII/icmp.c: In function 'solaris_read_icmp6_stat': mibII/icmp.c:1510:12: error: 'icmp6stat' undeclared (first use in this function) *mib = icmp6stat; ^ mibII/icmp.c:1510:12: note: each undeclared identifier is reported only once for each function it appears in mibII/icmp.c: In function 'solaris_read_icmp6_msg_stat': mibII/icmp.c:1517:12: error: 'icmp6stat' undeclared (first use in this function) *mib = icmp6stat; ^ *** Error code 1 make: Fatal error: Command failed for target `mibII/icmp.lo' Current working directory /usr/local/src/net-snmp/net-snmp-5.7.3.pre1/agent/mibgroup *** Error code 1 The following command caused the error: if test helpers mibgroup != ; then \ it=helpers mibgroup ; \ for i in $it ; do \ echo making all in `pwd`/$i; \ ( cd $i ; make ) ; \ if test $? != 0 ; then \ exit 1 ; \ fi \ done \ fi make: Fatal error: Command failed for target `subdirs' Current working directory /usr/local/src/net-snmp/net-snmp-5.7.3.pre1/agent *** Error code 1 The following command caused the error: if test snmplib agent apps man local mibs != ; then \ it=snmplib agent apps man local mibs ; \ for i in $it ; do \ echo making all in `pwd`/$i; \ ( cd $i ; make ) ; \ if test $? != 0 ; then \ exit 1 ; \ fi \ done \ fi make: Fatal error: Command failed for target `subdirs' -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: 5.7.2 and 5.7.3.pre1 won't compile on Solaris 10 or 11 on SPARC
Den 27-01-2014 21:30, Bruce Shaw skrev: Using GSWgcc4core and GSWgmake. ./configure --with-mib-modules=ucd-snmp/lmSensors ucd-snmp/diskio smux mibII/mta_sendmail --with-cc=gcc make barfs on libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -fno-strict-aliasing -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c mibII/icmp.c -fPIC -DPIC -o mibII/.libs/icmp.o mibII/icmp.c: In function 'solaris_read_icmp6_stat': mibII/icmp.c:1510:12: error: 'icmp6stat' undeclared (first use in this function) I have just fixed this in the 5-7-patches branch. You can also --enable-ipv6 to make it compile. /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: Creating inetCidrRouteTable row entries
Den 21-01-2014 16:32, Daniel Tingstrom skrev: I couldn't find an existing function to convert a prefix length to a netmask, so I just wrote my own. Net SNMP version is 5.7.2. Here is the patch: Thanks for finding this! --- route_ioctl.c.old 2012-10-09 18:28:58.0 -0400 +++ route_ioctl.c 2014-01-21 10:30:32.239381288 -0500 @@ -114,7 +114,7 @@ DEBUGMSGTL((access:route,via %s\n, DEBUGSTR)); mask.sin_family = AF_INET; -mask.sin_addr.s_addr = htonl(0); +mask.sin_addr.s_addr = entry-rt_pfx_len ? htonl((( ((uint32_t)1) (32-entry-rt_pfx_len)) - 1) ^ 0xU) : 0; DEBUGSTR = inet_ntoa(mask.sin_addr); DEBUGMSGTL((access:route,mask %s\n, DEBUGSTR)); Thanks for the patch. I did create a function for converting prefix to mask, and it should be fixed the the next 5.7.3.pre release. /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
RE: Creating inetCidrRouteTable row entries
and it should be fixed the the next 5.7.3.pre release. That's great. I also found the same netmask problem in the route deletion method (_netsnmp_ioctl_route_delete_v4) which is in the same source file (route_ioctl.c). However, route deletion only works after a restart of snmpd, and crashes snmpd if a route was previously added during the same runtime instance. I think this issue lies with route caching, but I have not looked much into it. Regards, Daniel -Original Message- From: Niels Baggesen [mailto:n...@users.sourceforge.net] Sent: Monday, January 27, 2014 4:29 PM To: Daniel Tingstrom; net-snmp-coders@lists.sourceforge.net Subject: Re: Creating inetCidrRouteTable row entries Den 21-01-2014 16:32, Daniel Tingstrom skrev: I couldn't find an existing function to convert a prefix length to a netmask, so I just wrote my own. Net SNMP version is 5.7.2. Here is the patch: Thanks for finding this! --- route_ioctl.c.old 2012-10-09 18:28:58.0 -0400 +++ route_ioctl.c 2014-01-21 10:30:32.239381288 -0500 @@ -114,7 +114,7 @@ DEBUGMSGTL((access:route,via %s\n, DEBUGSTR)); mask.sin_family = AF_INET; -mask.sin_addr.s_addr = htonl(0); +mask.sin_addr.s_addr = entry-rt_pfx_len ? htonl((( ((uint32_t)1) + (32-entry-rt_pfx_len)) - 1) ^ 0xU) : 0; DEBUGSTR = inet_ntoa(mask.sin_addr); DEBUGMSGTL((access:route,mask %s\n, DEBUGSTR)); Thanks for the patch. I did create a function for converting prefix to mask, and it should be fixed the the next 5.7.3.pre release. /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming smime.p7s Description: S/MIME cryptographic signature -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders