Re: API function to extract integer from netsnmp_request_info ?

2011-01-11 Thread Abraham Varricatt
> > > Is there any function in net-snmp that will let me extract the integer > data > > value that comes with a SET operation out of this structure? > > requests->requestvb is the varbind structure (of type > netsnmp_variable_list) > so the value is held in the (union) structure requests->request

Re: SVN trunk multi-platform build errors

2011-01-11 Thread Robert Story
On Tue, 11 Jan 2011 09:18:51 +0100 Magnus wrote: MF> On Mon, 2011-01-10 at 23:41 +0100, Thomas Anders wrote: MF> > ../include/net-snmp/library/snmp_transport.h:61: error: field `sin6' has incomplete type MF> MF> That looks like missing checks for NETSNMP_ENABLE_IPV6. yep... fixed..

Re: SVN trunk multi-platform build errors

2011-01-11 Thread Dave Shield
On 11 January 2011 07:23, Niels Baggesen wrote: > after Dave's mighty BSD job FreeBSD still compiles, > NetBSD and OpenBSD still doesn't. > > But until further I will leave to him to complete it OK - I've now applied all of the patches where I feel that I understand what they are doing. Ni

Re: API function to extract integer from netsnmp_request_info ?

2011-01-11 Thread Dave Shield
On 11 January 2011 15:52, Abraham Varricatt wrote: > there is a function called "snmp_set_var_typed_value()".. I've > figured out that we essentially pass the result of a GET operation into this > function, so the snmpd agent will report it back. Correct. The purpose of this routine is esse

API function to extract integer from netsnmp_request_info ?

2011-01-11 Thread Abraham Varricatt
I'm playing around with mib2c and am a bit confused with SET commands. I've run this (part of net-snmp examples MIB), mib2c -c mib2c.scalar.conf netSnmpExampleInteger And in the generated code there is a function called "snmp_set_var_typed_value()". From experimentation (and code study), I've fig

RE: My Subagent is not working after some long time

2011-01-11 Thread Prakash
Thanks All, But what are the cases to cause this situation. I haven’t started snmpd/subagent when already they are running. Regards, Prakash Raju -Original Message- From: Bill Fenner [mailto:[email protected]] Sent: Sunday, January 09, 2011 4:49 AM To: PrakashRaju Meka Cc: Wes Hardake

Re: Net-snmp 5.6 uses the wrong interface on a multi-homed box with asymmetric routing

2011-01-11 Thread Jan Safranek
On 12/22/2010 03:42 AM, Bill Fenner wrote: On Wed, Dec 15, 2010 at 4:28 AM, Jan Safranek wrote: On 12/13/2010 11:21 PM, Robert Story wrote: On Mon, 13 Dec 2010 11:16:54 -0500 Bill wrote: BF>I'm not sure what to suggest as a solution. For those who use BF>net-snmp as the agent on a ro

Re: snmpd footprint just under 2MB !! - is this usual?

2011-01-11 Thread Niels Baggesen
On Mon, Jan 10, 2011 at 03:03:28PM +0530, Abraham Varricatt wrote: > The first time, it produced some error about not recognizing the file > format. Took me a while to realize that I was running my host-system's > "strip" utility and not my target's one. With that correction, I've reduced > the foo

Re: snmpd footprint just under 2MB !! - is this usual?

2011-01-11 Thread Abraham Varricatt
> > I'm working on code minimization right now that should help reduce it > even further. The 5.7 release will support even more configure flags to > help you remove extra features that aren't needed. We're close to > moving in the new work into the SVN trunk, but right there it's not yet > prese

Re: SVN trunk multi-platform build errors

2011-01-11 Thread Magnus Fromreide
On Mon, 2011-01-10 at 23:41 +0100, Thomas Anders wrote: > Also, building trunk on HP-UX 11.00 currently fails with: > > - --- snip --- > making all in /my/build/5.7svn/hpux/snmplib > gmake[1]: Entering directory `/my/build/5.7svn/hpux/snmplib' > /bin/sh ../libtool --mode=compile /opt/fsw/gcc343/