5.7.2.pre2 released

2012-07-11 Thread Wes Hardaker
Net-SNMP 5.7.2.pre2 has been released and is available from: http://www.net-snmp.org/download/ Please report positive and negative findings, and most importantly: supply patches to fix any problems :-) -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net -

Re: Bug in debugging code debugmsg_hex snmp_debug.c

2012-07-11 Thread Wes Hardaker
David Ecker writes: > Void debugmsg_hex(const char *token, const u_char * thedata, size_t len) ... > Caling debugmsg with an character string longer than LOGLENGTH==1024 > will result in the above error message. The error message is printed > in "int snmp_vlog(int priority, const char *format, va

Re: AgentX table requests very slow.

2012-07-11 Thread Wes Hardaker
"Scales, Neil" writes: > How can I speed it up? You'd have to tell us how you implemented your MIB and with which type of API style you picked. In short, some of the easiest APIs to use are unfortunately slow (they were designed to get someone up and running, not to be efficient). But you have

Re: NET-SNMP Subagent's own code to fill MIB data to answer SNMP Manager

2012-07-11 Thread Wes Hardaker
kidkoala writes: > My problem is to find appropriate function which allows to handle my > movements. I mean, how to replace agent_check_and_process() function > with my functions, which will depend of OID. You should read the tutorials on creating subagents on the wiki, which talks about how to

Re: Option to change the output format of the command line tools

2012-07-11 Thread Wes Hardaker
Andreas Köster writes: > -Op PRECISION_STRING > which allows to change the default behavior and inserts this precision > string into the sprintfs used for output. ... > Another idea is to define a corresponding snmp.conf item. I think both options should be done and that sounds like a great ide

Re: Tables and Indexes

2012-07-11 Thread Wes Hardaker
Harvey Shepherd writes: > I think that it is valid to use an external table's non-auxiliary > object as an index, but could find no concrete examples of it. It is and your interpretation is correct. In fact, I think it's the RMON mib that has exactly this case: two tables that reverse index the

Re: Dynamic trap address

2012-07-11 Thread Wes Hardaker
"Scales, Neil" writes: > Is there any way to dynamically change the trap destination address? You can set destinations dynamically using the SNMP-NOTIFICATION-MIB and SNMP-TARGET-MIB. But you can't change one that was defined in a snmp.conf file (the row will be read-only), you must do the enti

Dynamic trap address

2012-07-11 Thread Scales, Neil
Is there any way to dynamically change the trap destination address? I'm using net-snmp in an embedded system. My application communicates with snmpd via AgentX. When the device powers up, it determines its own IP address (not via DHCP) and can then derive the address of the trap destination.

Re: CFV: fix bug 3532090 and high-index crashes in hrDeviceDescr

2012-07-11 Thread Bill Fenner
On Tue, Jul 3, 2012 at 4:48 PM, Niels Baggesen wrote: > Den 02-07-2012 20:22, Bill Fenner skrev: > > >> A related question: isn't it safer to pretend to the compatibility >> functions that a given interface with ifIndex > 16 bits (or 15 bits) >> doesn't exist, rather than returning a potentially-a