Updating mibs/rfclist programmatically

2007-10-15 Thread Bill Fenner
For years, I've crawled over Internet-Drafts and RFCs to find things that look like MIB modules, to construct my set of pages at http://www.icir.org/fenner/mibs/ . It occurred to me, after seeing that some of the MIBs that Net-SNMP distributes are out of date, that this info could be relatively

Re: MSTP MIB?

2008-10-04 Thread Bill Fenner
On Mon, Sep 22, 2008 at 7:07 AM, Chris Nelson [EMAIL PROTECTED] wrote: Is there such a thing? I'm embarking on an 802.1Q-2005 implementation and can't find any MIB text. Surely MSTP can be monitored and administered via SNMP. Can't you use multiple logical entities implementing dot1dStp from

Re: Review Request: Don't splat /var/agentx/master when starting an extraneous snmpd

2009-04-02 Thread Bill Fenner
On Thu, Apr 2, 2009 at 2:24 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Thu, 02 Apr 2009 18:49:45 -, Bill Fenner (gmail) fen...@gmail.com said: BF --- BF This is an automatically generated e-mail. To reply, visit: BF

Implement IMPLIED in MIB hash

2009-04-02 Thread Bill Fenner
I have a mib2c-based project that needs to be able to know whether an INDEX is IMPLIED - this allows the decision to use ASN_PRIV_IMPLIED_OCTET_STR to be: if ( ($node-{type} == OCTETSTR) (@{ $node-{ranges} } == 1) ) { my $range = $node-{ranges}-[0]; if ( $range-{high} ==

Performance and correctness problems in Python bindings

2009-04-14 Thread Bill Fenner
Last summer, I posted a patch for the Python bindings at https://sourceforge.net/tracker/index.php?func=detailaid=2074817group_id=12694atid=112694 This fixes the problem that it's impossible to use the Python bindings to fetch an object with more than one sub-ID in its INDEX, e.g., it works for

Re: Performance and correctness problems in Python bindings

2009-04-15 Thread Bill Fenner
We did some further analysis of the regexp. We found: 1. Replacing \w+(?:\-*\w+)+ with \w[-\w]+ turns 5 hours into a few ms. It still varies based on the length of the string, but it maxed out at 100ms for hrSWInstalledLastUpdateTime. 2. This regexp is different from the one in the perl module

Re: problem with mib2c

2010-01-11 Thread Bill Fenner
On Fri, Jan 8, 2010 at 12:20 PM, Hemant Soundankar hemantsoundan...@gmail.com wrote:  I am implementing RFC 1697 for postgres. While generating the code template for rdbmsSrvParamTable via mib2c , no code/ functions for inserting proper value for rdbmsSrvParamName is generated. That's because

Changing the signature of snmp_parse_args()

2010-01-29 Thread Bill Fenner
In order to fix bug 2941983 (snmpd enables stderr logging if trapsess is configured in snmpd.conf), I'd like to change the signature of snmp_parse_args(): --- snmp_parse_args.c (revision 18006) +++ snmp_parse_args.c (working copy) @@ -195,13 +195,15 @@ /* * This method does the real work

Re: Changing the signature of snmp_parse_args()

2010-01-30 Thread Bill Fenner
On Fri, Jan 29, 2010 at 11:06 AM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 29 January 2010 15:40, Bill Fenner fen...@gmail.com wrote: My question is: is it sufficient to change all of the callers in the net-snmp source tree, or should I call the function with the new signature

Re: Changing the signature of snmp_parse_args()

2010-02-17 Thread Bill Fenner
On Fri, Feb 12, 2010 at 2:45 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Fri, 29 Jan 2010 16:06:13 +, Dave Shield d.t.shi...@liverpool.ac.uk said: DS I'd also suggest a more general flags parameter, rather than one DS specifically for logging.  (Just in case we need to

net-snmp/session_api.h broken in 5.6?

2010-10-10 Thread Bill Fenner
I updated net-snmp to 5.6, and all of my net-snmp consumers broke. It looks like net-snmp/library/snmp_api.h (included from net-snmp/session_api.h accidentally used netsnmp_transport * instead of struct netsnmp_transport_s *: NETSNMP_IMPORT int

Re: net-snmp/session_api.h broken in 5.6?

2010-10-18 Thread Bill Fenner
On Wed, Oct 13, 2010 at 12:16 PM, Wes Hardaker harda...@users.sourceforge.net wrote: BF I updated net-snmp to 5.6, and all of my net-snmp consumers broke.  It BF looks like net-snmp/library/snmp_api.h (included from BF net-snmp/session_api.h accidentally used netsnmp_transport * BF instead of

Re: net-snmp/session_api.h broken in 5.6?

2010-10-18 Thread Bill Fenner
On Wed, Oct 13, 2010 at 12:23 PM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 13 October 2010 17:16, Wes Hardaker harda...@users.sourceforge.net wrote: BF I updated net-snmp to 5.6, and all of my net-snmp consumers broke.  It BF looks like net-snmp/library/snmp_api.h (included from BF

Re: 5.6.1.pre1 released for testing

2010-12-02 Thread Bill Fenner
On Wed, Dec 1, 2010 at 1:42 AM, Wes Hardaker harda...@users.sourceforge.net wrote: We've released Net-SNMP 5.6.1.pre1 which contains bug fixes over the 5.6 release.  Please give it a whirl and let us know how it works for you! My TCP-MIB regression test passes now, the bug described in patch

Prototypes for debug functions?

2010-12-11 Thread Bill Fenner
I would like to request that the prototypes for void debug_print_registered_tokens(void); int debug_enable_token_logs(const char *); int debug_disable_token_logs(const char *); be exposed in a net-snmp header file. I realize they were probably put there for use from gdb, but in our system we

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

2010-12-14 Thread Bill Fenner
On Mon, Dec 13, 2010 at 5:21 PM, Robert Story rst...@freesnmp.com 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 router, where asymmetric routing like this BF is very common, this black hole

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

2010-12-15 Thread Bill Fenner
On Wed, Dec 15, 2010 at 11:26 AM, Robert Story rst...@freesnmp.com wrote: On Wed, 15 Dec 2010 10:28:05 +0100 Jan wrote: JS The problem is not to get this information, the real JS challenge is to do it effectively, i.e. cache them somewhere, refresh JS the cache sometimes, look up in the cache

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

2010-12-16 Thread Bill Fenner
On Thu, Dec 16, 2010 at 4:26 AM, Jan Safranek jsafr...@redhat.com wrote: On 12/15/2010 05:26 PM, Robert Story wrote: JS  The problem is not to get this information, the real JS  challenge is to do it effectively, i.e. cache them somewhere, refresh JS  the cache sometimes, look up in the cache

Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-16 Thread Bill Fenner
Hi, Our system uses Net-SNMP on both ends of the AgentX master/subagent relationship. With Net-SNMP 5.5, everything was very stable. With Net-SNMP 5.6, the subagent occasionally reconnects after a period of not being able to serve its objects. The subagent tracing looks like it stops getting

Re: Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-21 Thread Bill Fenner
On Mon, Dec 20, 2010 at 7:42 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Sat, 18 Dec 2010 16:43:56 -0500, Robert Story rst...@freesnmp.com said: BF (I've already diffed agent/mibgroup/agentx between 5.5 and 5.6, it's BF almost all cleanups that can't explain this; there's

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

2010-12-21 Thread Bill Fenner
On Wed, Dec 15, 2010 at 4:28 AM, Jan Safranek jsafr...@redhat.com 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 router, where asymmetric

Re: CFV: patch from Bill Fenner for agentx oids with multiple varbinds

2010-12-22 Thread Bill Fenner
On Wed, Dec 22, 2010 at 3:28 AM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 22 December 2010 04:42, Wes Hardaker harda...@users.sourceforge.net wrote:  - 5.6.1 (now in rc1) Hmm   this isn't really a show-stopper, so strictly speaking shouldn't be applied. It's somehow a

Re: CFV: patch from Bill Fenner for agentx oids with multiple varbinds

2010-12-26 Thread Bill Fenner
On Dec 22, 2010, at 1:55 PM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: Maybe we need to review our definitions of show stopper at next month's admin meeting. One proposal for an addition could be regressions from the previous major release. I upgraded our system from 5.5 to 5.6 and found at

Re: Prototypes for debug functions?

2010-12-27 Thread Bill Fenner
On Dec 24, 2010, at 11:52 AM, Magnus Fromreide ma...@lysator.liu.se wrote: This functionality is already exposed using SNMP. Not for a subagent, which is my use case. Bill -- Learn how Oracle Real Application

Re: CFV: patch from Bill Fenner for agentx oids with multiple varbinds

2010-12-27 Thread Bill Fenner
On Dec 27, 2010, at 12:12 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Sun, 26 Dec 2010 08:42:14 -0500, Bill Fenner fen...@gmail.com said: BF One proposal for an addition could be regressions from the previous BF major release. I upgraded our system from 5.5 to 5.6 and found

Re: My Subagent is not working after some long time

2011-01-08 Thread Bill Fenner
Prakash, There was a bug in earlier versions where if you tried to start snmpd while it was already running, it would overwrite the old agentx socket before failing to open the udp transport and exiting. This would mean that if the subagent ever got disconnected, it could never reconnect. It's

Re: My Subagent is not working after some long time

2011-01-10 Thread Bill Fenner
On Mon, Jan 10, 2011 at 1:27 AM, Prakash prakash.r...@saventech.com wrote: In which version this bus was fixed? I don't know. I know the bug is not present in 5.6. Bill -- Gaining the trust of online customers is

mibgroup/disman/nslookup should be omitted, not made read-only, for NETSNMP_NO_WRITE_SUPPORT

2011-03-03 Thread Bill Fenner
I see disman/nslookup was updated recently to make lookupCtlTable read-only for NETSNMP_NO_WRITE_SUPPORT. This seems odd, since the only way to use this MIB is to write rows into the lookupCtlTable. If there's a provision to exclude modules entirely for NETSNMP_NO_WRITE_SUPPORT, I think that's a

Re: mib2c: varbinds: enums

2011-03-11 Thread Bill Fenner
On Fri, Mar 11, 2011 at 5:05 PM, Eric Smith eri...@gmail.com wrote: I'm trying to access enums for varbinds and I end up with error saying uninitialized value in hash element Code: @foreach $noti notifications@   @foreach $varb varbinds@ @if $varb.enums@    ( Here's a horrible

net-snmp/net-snmp-features.h not installed via make install?

2011-03-26 Thread Bill Fenner
Hi, I tried a couple of recent svn checkouts (most recently, r20159), and found that net-snmp-features.h isn't installed via make install: In file included from /Users/fenner/tmp/include/net-snmp/types.h:421, from /Users/fenner/tmp/include/net-snmp/definitions.h:22,

Re: net-snmp/net-snmp-features.h not installed via make install?

2011-03-26 Thread Bill Fenner
On Mar 26, 2011, at 4:02 PM, Magnus Fromreide ma...@lysator.liu.se wrote: On Sat, 2011-03-26 at 14:08 -0400, Bill Fenner wrote: Hi, I tried a couple of recent svn checkouts (most recently, r20159), and found that net-snmp-features.h isn't installed via make install: In file included

Re: 5.7.pre2 available for testing (last pre-release)

2011-08-22 Thread Bill Fenner
On Thu, Aug 18, 2011 at 4:15 PM, Wes Hardaker harda...@users.sourceforge.net wrote: The 5.7.1.pre2 pre-release is now available for testing: https://sourceforge.net/projects/net-snmp/files/net-snmp/5.7.1-pre-releases/ This is a pretty lame bug report, because I don't understand any of the

Re: 5.7.pre2 available for testing (last pre-release)

2011-08-22 Thread Bill Fenner
On Mon, Aug 22, 2011 at 4:20 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Mon, 22 Aug 2011 14:12:07 -0400, Bill Fenner fen...@gmail.com said: BF That .so is not installed by 5.7.1pre2. There was one version of perl on one architecture (fedora 15) for a short period of time

Re: Getting snmpd to respond to DISMAN-PING-MIB requests

2011-09-07 Thread Bill Fenner
On Fri, Sep 2, 2011 at 3:08 PM, Doug Manley doug.man...@gmail.com wrote: NB I'm not that much for numeric OID's, but I have this script I took the script and added a little bit of -x fun so that you can see what it's doing and where it's getting the errors. It can do an snmpget on

clientaddr should not be premib

2011-09-29 Thread Bill Fenner
Hi, In commit 6a841d56518a727196e66b59e7e5b3304f54b0a1, Wes changed s/netsnmp_ds_register_config/netsnmp_ds_register_premib/ for the snmp, clientaddr token. This breaks changing the clientaddr with a HUP. I guess the advantage of having it be premib is that it can be specified in the config

Net-snmp 5.7 client apps default to 0 retries

2011-10-15 Thread Bill Fenner
Hi, I finally discovered the cause of some apparent infrastructure flakiness after upgrading to net-snmp 5.7: we have some PDUs that end up requiring retries to accept an SNMP set. 5.7 only sends a single request and does not retry, due to a bug in the code that allows the number of retries to

Re: Problem with installing net-snmp package 5.6.1.1 on UBUNTU version: 11.04

2011-11-04 Thread Bill Fenner
Rename the SNMP_ Related directory to not contain a space. Bill On Fri, Nov 4, 2011 at 11:02 AM, prashant n prashant.n...@gmail.com wrote: Hi, The problem is that when we trying to install net-snmp package  5.6.1.1 on UBUNTU version: 11.04,we are getting an error message as below,

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-09 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot,

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-13 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot,

Re: Permission denied to run libnetsnmp.so

2011-12-15 Thread Bill Fenner
On Thu, Dec 15, 2011 at 4:42 AM, 梅亮 meiliangw...@gmail.com wrote: Hi Net-SNMP coders, When I am compiling snmpd and run it, I encountered the following errmsg: [root@limei net-snmp-5.5.1]# snmpd snmpd: error while loading shared libraries: libnetsnmp.so.20: cannot enable executable stack

Error handling path in agentx master and subagents

2011-12-15 Thread Bill Fenner
I've stumbled across some really peculiar error handling problems in the agentx implementation in net-snmp 5.7.1, and was wondering if anyone was familiar enough with this code to figure out what's going on. 1. VarBinds of an unrecognized type get *stripped* from SET requests aimed at the

Re: how to make net-snmp agent only be responsive to a certain management station

2011-12-19 Thread Bill Fenner
On Sun, Dec 18, 2011 at 10:04 PM, 梅亮 meiliangw...@gmail.com wrote: Hi Net-SNMP coders, Would you please help me out with the following question? If I want my net-snmp agent only be responsive to a snmp packet from a certain management station with a fixed IP address, what is the most

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-27 Thread Bill Fenner
Hi Renjith, I came across this behavior in a different context and filed a bug: http://sourceforge.net/tracker/?func=detailaid=3456337group_id=12694atid=112694 (Certain agentx failures can result in apparent agent hang). I was unaware of the set times out way to get into this state - please

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-29 Thread Bill Fenner
.pre3] -renjith From: Bill Fenner [mailto:fen...@gmail.com] Sent: 27 December 2011 07:18 PM To: Renjith R. V. Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: agentx master agent not responding after an agentx subagent SET timeout Hi Renjith, I came across this behavior

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-30 Thread Bill Fenner
a fix on this already. thank you, -renjith .-Original Message- .From: Bill Fenner [mailto:fen...@gmail.com] .Sent: 29 December 2011 07:15 PM .To: Renjith R. V. .Cc: net-snmp-coders@lists.sourceforge.net .Subject: Re: agentx master agent not responding after an agentx subagent .SET

Re: dynamic table Table creation

2011-12-30 Thread Bill Fenner
The agent libraries can be used from C++, so what we do is build the master agent using a C compiler and build our subagent with g++, and serve our MIBs using AgentX. In fact, if you build libnetsnmpagent with a C compiler, you could probably then build your modules plus the snmp main loop and

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-31 Thread Bill Fenner
I haven't had any luck invoking the failure mode with my misbehaving subagent. Both the disconnect and the timeout end up going through netsnmp_remove_delegated_requests_for_session(), which then causes check_delayed_request() to call netsnmp_wrap_up_request() which resets netsnmp_processing_set.

Re: [PATCH v2] Make Net-SNMP independent of system clock adjustments

2012-02-08 Thread Bill Fenner
I wrote regression tests for my two reported cases: 1. sysUpTime gets strange if the clock changes after net-snmp starts; 2. subagent fails to reconnect until the clock catches back up if the clock changes after it sets its reconnect timer. I haven't yet gotten the test for #2 to fail in my

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

2012-07-02 Thread Bill Fenner
On Tue, Jun 19, 2012 at 5:23 PM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 18 June 2012 23:10, Wes Hardaker harda...@users.sourceforge.net wrote: Patch #1 is simple and just increases the shift variable allowing for 16 bits of index values instead of the previous 8 +1 Patch #2 is a

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 ni...@baggesen.net 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

Relative paths in /var/net-snmp/mib-indexes/*?

2012-07-20 Thread Bill Fenner
Hi, I was poking around at an unrelated problem, and came across this: == var/net-snmp/mib_indexes/1 == DIR /usr/share/snmp/mibs [ obviously fine ] == var/net-snmp/mib_indexes/2 == DIR . == var/net-snmp/mib_indexes/4 == DIR .. I think that the code that outputs the mib_indexes stash

Re: CFV: Handle TimeTicks when pretty-printing OID (patch 3560473)

2012-08-29 Thread Bill Fenner
Personally I would argue that it's a bug that strings in the OID are printed as numbers. While handling of TimeTicks is new, it is the most straightforward way to fix the bug of printing strings as numbers. Bill On Aug 28, 2012, at 7:46 PM, Wes Hardaker harda...@users.sourceforge.net

Re: CFV: Handle TimeTicks when pretty-printing OID (patch 3560473)

2012-08-29 Thread Bill Fenner
On Aug 29, 2012, at 1:31 AM, Niels Baggesen n...@users.sourceforge.net wrote: Den 29-08-2012 01:46, Wes Hardaker skrev: Well, I was just about to add a +1 and apply it... But there is one problem, it's a new feature technically... No, it adds a case that was forgotten in the original

Re: X-agent performance.

2012-12-05 Thread Bill Fenner
[ Removing -users ] On Dec 4, 2012, at 10:57 PM, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: Dear All, By studying and testing SNMP performance these days, I found that X-agent is not efficient as I expected: SNMP sub-agent mode slows down the total time of getbulk,

Should agent_process_and_check() handle fd_event_manager-registered file descriptors?

2013-02-02 Thread Bill Fenner
I'm writing a MIB module which also sends and receives packets, so in order to receive them and not block the main loop I'm using register_readfd(). For testing, I'm using standalone AgentX subagent mode, with the default main loop of while ( 1 ) { agent_process_and_check( 1 ); } However, it

mfd: table_interface.c: user-serviceable or not?

2013-02-02 Thread Bill Fenner
Given the comments that mfd adds at the top of table_interface.c: * *** NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE *** * *** THIS FILE DOES NOT CONTAIN ANY USER EDITABLE CODE. *** I expected that I wouldn't have to mess with it. However, in

Re: snmpnetstat does not show ipv6 addresses, routes, and services

2013-02-28 Thread Bill Fenner
On Sun, Feb 24, 2013 at 9:13 AM, Niels Baggesen ni...@baggesen.net wrote: Den 23-02-2013 20:54, Claus Klein skrev: is it planed to extend snmpnetstat to show ipv6 address info, ipv6 routing table entries, and ipv6 active sockets info too? It seems that the current version show only the ipv4

Re: snmpnetstat does not show ipv6 addresses, routes, and services

2013-03-02 Thread Bill Fenner
On Mar 2, 2013, at 3:44 AM, Niels Baggesen n...@users.sourceforge.net wrote: On Thu, Feb 28, 2013 at 10:29:40AM -0500, Bill Fenner wrote: What do you think about updating the old support to use ipCidrRouteTable, since ipRouteTable has been obsolete since 1997, and dropping support

Memory leaks in MFD-generated code?

2013-03-22 Thread Bill Fenner
I've been trying to track down some memory leaks in my pingCtlTable implementation. After I fixed the bugs from not freeing my own data structures, valgrind points out two definitely lost chunks: ==7467== 17,568 bytes in 6 blocks are definitely lost in loss record 1,075 of 1,086 ==7467==at

Re: Cannot find a place in code, where traps are being dumped to stdout

2013-06-28 Thread Bill Fenner
On Wed, Jun 26, 2013 at 10:26 PM, Oleg Gritsak g...@medvedko.dyndns.infowrote: Hello! First of all, thank you for such a great software made under opensource license! Didn't want to bother anyone, but already spent several days on this problem without any positive result. :( Maybe someone

Re: net-snmp fails to create entries with a zero in the OID

2013-07-15 Thread Bill Fenner
On Thu, Jul 11, 2013 at 6:39 AM, zhuyj zyjzyj2...@gmail.com wrote: Hi, Magnus Niels Thanks for your help! I am testing your patch. This patch can solve the most problems. But Ihave a question, is this a bug? I mean that '0' in snmpAdminString is a bug, or not? Would you like to discuss

Re: low? octet string limit on AgentX transactions

2013-11-29 Thread Bill Fenner
On Mon, Oct 28, 2013 at 7:01 AM, Fulko Hew fulko@gmail.com wrote: I was bit recently by a design limitation on the length of OCTET STRINGS as received and processed by AgentX. ... Comments? I think the dual to this problem has also been reported at

Re: Remove IF-MIB and IP-MIB

2013-12-02 Thread Bill Fenner
[[ I've removed net-snmp-users, since this question is more appropriate for coders. Note that http://www.net-snmp.org/support/mailinglists.html says Please do NOT post the same message to both the user and coders lists, and has other useful information about how to politely ask for help ]] On

Re: Help! Convert OCTET string to READABLE string

2013-12-16 Thread Bill Fenner
This is a limitation in the execute / pass / pass_persist infrastructure: the truncation happens when creating the output to send to the script. setPass() sets up the command string and the arguments into passthru-command, which is a statically allocated buffer. setPassPersist() has the same

Re: Query related to memory leaks and read errors in snmptrap command

2014-02-10 Thread Bill Fenner
On Thu, Feb 6, 2014 at 7:11 AM, Chaitanya Gulhane chaitanya.gulh...@gmail.com wrote: Hi, I was using net-snmp 5.6.2 and have built the code and installed it. I was using valgrind over snmptrap command. Following is the command I ran. valgrind --leak-check=full --log-file=log_snmptrap

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-13 Thread Bill Fenner
It's the caller's responsibility to free that memory (and snmp_free_pdu() will). Bill On Wed, Mar 12, 2014 at 11:28 AM, John Zavgren john.zavg...@ll.mit.eduwrote: Nevertheless... The memory that is allocated at lines 3715 and 3724 is leaked at line 3795. Allocations: * */* *

Re: net-snmp dumps core when snmpd.conf contains an incorrect logmatch parameter regex

2014-04-09 Thread Bill Fenner
Hi Mohan, Thanks for the patch. Can you please upload it at http://www.net-snmp.org/patches/ so that it doesn't get lost? Thanks, Bill On Tue, Mar 18, 2014 at 8:11 AM, Mohan Gorai mohana.go...@oracle.comwrote: Hi, On Solaris, whenever there is a wrong regex as logmatch parameter, when

Re: Bugfix for bulk gets in SNMP.pm

2014-04-09 Thread Bill Fenner
Hi Steinar, Thanks for the patch. In order to make sure that we don't lose track of it, could you please upload it to http://www.net-snmp.org/patches/ ? Thanks, Bill On Wed, Apr 9, 2014 at 9:25 AM, Steinar H. Gunderson sgunder...@bigfoot.com wrote: On Tue, Apr 01, 2014 at 01:41:12PM

Re: error showing SNMPWALK on the last table of a view

2014-07-07 Thread Bill Fenner
This kind of behavior is usually due to using an inefficient lookup, especially combined with using the table_iterator helper. See the Con Mitigation heading of http://www.net-snmp.org/wiki/index.php/Table_iterator if you are using the table_iterator helper. Bill On Wed, Jul 2, 2014 at 11:07

Optimizing the large_fd_set code

2014-07-07 Thread Bill Fenner
When doing some performance measurement, I found that a surprising amount of time was spent in netsnmp_large_fd_set_resize(). It turns out that a newly-created large fd set often has an lfs_setsize of zero, and a desired size of FD_SETSIZE, and the current code zeroes out the bits in between

Re: Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-08 Thread Bill Fenner
On Tue, Jun 24, 2014 at 3:47 AM, Sean Burke sean.bu...@pacbell.net wrote: Hi All, I am writing to ask about this code in 5.7.2.1 snmp_api.c at line 5423. I am specifically concerned with the constraint pdu-command == SNMP_MSG_TRAP2, which appears to interfere with freeing the

Re: need help for generating ,C file from MIB file

2014-07-08 Thread Bill Fenner
On Wed, Jul 2, 2014 at 6:32 PM, Gaurav Kasliwal gkasli...@juniper.net wrote: Hi, I have created a MIB file It is present at path : [gkasliwal@svl-junos-d072 /b/gkasliwal/14.2_ib_psd/src/junos/shared/mibs]$ ls | grep jnx-bgpmib jnx-bgpmib2.mib jnx-bgpmib3.mib jnx-bgpmib3_tc.mib

Re: Optimizing the large_fd_set code

2014-07-08 Thread Bill Fenner
On Tue, Jul 8, 2014 at 1:17 AM, Magnus Fromreide ma...@lysator.liu.se wrote: On Mon, Jul 07, 2014 at 05:33:53PM -0400, Bill Fenner wrote: When doing some performance measurement, I found that a surprising amount of time was spent in netsnmp_large_fd_set_resize(). It turns out that a newly

Re: Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-09 Thread Bill Fenner
and GET-BULK would show the problem also. I am running an agent session that receives these requests. -SEan On Jul 8, 2014, at 11:10 AM, Bill Fenner wrote: On Tue, Jun 24, 2014 at 3:47 AM, Sean Burke sean.bu...@pacbell.net wrote: Hi All, I am writing to ask about this code in 5.7.2.1

Re: SNMP TLS snmpget error

2014-07-24 Thread Bill Fenner
Did you configure the certificates properly? In particular, did you configure the server with the private key? Since you're using the fingerprints from the tutorial, but using your local server instead of test.net-snmp.org, where did you get the private key? It's not part of the published set

Re: SNMP TLS snmpget error

2014-07-25 Thread Bill Fenner
, Bill Fenner fen...@gmail.com wrote: Did you configure the certificates properly? In particular, did you configure the server with the private key? Since you're using the fingerprints from the tutorial, but using your local server instead of test.net-snmp.org, where did you get the private key

Re: CVE-1999-0516

2014-07-28 Thread Bill Fenner
On Fri, Jul 25, 2014 at 11:32 AM, Matthew Maldonado memaldonad...@gmail.com wrote: I'm having a hard time finding resources on the web to resolve CVE-1999-0516. Would you happen to have any information on how to resolve this issue for the Linux side? Configure all of your management systems

Re: snmptable netSnmpIETFWGTable: No entries

2014-08-13 Thread Bill Fenner
This is a bug in the perl script. It does a poor-man's lexicographical ordering, only handling objects that it knows about. This works for a walk, but does not work for the (valid) request that snmptable makes. The easiest fix would be for the agent to learn that $next_oid{netSnmpIETFWGEntry.0}

Re: problem in SNMPSET on table with string data type columns

2014-09-03 Thread Bill Fenner
I've had trouble with multiple requests in ordered table_iterator tables. I have no idea if that's what you're using, since you didn't give much info about your use case. I just worked around it by injecting the serialize handler: int result = netsnmp_register_table_iterator( reg, iinfo );

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread Bill Fenner
could be the issue here? Thanks and regards S Sarath On Wednesday, September 3, 2014 7:38 PM, Bill Fenner fen...@gmail.com wrote: I've had trouble with multiple requests in ordered table_iterator tables. I have no idea if that's what you're using, since you didn't give much info

Re: MFD compiled extension agent: snmpget returns Timeout: No Response from localhost:1161.

2014-09-06 Thread Bill Fenner
On Fri, Sep 5, 2014 at 1:57 AM, Kenneth Hung hun...@gmail.com wrote: netsnmp_udp_getSecName: no com2sec entries Am I missing something here in the conf file? Yes - despite your subject line mentioning extension agent, you're running a full agent, meaning that you have to

Re: SNMPv3 Trap Question

2014-09-14 Thread Bill Fenner
On Wed, Sep 3, 2014 at 11:10 AM, Gary Dunlap gary.dun...@dothill.com wrote: Hi. I’m having trouble with some of the SNMPv3 traps sent by snmpd being rejected, and I think it’s because of the SNMPv3 replay protection mechanism. It looks like when some event causes a reconfigure of snmpd

Re: does net-snmp support AES-128 SHA96

2014-09-24 Thread Bill Fenner
net-snmp supports RFC3414 https://tools.ietf.org/html/rfc3414 (which defines HMAC-SHA-96) and RFC3826 https://tools.ietf.org/html/rfc3826 (which defines CFB128-AES-128). Bill On Tue, Sep 23, 2014 at 6:35 AM, sarath azad saraths...@yahoo.co.in wrote: Hello, Could you please tell if

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread Bill Fenner
separately, rather than a single handler function being called passing all the varbinds in input SNMPGET/SET query? thanks and regards S Sarath On Thursday, September 4, 2014 5:51 PM, Bill Fenner fen...@gmail.com wrote: The only advice I have is to try the serialize handler. Bill

Re: snmptrapd not processing v3 traps

2014-10-03 Thread Bill Fenner
On Fri, Oct 3, 2014 at 11:06 AM, Jason Pope jp...@bats.com wrote: Hi, Has anyone successfully set up snmptrapd to accept v3 traps from a device ? I have tried to set it up, but I see nothing in the log when the device sends v3 traps. When configured to send v2 traps you can see them in

Re: snmptrapd not processing v3 traps

2014-10-08 Thread Bill Fenner
to enter an engineID for every system. Thanks so much, Geoff.. From: Jason Pope [mailto:jp...@bats.com] Sent: Monday, 6 October 2014 6:47 PM To: Jason Pope; Bill Fenner Cc: net-snmp-coders@lists.sourceforge.net; net-snmp-us...@lists.sourceforge.net Subject: RE: snmptrapd

Re: Raises the netsnmp_remove_delegated_requests_for_session method of the snmpd code dump.

2014-10-14 Thread Bill Fenner
Please try net-snmp 5.7.3-rc1 . The patches you linked to are all present in that release candidate. Bill On Tue, Sep 30, 2014 at 1:02 AM, lijian...@rayootech.com lijian...@rayootech.com wrote: Hi Snmp group http://sourceforge.net/p/net-snmp/mailman/message/28799205/ (NET-SNMP version:

Re: bug system.c - Solaris

2014-10-14 Thread Bill Fenner
On Tue, Sep 16, 2014 at 11:44 AM, Maria Teresa Eibe mtega...@gmail.com wrote: Hi, I’ve noticed that there seems to be a bug in the code of system.c, function netsnmp_os_prematch, if net-snmp is to be run on Solaris. The problem would be the line: if ( 0 != uname(utsbuf)) return -1;

Re: [PATCH] Let Perl access the security engine ID

2014-10-19 Thread Bill Fenner
Hi Steinar, Thanks for the patches. Could you please submit them at http://www.net-snmp.org/patches/ so that we don't lose track of them? Thanks, Bill On Sun, Oct 19, 2014 at 4:29 PM, Steinar H. Gunderson sgunder...@bigfoot.com wrote: Hi, When using SNMP::Session-new() without a

Re: [PATCH] Let Perl access the security engine ID

2014-10-21 Thread Bill Fenner
On Mon, Oct 20, 2014 at 12:06 PM, Steinar H. Gunderson sgunder...@bigfoot.com wrote: On Sun, Oct 19, 2014 at 09:05:05PM -0400, Bill Fenner wrote: Thanks for the patches. Could you please submit them at http://www.net-snmp.org/patches/ so that we don't lose track of them? Seemingly

How can the community help with patches? (Was Re: [PATCH] Let Perl access the security engine ID)

2014-10-29 Thread Bill Fenner
On Thu, Oct 23, 2014 at 9:05 AM, Michael Bunk m...@computer-leipzig.com wrote: As with most open source projects, committers get more and fewer cycles to look at contributions. We're trying to make an effort in the next couple of months to get the queue down. Despite understanding your

Re: Changing community names on the fly

2014-11-14 Thread Bill Fenner
Hi Vesa, I think the reason that you aren't getting any response is that most people who integrate net-snmp into their system use the configuration file and SIGHUP / snmpd restart to load changes. With SIGHUP the authentication info gets cleared out and re-read from the config file. If you're

Re: agentX++ interoperability with NET-SNMP version 5.7.3.rc1

2014-11-22 Thread Bill Fenner
On Sat, Nov 22, 2014 at 5:34 AM, Claus Klein claus.kl...@arcormail.de wrote: Hi, I have tested net-snmp as master agent with current agentpp subagent. The most important problem I found is: The row destroy at subagent does not work together with net-snmp master agent! The agentX++

Re: Configuration and --with-out-mib-modules

2015-02-05 Thread Bill Fenner
On Wed, Feb 4, 2015 at 8:09 PM, David Hauck dav...@netacquire.com wrote: Hi, The 'configure' script has the following text: --with-out-mib-modules=list Compile without these mib modules. Default mib modules compiled into the agent (which can be removed): mibII

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Bill Fenner
use this approach because it doesn't need any configuration. Bill I’m very new to the net-snmp API, so I’m sort of still finding my feet. Regards, Tim *From:* Bill Fenner [mailto:fen...@gmail.com] *Sent:* 17 February 2015 14:50 *To:* Tim Culhane *Cc:* Net-SNMP Coders

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Bill Fenner
Tim, Since the configuration file is read and processed line-by-line, you should be able to use, e.g., netsnmp_ds_register_config(), register_config_handler(), or other config file primitives in your module_init() function, and they will take affect for lines after the dlmod configuration line.

Re: GETBULK with Sub-Agent

2015-03-09 Thread Bill Fenner
On Sat, Mar 7, 2015 at 4:39 PM, Thomas Besemer thomas.bese...@gmail.com wrote: On Fri, Mar 6, 2015 at 10:39 AM, Bill Fenner fen...@gmail.com wrote: On Thu, Mar 5, 2015 at 1:39 PM, Thomas Besemer thomas.bese...@gmail.com wrote: On Thu, Mar 5, 2015 at 7:37 AM, Bill Fenner fen...@gmail.com

Re: GETBULK with Sub-Agent

2015-03-06 Thread Bill Fenner
On Thu, Mar 5, 2015 at 1:39 PM, Thomas Besemer thomas.bese...@gmail.com wrote: On Thu, Mar 5, 2015 at 7:37 AM, Bill Fenner fen...@gmail.com wrote: On Wed, Mar 4, 2015 at 11:51 AM, Thomas Besemer thomas.bese...@gmail.com wrote: I am working with net-snmp 5.7.3, and will be using several

Re: GETBULK with Sub-Agent

2015-03-05 Thread Bill Fenner
On Wed, Mar 4, 2015 at 11:51 AM, Thomas Besemer thomas.bese...@gmail.com wrote: I am working with net-snmp 5.7.3, and will be using several Sub-Agents in my project, with fairly large amounts of data. I have noted that issuing a 'snmpbulkwalk' to Master Agent results in this broken down into

Re: objects marked not-accessible returned by snmpwalk

2015-04-28 Thread Bill Fenner
On Tue, Apr 28, 2015 at 7:33 AM, Tim Culhane tim.j.culh...@gmail.com wrote: Does anybody know if it is possible to get the ‘MAX-ACCESS’ value for an oid from a request via the net-snmp API? mib2c has access to it (and in theory it's in charge of getting that info into the code). There's no

  1   2   3   >