Re: Regarding OID of AES192

2025-02-18 Thread Magnus Fromreide
On Tue, Feb 18, 2025 at 03:19:27PM +0530, Pushpa Thimmaiah wrote: > Hi All, > > I would like to understand why does oid of AES128 and AES192 not in same > branch. > AES128 : .1.3.6.1.6.3.10.1.2.4 > AES192 : .1.3.6.1.4.1.14832.1.3 > It has to do with timing and processes. If you look up the OID

Re: Regarding changing default agentXSocket

2025-01-10 Thread Magnus Fromreide
On Thu, Jan 09, 2025 at 10:58:22AM +0530, Pushpa Thimmaiah wrote: > Hi All, > > Net-snmp FAQ reads that agentx can be run with different unix socket > address (i.e other that /var/agentx/master). I too verified it works fine. > Is there any configuration file that reads by subagent (eg:./mysubagen

Re: length of snmpEngineID

2024-04-24 Thread Magnus Fromreide
On Tue, Apr 23, 2024 at 09:51:08AM +0530, Pushpa Thimmaiah wrote: > Hi All, > > Could you please let me know length of snmpEngineID. Is it 12 octets or 32 > octets. > > In RFC 3411 (https://www.ietf.org/rfc/rfc3411.txt) , > mib object 'snmpEngineID' says 12 octets in description and 32 octet in

Re: Regarding enterprise OID lifespan

2023-10-16 Thread Magnus Fromreide
On Mon, Oct 16, 2023 at 02:14:28PM +0530, Pushpa Thimmaiah wrote: > Hi, > > Could you please provide information about following > 1. Is there any lifespan for enterprise OID allocated by IANA. OID allocations are forever. > 2. When a company got acquired by another company, > Eg: old com

Re: Need solution to suppress Warning for 32 bit net-SNMP installing on 64 bit

2022-11-01 Thread Magnus Fromreide
On Tue, Nov 01, 2022 at 11:17:07AM +, Jendal, Bhanu wrote: > Hello Team, > > Can you please help on the below scenario: > Need solution to suppress Warning for 32 bit net-SNMP installing on 64 bit > while installing through the command line. The net-snmp project primarily provide source code

Re: Integrating Debian patches

2022-07-22 Thread Magnus Fromreide
On Thu, Jul 21, 2022 at 08:37:29PM +1000, Craig Small wrote: > Hi, > I'd like to see how I can reduce the number of patches carried by the > Debian net-snmp packages. Some of these will have to stay because we have a > particular way of storing files for example. That will also mean these > fixes

Re: publishing 5.9.3 immediately

2022-07-05 Thread Magnus Fromreide
On Wed, Jul 06, 2022 at 12:27:36PM +1000, Craig Small wrote: > On Wed, 6 Jul 2022 at 01:54, Bart Van Assche wrote: > > > How about also fixing the other two issues reported during the last 24 > > hours by Craig before announcing 5.9.3.rc1? > > > While I am always happy to have fewer patches in th

Re: publishing 5.9.3 immediately

2022-07-05 Thread Magnus Fromreide
On Tue, Jul 05, 2022 at 08:28:54AM -0700, Wes Hardaker via Net-snmp-coders wrote: > > So this issues: > > https://github.com/net-snmp/net-snmp/issues/432 > > Likely warrants an immediate 5.9.3 with only the change to libcurrent in > Makefile.top. +1 > I'll try to get 5.9.3.rc1 out the door to

Re: Re-registering sysContact and sysLocation with subagent

2022-02-08 Thread Magnus Fromreide
ister sysLocation or > sysContact from a subagent, if the node was initially registered in the > master agentx. > > Winston > > > > > > From: Winston Gadsby > Sent: Wednesday, February 2, 2022 1:29 PM > To: Magnus Fromreide &g

Re: Re-registering sysContact and sysLocation with subagent

2022-02-01 Thread Magnus Fromreide
On Tue, Feb 01, 2022 at 02:58:14PM +, Winston Gadsby wrote: > Hi, > Thanks for the replies. I'm working on trying to unregister the oid > according to the link given below, using unregister_mib(oid, len). I'm > assuming the oid can be specified as a byte-string or integer array. The > dif

Re: Re-registering sysContact and sysLocation with subagent

2022-01-28 Thread Magnus Fromreide
On Fri, Jan 28, 2022 at 09:21:04PM +, Winston Gadsby wrote: > Hi, > I'm running a subagent based on python-netsnmpagent, along with the > distribution snmpd (net-snmp) agent on a Debian embedded system. I'm using > the version of snmpd that comes default with the distribution - 5.7.3. I >

Re: Do NetSNMP support CreateAndWait

2021-12-09 Thread Magnus Fromreide
On Thu, Dec 09, 2021 at 09:45:38PM +0530, Feroz wrote: > In the NetSNMP sample code I see the following block. > I would like to understand if NetSNMP support "CreateAndWait" > > File: ipAddressTable.c > > if (ROWSTATUS_CREATEANDWAIT == ipAddressRowStatus_val) { > DEBUGMSGTL(("ipAddre

Re: Agent+Sub-Agent

2021-09-17 Thread Magnus Fromreide
On Wed, Sep 08, 2021 at 02:17:14PM -0400, Bill Fenner wrote: > On Fri, Sep 3, 2021 at 3:43 AM Feroz wrote: > > > My question is, is there a way to block an agent from responding to > > queries ( by timeout), till time the sub-agent connects to the agent. > > > > No, the master agent always live

Re: Mib VNX 5500

2021-05-23 Thread Magnus Fromreide
On Wed, Apr 28, 2021 at 02:57:39PM +, Alex Ordoñez wrote: > Hi friend, do you have mib for VNX 5500 ?, send me please. Or Where do you > think I can find it ? I want to monitor disks, cpu, memory, etc. Talk to the vendor that sold the thing to you. /MF > Best regards, > > Alex Ordóñez Vél

Re: How to avoid having ".0" at the end of the oids coming from a module

2021-04-16 Thread Magnus Fromreide
On Fri, Apr 16, 2021 at 04:41:43PM +0200, dga via Net-snmp-coders wrote: > Hello, > > I have written a module allowing to add "specifics" interfaces at a fixed > oid (5) following the "linux" interfaces provided by default by the > package (version 5.7.3). > > However, it's not good for the c

Re: Crash in snmp_api.c, in function _sess_async_send

2020-09-30 Thread Magnus Fromreide
On Wed, Sep 30, 2020 at 03:19:47PM +0530, Sanjay Kumar wrote: > Hi Netsnmp team, >I am using netsnmp-5.8 > Trying to perform SNMP some operation and got the below crash. > Any patch for this is available? > > (gdb) bt > #0 __libc_do_syscall () at > ../sysdeps/unix/sysv

Re: getting crash in netsnmp_send_traps, is there any patch for netsnmp-5.8 for below crash path?

2020-09-18 Thread Magnus Fromreide
On Fri, Sep 18, 2020 at 08:21:35PM +0530, Sanjay Kumar wrote: > Hi Expert, > > I am getting a crash in the below backtrace path. You have removed most of the interesting parts of the stack trace. Given the information you have provided there is no way for us to help you. Please provide

Re: Need help to "drop the response" for a request

2020-09-18 Thread Magnus Fromreide
On Fri, Sep 18, 2020 at 04:39:21PM +0530, Sanjay Kumar wrote: > Hi Net-SNMP team, > Need help on below scenario: > We are handling the Error condition for the SNMP request(get/set) packet > with the below options in the *"subagent"* > > netsnmp_request_set_error(reques

Re: [REQUEST FOR VOTES] snmpd: Drop support for pass_persist on uClinux

2020-09-06 Thread Magnus Fromreide
On Sun, Sep 06, 2020 at 07:34:57PM -0700, Bart Van Assche wrote: > On 2020-08-18 10:28, Magnus Fromreide wrote: > > I think the child code in the vfork case should be exactly > > > > execv(argv[0], argv); > > _exit(1); > > > > as t

Re: [REQUEST FOR VOTES] snmpd: Drop support for pass_persist on uClinux

2020-08-18 Thread Magnus Fromreide
On Sun, Aug 16, 2020 at 06:15:17PM -0700, Bart Van Assche wrote: > On 2020-08-16 15:58, Wes Hardaker wrote: > > Magnus Fromreide writes: > > > >> That is a more lenient option than just dropping it so I think 'happy with > >> dropping it' covers this

[REQUEST FOR VOTES] snmpd: Drop support for pass_persist on uClinux

2020-08-15 Thread Magnus Fromreide
On Sat, Aug 15, 2020 at 09:11:40AM -0700, Bart Van Assche wrote: > On 2020-08-15 07:14, Magnus Fromreide wrote: > > This allows vfork to not block the parent until the child has called _exit > > or exec*, it does not allow the child to block the parent until completion. > >

Re: [REQUEST FOR VOTES] snmpd: Call fclose() after fdopen() but not close()

2020-08-15 Thread Magnus Fromreide
On Fri, Aug 14, 2020 at 07:38:09PM -0700, Bart Van Assche wrote: > On 2020-08-14 17:05, Magnus Fromreide wrote: > > The vfork child only blocks the parent until it have performed an successful > > exec so that part looks ok [ ... ] > > Hi Magnus, > > Are you sure of

Re: [REQUEST FOR VOTES] snmpd: Call fclose() after fdopen() but not close()

2020-08-14 Thread Magnus Fromreide
On Thu, Aug 13, 2020 at 08:02:59PM -0700, Bart Van Assche wrote: > On 2020-08-08 16:16, Magnus Fromreide wrote: > > That file is a mess. > > > > Have anyone heard from Alexander Prömel regarding those temporary hard coded > > pathnames that should be fixed soon?

Re: [REQUEST FOR VOTES] snmpd: Call fclose() after fdopen() but not close()

2020-08-13 Thread Magnus Fromreide
On Sun, Aug 09, 2020 at 01:16:37AM +0200, Magnus Fromreide wrote: > On Sat, Aug 08, 2020 at 11:17:52AM -0700, Bart Van Assche wrote: > > From https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html: > > "The fclose() function shall perform the equivalent of a

Re: Test failures on V5-8-patches and master

2020-08-13 Thread Magnus Fromreide
On Thu, Aug 13, 2020 at 03:55:31PM -0700, Wes Hardaker via Net-snmp-coders wrote: > Magnus Fromreide writes: > > > I just noticed that T0222snmpv3bulkget_simple depends on SHA authentication > > and AES privacy but fails to check for this so if one builds the agent > >

Test failures on V5-8-patches and master

2020-08-13 Thread Magnus Fromreide
Hello! I just noticed that T0222snmpv3bulkget_simple depends on SHA authentication and AES privacy but fails to check for this so if one builds the agent without that support the test fails. Now, I am not certain about exactly what T0222 tests but I think it is about bulkget limits and thus the u

Re: [REQUEST FOR VOTES] snmpd: Call fclose() after fdopen() but not close()

2020-08-08 Thread Magnus Fromreide
On Sat, Aug 08, 2020 at 11:17:52AM -0700, Bart Van Assche wrote: > From https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html: > "The fclose() function shall perform the equivalent of a close() on the file > descriptor that is associated with the stream pointed to by stream." > >

RedHat errors in packaging

2020-07-05 Thread Magnus Fromreide
Hello! I found a bug in the RedHat/Fedora net-snmp packaging a few months back and wrote a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1815984) but nothing have happend with it. This broke my intended use of --compile-subagent The problem is that they have added a wrapper script for

Re: Release timeline

2020-07-05 Thread Magnus Fromreide
On Mon, Jun 29, 2020 at 07:11:16AM -0700, Wes Hardaker via Net-snmp-coders wrote: > Hugh McMaster writes: > > > net-snmp v5.8.1.pre2 was released a little over four months ago. > > > > Following a lot of excellent work by Bart and others since then, what > > is the proposed timeline for the nex

Re: snmptrapd SNMP V3 support

2020-06-11 Thread Magnus Fromreide
On Wed, May 27, 2020 at 10:42:09AM +, Yefetluzzatto, Inbal wrote: > Hello, > > I currently use NET-SNMP Version: 5.7.2 which has limited SNMP V3 support. > I am trying to set up a manager that can use Authentication protocols - > SHA-256 and MD5 with Privacy protocols AES-256 and 3DES (TDES

Re: Issue with trapsess in snmpd.conf file

2020-05-05 Thread Magnus Fromreide
our snmpd is already listening on that port. > Error opening specified endpoint "udp:161" > Server Exiting with code 1 > NET-SNMP version 5.7.3 AgentX subagent connected This looks like the log I would expect from snmpd with a master agent, not the log from a subagent. /MF > [Phil

Re: Issue with trapsess in snmpd.conf file

2020-04-29 Thread Magnus Fromreide
art your subagent as well as the master agent (snmpd). /MF > Best regards > Philippe DENIS > > > Le 29 avr. 2020 à 08:26, Magnus Fromreide a écrit : > > > > On Wed, Apr 29, 2020 at 02:46:30AM +0200, Philippe Denis wrote: > >> Hello all, > >> &g

Re: Issue with trapsess in snmpd.conf file

2020-04-28 Thread Magnus Fromreide
On Wed, Apr 29, 2020 at 02:46:30AM +0200, Philippe Denis wrote: > Hello all, > > I’m facing several issues when I’ve tried to send V3 traps from my Agent X to > the master agent to trap recipient. The program linked to the trap generation > was written by mib2c tool mainly. (Only dummies variabl

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-06 Thread Magnus Fromreide
gt; should not be impacted. > > > > Then what is the difference between netsnmp_register_long_instance and the > > couple netsnmp_create_handler_registration & netsnmp_register_instance. > > Which one should I used to register objects from my subagent? > > > > Than

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Magnus Fromreide
On Sun, Feb 02, 2020 at 02:13:59PM +0100, Philippe Denis wrote: > Hello all, > > I've a problem to communicate with my subAgent through the Master Agent. > I've used the option -Dnetsnmp_udpbase and the message is correctly > received at master Agent level (of course, the one which send from remot

Re: [Net-Snmp] Build Snmp lib in Android

2019-11-13 Thread Magnus Fromreide
On Tue, Oct 15, 2019 at 07:47:38AM +, Tran Quang Linh (FGA.PDC) via Net-snmp-coders wrote: > Dear Net-Snmp developer team, > > Currently, I'm trying to build your project > (https://sourceforge.net/p/net-snmp/code/ci/master/tree/) in Android to build > it in 64 bit architecture. But when I

Re: requirement alarm description on OID 1.3.6.1.4.1.8072.3.2.10

2019-09-06 Thread Magnus Fromreide
On Thu, Sep 05, 2019 at 04:14:24PM +0530, MAD GAMING wrote: > Dear Team > Please support to provide alarm description for below OID > > 1.3.6.1.4.1.8072.3.2.10 > > appeared over storage p2000 base SPA.. You did not provide much information to work with but I'd guess the system that generated the

Re: snmptable Unknown host

2019-07-21 Thread Magnus Fromreide
On Fri, Jul 19, 2019 at 01:08:02PM +0530, jayshankar nair wrote: > Hi, > > I am running modified version of snmptable.c. On certain machines > > i am getting snmp_sess_open error "Unknown host". > > Any idea??. Is the name lookup set up on those certain machines? I.e. does ping hostname-snmpta

Re: SNMP Configure Script Issue: When I include a header file in include/net-snmp/library/snmp_logging.h

2019-03-22 Thread Magnus Fromreide
On Fri, Mar 22, 2019 at 01:15:52PM +0530, prabu varadharajan wrote: > Dear All, > > Following is my project source code hierarchy, > + src > | > + snmp > | > + my_app > | > + inc > | > + local_snmp_macros.h > + my_macr

Re: Getting linker error for Net-snmp. Need help

2019-03-06 Thread Magnus Fromreide
On Wed, Feb 27, 2019 at 09:23:40AM +, kiran.nagar...@dellteam.com wrote: > Please let me know the fix for the same. Please let us know what you did before the make. How did you invoke configure? Did you run in a clean checkout? > # make > making all in /usr/pkg/src/net-snmp-5.8/snmplib > maki

Re: [PATCH 0/6] Add support for interface binding

2019-01-25 Thread Magnus Fromreide
On Sun, Oct 28, 2018 at 01:54:22PM -0700, Bart Van Assche wrote: > Hello, > > As you may have noticed multiple people asked to add SO_BINDTODEVICE support > to Net-SNMP. This patch series adds such support by allowing to specify the > name of the network interface to bind a Net-SNMP endpoint to as

Change default rwuser default security level (Was: Netsnmpv5.8 possible security flaw)

2019-01-08 Thread Magnus Fromreide
On Mon, Jan 07, 2019 at 11:16:02PM -0800, Wes Hardaker via Net-snmp-coders wrote: > Madhusudhana R writes: > > > With Netsnmp v5.8 upgraded to my project (which was already working with > > v5.7.3), I am finding one > > problem which is as described below. > > > > An user is created in agent

Re: Your useless snmpd implementation

2018-10-26 Thread Magnus Fromreide
On Mon, Oct 22, 2018 at 02:35:49PM +, Thibault Bartolone via Net-snmp-coders wrote: > Hello > For days I've been trying to figure out how these extend functionnality works. In snmpd.conf: extend someString /usr/bin/echo MyMarkString and then, after an agent restart snmpwalk localhost nsExt

Re: Need the Help for the SNMP alarms on 38282 .

2018-10-26 Thread Magnus Fromreide
On Thu, Oct 18, 2018 at 03:13:18PM +0530, Ravi Shanker K N via Net-snmp-coders wrote: > Hello Team , > > I need your support for one of the alarm . It will be great if anyone of > us can help me . > > We are receiving the snmp alarms as below in the F5(Load balancer) , > > > F5-BIGIP-LOCAL

Re: Building net-snmp MIB support as loadable module

2018-08-21 Thread Magnus Fromreide
On Tue, Aug 21, 2018 at 11:52:31AM +0100, Tomasz Kłoczko wrote: > Hi, > > Looks like snmpd agent supports extending agent functionalities by > loading on run-time DSO module with additional MIBs support. > Have question: is it possible to build net-snmp code to support to add > exact supported by

Re: considerations for porting net-snmp to uClinux

2018-06-26 Thread Magnus Fromreide
Then target is rebooted. When you say "the built image", does that include the shared libraries built as part of the net-snmp build process? What does the command lld /path/to/net-snmp/sbin/snmpd print? /MF > On Fri, Jun 22, 2018 at 11:21 PM, Magnus Fromreide > wrote: > > &

Re: considerations for porting net-snmp to uClinux

2018-06-22 Thread Magnus Fromreide
How did you install it on the target system? /MF On Tue, Jun 19, 2018 at 02:56:17PM -0500, John Emrich wrote: > I should also I am trying to build net-snmp using shared libraries. > > On Tue, Jun 19, 2018 at 2:54 PM, John Emrich > wrote: > > > Hello, > > > > When building net-snmp for uClinux,

Re: [PATCH; request for votes] snmplib: Avoid that sprint_realloc_octet_string() triggers a segmentation fault

2018-05-22 Thread Magnus Fromreide
On Mon, May 21, 2018 at 02:36:43PM -0400, Bill Fenner wrote: > On Mon, May 21, 2018 at 11:18 AM, Wes Hardaker < > harda...@users.sourceforge.net> wrote: > > > Bill Fenner writes: > > > > > So, +1 on committing Bart's patch, because it accomplishes the goal of > > > fixing the regression, with the

Re: [PATCH; request for votes] snmplib: Avoid that sprint_realloc_octet_string() triggers a segmentation fault

2018-05-19 Thread Magnus Fromreide
On Sat, May 19, 2018 at 05:28:31PM -0700, Bart Van Assche wrote: > On 05/19/18 15:14, Magnus Fromreide wrote: > > On Sat, May 19, 2018 at 02:07:56PM -0700, Bart Van Assche wrote: > > > strlcpy() implementations typically scan for the end of the source > > > argum

Re: [PATCH; request for votes] snmplib: Avoid that sprint_realloc_octet_string() triggers a segmentation fault

2018-05-19 Thread Magnus Fromreide
On Sat, May 19, 2018 at 02:07:56PM -0700, Bart Van Assche wrote: > strlcpy() implementations typically scan for the end of the source argument > passed to strlcpy(). Hence avoid passing an unterminated string to strlcpy(). > > Reported-by: Stuart Henderson > Fixes: 7f05daa8e0e0 ("CHANGES: BUG: 34

Re: Net-SNMP 5.8.rc2 available for testing

2018-05-19 Thread Magnus Fromreide
On Fri, May 18, 2018 at 08:46:40PM -0700, Bart Van Assche wrote: > On 05/18/18 18:05, Stuart Henderson wrote: > > On 2018/05/18 18:36, Robert Story wrote: > > > snmplib: > > >- [BUG 2815]: Display UTF-8 characters again > > >- [BUG 3444939]: BUG: 1796886: snmplib: Avoid that >

Re: [PATCH, RFC] Add Travis and Appveyor CI support

2018-05-17 Thread Magnus Fromreide
On Thu, May 17, 2018 at 10:57:08AM -0400, Bill Fenner wrote: > On Thu, May 17, 2018 at 9:56 AM, Niels Baggesen via Net-snmp-coders < > net-snmp-coders@lists.sourceforge.net> wrote: > > > Den 17-05-2018 kl. 15:54 skrev Robert Story: > > > >> On Wed, 16 May 2018 07:23:32 -0700 Bart wrote: > >> BVA>

Re: RFC: fix --enable-read-only build failure due to snmpping

2018-05-15 Thread Magnus Fromreide
On Tue, May 15, 2018 at 08:01:12PM -0400, Robert Story wrote: > On Tue, 15 May 2018 12:12:18 -0700 Wes wrote: > WH> Robert Story writes: > WH> > WH> > On Tue, 15 May 2018 11:25:03 -0400 Bill wrote: > WH> > BF> Since snmpping requires set support, it should be > WH> > BF> conditional. My propose

Re: [PATCH 01/15] Cygwin64: Fix winExtDLL build

2018-05-15 Thread Magnus Fromreide
On Sun, May 13, 2018 at 09:31:58PM -0400, Robert Story wrote: > On Sun, 13 May 2018 14:31:39 -0700 Bart wrote: > BVA> The winExtDLL code assumes that sizeof(oid) == 4. Hence define > BVA> the 'oid' type as unsigned int when building with MSVC, MinGW > BVA> or Cygwin. This patch avoids that building

Re: On the nature of backward comparability

2018-05-15 Thread Magnus Fromreide
On Tue, May 15, 2018 at 08:33:20AM -0700, Wes Hardaker via Net-snmp-coders wrote: > Bart Van Assche writes: > > > Is there perhaps a list available of the MIBs that are compatible with > > --enable-read-only, --enable-mini-agent and --enable-minimalist? > > They all do different things: > > 1)

Re: Summary of meeting between NET-SNMP devs and ICEI

2018-04-12 Thread Magnus Fromreide
On Thu, Apr 12, 2018 at 12:19:35PM -0700, Keith Mendoza wrote: > On Thu, Apr 12, 2018, at 10:03 AM, Bill Fenner wrote: > > I'm sorry that I wasn't available for this meeting. I think one important > > pain point is the overhead of doing releases - 5.7.3 was years ago and > > there are very useful

Re: sysUptime uses gettimeofday

2018-03-28 Thread Magnus Fromreide
On Wed, Mar 28, 2018 at 12:49:48PM +0530, Pushpa Thimmaiah wrote: > Hi All, > > I believed that sysUpTime is counter that increments every seconds. But In > net-snmp code , > sysUpTime being calculated as difference between 'snmpd-starttime' and > 'current time' . > > I would like to know reaso

Re: CVE for this issue?

2018-01-30 Thread Magnus Fromreide
On Mon, Jan 29, 2018 at 04:09:59PM -0800, Bill Fenner wrote: > On Mon, Jan 29, 2018 at 8:19 AM, Magnus Fromreide > wrote: > > > On Mon, Jan 29, 2018 at 10:53:31AM -0300, Pedro Barbosa wrote: > > > Hi, > > > > > > Does anyone know which CVE regards to

Re: CVE for this issue?

2018-01-29 Thread Magnus Fromreide
On Mon, Jan 29, 2018 at 10:53:31AM -0300, Pedro Barbosa wrote: > Hi, > > Does anyone know which CVE regards to this issue? > > https://github.com/rapid7/metasploit-framework/pull/9396 > > /This exploit module exploits the SNMP write access configuration ability of > SNMP-EXTEND-MIB to configure

Re: net-snmp and openssl 1.1.0

2018-01-12 Thread Magnus Fromreide
On Thu, Jan 11, 2018 at 07:07:45PM -0800, Bart Van Assche wrote: > On 12/23/17 15:17, Sebastian Andrzej Siewior wrote: > > added those, added a const and removed the "HAVE_EVP_MD_CTX_CREATE" thingy. > > Hello Sebastian and Andreas, > > Please have a look at the current trunk. OpenSSL 1.1.0 suppor

Re: SNMP Trap not working

2017-08-12 Thread Magnus Fromreide
On Tue, Aug 08, 2017 at 08:42:39PM +, Michael Stein wrote: > This is my first time working with SNMP, but after reading the SNMP pages I'm > still having trouble getting a simple shell script to run when receiving a > trap. > > My /etc/snmp/snmptrapd.conf file looks like this: > > # Example

Re: Broken builds

2017-05-08 Thread Magnus Fromreide
On Mon, May 08, 2017 at 10:21:03PM -0700, Bart Van Assche wrote: > On 05/06/17 20:48, Magnus Fromreide wrote: > > On Fri, May 05, 2017 at 05:31:06PM -0700, Bart Van Assche wrote: > >> On 05/04/17 14:52, Magnus Fromreide wrote: > >>> On Thu, May 04, 2017 at 06:40:14A

Re: Broken builds

2017-05-06 Thread Magnus Fromreide
On Fri, May 05, 2017 at 05:31:06PM -0700, Bart Van Assche wrote: > On 05/04/17 14:52, Magnus Fromreide wrote: > > On Thu, May 04, 2017 at 06:40:14AM -0700, Bart Van Assche wrote: > > > On 05/04/17 00:25, Magnus Fromreide wrote: > > >

Re: vasnprintf

2017-05-06 Thread Magnus Fromreide
On Fri, May 05, 2017 at 05:30:14PM -0700, Bart Van Assche wrote: > On 05/04/17 14:58, Magnus Fromreide wrote: > > On Thu, May 04, 2017 at 06:42:58AM -0700, Bart Van Assche wrote: > >> On 05/04/17 00:18, Magnus Fromreide wrote: > >>> I just noticed that your alterna

Re: vasnprintf

2017-05-04 Thread Magnus Fromreide
On Thu, May 04, 2017 at 06:42:58AM -0700, Bart Van Assche wrote: > On 05/04/17 00:18, Magnus Fromreide wrote: > > I just noticed that your alternate version of vasnprintf calls realloc on > > the *strp argument but when I look at my system's version it seems to call > >

Re: Broken builds

2017-05-04 Thread Magnus Fromreide
On Thu, May 04, 2017 at 06:40:14AM -0700, Bart Van Assche wrote: > On 05/04/17 00:25, Magnus Fromreide wrote: > > I looks like the change 9641b472ef01208f92631016e91b0a4a518163f0 (openssl > > 1.1.0: Fix several build errors) broke the build on machines where openssl > > is mi

Broken builds

2017-05-04 Thread Magnus Fromreide
Hi! I looks like the change 9641b472ef01208f92631016e91b0a4a518163f0 (openssl 1.1.0: Fix several build errors) broke the build on machines where openssl is missing, I suppose this wasn't intentional? /MF -- Check out the

vasnprintf

2017-05-04 Thread Magnus Fromreide
Hi! I just noticed that your alternate version of vasnprintf calls realloc on the *strp argument but when I look at my system's version it seems to call malloc and just assign the result and given that one could imagine people calling it using an uninitilaized pointer then that behaviour sounds mo

Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-11 Thread Magnus Fromreide
On Tue, Apr 11, 2017 at 10:27:42AM -0500, Bill Fenner wrote: > Now I get a fair number of > > cc1: warning: unrecognized command line option "-Wno-implicit-fallthrough" > > Would it be better to try __attribute__((fallthrough))? Or, only add the > -W flag if the compiler supports it? Maybe add

Re: Un-featureize register_const_config_handler, or mark it as required in snmp_enum.c?

2017-02-27 Thread Magnus Fromreide
On Mon, Feb 27, 2017 at 02:46:30PM -0500, Bill Fenner wrote: > snmp_enum.c has been (very reasonably) changed to > use register_const_config_handler(). This confounds --with-minimalist, > though, because snmp_enum.c doesn't require the feature. > > I see two ways forward here: > 1. Make register_

Re: Proposed fix for mib.c

2017-01-05 Thread Magnus Fromreide
On Thu, Jan 05, 2017 at 02:21:42PM +, Moreno Floris wrote: > Hello, > > I'm running net-snmp 5.7.3 on an embedded platform with 16KB of stack for a > single task and I ran into a nasty stack overflow while running the coding > tutorial example. > > After some investigation I found out that

Re: [SCM] Net-SNMP branch V5-7-patches updated. v5.7.3-652-g413eb44

2016-12-12 Thread Magnus Fromreide
On Mon, Dec 12, 2016 at 02:56:32PM -0500, Bill Fenner wrote: > On Mon, Nov 28, 2016 at 11:44 PM, bart > wrote: > > > > > The branch, V5-7-patches has been updated > > 413eb441c2f71298cd07ff0c480505ba62cad8bb -> > > 920f20b745da6c90c56a68d6d1ea782ca4fc074b > > > > ... > > > > > create mode 10

Re: [SCM] Net-SNMP branch master updated. v5.7.3-1973-gf90d891

2016-11-13 Thread Magnus Fromreide
On Sun, Nov 13, 2016 at 10:24:30AM -0500, Lee wrote: > On 11/9/16, Magnus Fromreide wrote: > > On Tue, Nov 08, 2016 at 06:30:57PM -0800, Bart Van Assche wrote: > >> On 11/08/16 08:03, Robert Story wrote: > >> > I've updated both records to use the documentation

Re: [SCM] Net-SNMP branch master updated. v5.7.3-1973-gf90d891

2016-11-09 Thread Magnus Fromreide
On Tue, Nov 08, 2016 at 06:30:57PM -0800, Bart Van Assche wrote: > On 11/08/16 08:03, Robert Story wrote: > > I've updated both records to use the documentation netblock. See if > > that works better for you. > > Hello Robert, > > T070com2sec_simple passes again on my development system. > As t

net-snmp fails to build

2016-09-18 Thread Magnus Fromreide
Hello. Tried to build net-snmp today. Among the flags I included in my build was --with-systemd=yes. This triggers the error message ../../git2/net-snmp/snmplib/transports/snmpUDPIPv4BaseDomain.c: In function 'netsnmp_udpipv4base_transport_socket': ../../git2/net-snmp/snmplib/transports/snmpUD

Re: Regarding ASN1 parser/Compiler

2016-07-18 Thread Magnus Fromreide
On Mon, Jul 18, 2016 at 10:36:48AM +, Pavan Tatavarthi wrote: > Dear members, > > I have a query regarding the ASN1 related module. > Does Net-SNMP use ASN1 compiled code from the Objective Systems ASN1 compiler > ? No. /MF --

Re: perl 5.23.2+ and net-snmp don't get along

2016-03-18 Thread Magnus Fromreide
On Wed, Mar 16, 2016 at 01:33:14PM -0400, Robert Story wrote: > On Wed, 16 Mar 2016 12:28:14 -0400 Bill wrote: > BF> > > > I think this needs some discussion. While the change does > BF> > > > not affect binary compatibility, it does remove a typedef > BF> > > > that has been around since 1998. It'

Re: perl 5.23.2+ and net-snmp don't get along

2016-03-06 Thread Magnus Fromreide
On Sat, Mar 05, 2016 at 02:59:55PM -0800, Bart Van Assche wrote: > On 03/03/16 19:05, Robert Story wrote: > > On Sat, 20 Feb 2016 19:36:20 -0800 Bart wrote: > > BVA> On 02/05/16 17:35, Robert Drake wrote: > > BVA> > The perl guys apparently added a definition for U64 which > > BVA> > conflicts with

Re: Error while Adding a new MIB

2016-01-29 Thread Magnus Fromreide
On Fri, Jan 29, 2016 at 12:56:12PM +0530, deepak.sachan wrote: > hello > I am trying to add a new MIB in net-snmp .What i did is- > 1. Generate a new MIB (i.e. DEALN-TROPO-MIB) by some MIB builder software > 2. I copied DEALN-TROPO-MIB into usr/snmp/mibs > 3.I ran mib2c -c DEALN-TROPO-MIB::sysRa

RFC: Pass the vb value to NetSNMP::TrapHandler

2015-09-26 Thread Magnus Fromreide
this and I would like to know if this is a reasonable approach or if I messed up completley as this is the first time I have tried to make anything with perl extensions. /MF >From dac01de798e46673932c9a68512e0a01599ca680 Mon Sep 17 00:00:00 2001 From: Magnus Fromreide Date: Fri, 25 Sep 2015 1

Re: Create MIB file with my PEN OID

2015-08-10 Thread Magnus Fromreide
On Mon, Aug 03, 2015 at 11:41:37AM +0530, Vijay Nayani wrote: > > Dear All, > > I want to create MIB file with my PEN OID. Please find below requirement. > > SNMP v2 along with MIN-II should return attributes. > > 1. Host Name > 2. Mac Address > 3. OS & its Version > Manufacturer Name >

Re: net-snmp issue

2015-08-10 Thread Magnus Fromreide
On Mon, Jul 27, 2015 at 05:43:47AM +, Uma Arunachalakani wrote: > Hi , > > > > > > I have installed Net-snmp 5.5.2 in my Linux m/c. Upon starting snmpd > > service i get the below error. Please tell a way forward. > > > > [root@localhost log]# cat snmpd.log > > getaddrinfo: start Name

Re: agentX communication issue on net-snmp5.7.2

2015-08-10 Thread Magnus Fromreide
On Tue, Jul 21, 2015 at 09:10:45AM +, Sagar Kapadi (sakapadi) wrote: > Hi, > > This is Sagar Kapadi. > I am using net-snmp5.7.2 stack on power PC architecture. Here we are trying > to stress the traps. So we are sending a trap at every 50seconds of interval. > > I am hitting an issue where I

Re: Writing a custom sub agent for a oid prefix

2015-06-30 Thread Magnus Fromreide
On Tue, Jun 30, 2015 at 08:53:16PM +, Mani Pooni wrote: > I am trying to use net-snmp to write my own subagent. My use case is like > this. I want anything with a specific oid prefix needs to forwarded to my > subagent. I have looked at the autogenerated code. But for that I need to > defin

Re: Bug in snmpUDPIPv6Domain.c

2015-03-17 Thread Magnus Fromreide
On Tue, Mar 17, 2015 at 10:36:27PM +, Junming Gao wrote: > Hi Magnus, > The bug is in function netsnmp_udp6_getSecName of filesnmpUDPIPv6Domain.c. > The bug would prevent agent from obtaining correct Security Name. It looks a > port error or merge error. > The patch is attached. It applies to

Re: Bug in snmpUDPIPv6Domain.c

2015-03-03 Thread Magnus Fromreide
On Tue, Feb 10, 2015 at 07:38:21PM +, Junming Gao wrote: > There is a bug in the file that preventing snmpd processing ipv6 packet. Once > fixed, it works as expected.The function is netsnmp_udp6_getSecName. Would you mind to elaborate on what the bug might be, and maybe even contribute a pat

Re: NEt-SNMP questions

2015-03-03 Thread Magnus Fromreide
On Tue, Feb 17, 2015 at 05:15:04AM +, John Morton wrote: > With regards to running native SNMPWALK from an Ubuntu server, and trying to > use the following string: > > snmpwalk -v 3 -u *** -a SHA -A f&hDbv*(g-q4 -x AES -X XX.XX.XX.XX > > the underlined password stops the command

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

2015-02-17 Thread Magnus Fromreide
On Tue, Feb 17, 2015 at 09:50:24AM -0500, Bill Fenner wrote: > 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, a

Re: Fwd: Snmptrap unsigned type not working as expected

2015-02-04 Thread Magnus Fromreide
On Wed, Feb 04, 2015 at 12:03:36PM +0530, Ashwini Pagade wrote: > Hi MF, > > While testing further in detail I found below behaviour in netsnmp: > > When I send trap below for the integer value = 2^31 i.e 2147483648 for the > first time: > snmptrap -c public -v 2c vl-pun-sms-dv01 '' 1.3.6.1.4.1.2

Re: Fwd: Snmptrap unsigned type not working as expected

2015-02-01 Thread Magnus Fromreide
On Sun, Feb 01, 2015 at 07:58:12PM +0530, Ashwini Pagade wrote: > Hi, > > I am using snmpV3 adapter and passing V2 traps to it by using commands as > below. It looks like the range for type *u* (i.e. unsigned) is upto (2^31) > - 1 (i.e. 2147483647). I was expecting it to be (2^32) - 1 (i.e. > 4294

Re: Nagios snmp alarm sending

2014-12-27 Thread Magnus Fromreide
On Wed, Dec 17, 2014 at 11:39:27AM +, mahmoud.aliza...@teliasonera.com wrote: > Hi > > I am trying to configure Nagios to use snmp to send alarm out to another > server. > > Do you have a procedure about how to ? No, but IIRC you can make Nagios execute general commands when some event is

Re: Optimizing the large_fd_set code

2014-07-07 Thread Magnus Fromreide
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-created large fd set often has an lfs_setsize of zero, and a desired > size of

Re: ASN.1 and Request ID field

2014-06-03 Thread Magnus Fromreide
On Tue, Jun 03, 2014 at 12:50:28PM -0700, Juges, Didier wrote: > Snmp newbie here, so bear WITH ME PLEASE... > > I am confused and I hope someone can help. > > I am writing an SNMP agent for a Cortex M4 application. > The SNMP books I have bought and what I have read on the net indicate that > a

Re: failed to run NET-SNMP-TUTORIAL-MIB example

2014-03-21 Thread Magnus Fromreide
On Fri, Mar 21, 2014 at 12:37:16PM -0700, linda zhu wrote: > Hi, > > I tried to run the examples given for "Compiling in your new MIB module". I > followed the instruction, copied nstAgentComduleObject.c and > nstAgentModuleObject.h to agent/mibgroup, and run the command: >  ./configure --with-m

Re: SNMPV3 for VxWorks

2014-01-14 Thread Magnus Fromreide
On Tue, Jan 14, 2014 at 08:06:52PM -0800, Theresa Tran wrote: > Hi net-snmp community, > > I'm currently investigating on how to convert the current snmp agent from > version 1 to 3. I'm new to the project and this agent uses library from > Carnergie Mellon for VxWorks long time ago. I think I h

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread Magnus Fromreide
On Tue, 2013-12-03 at 10:22 +0800, namgmail wrote: > Hi pro, > > I have a problem with SNMPSET ,this is my command: > > snmpset -v1 -c private > 192.168.x.x.1.3.6.1.4.1.426.8.1.20.5.1.1 s > > > If it's short string it work fine but with long string it automatic > convert to

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

2013-12-01 Thread Magnus Fromreide
On Fri, 2013-11-29 at 11:24 +0800, yzhu1 wrote: > On 11/26/2013 02:58 PM, Magnus Fromreide wrote: > > On Tue, 2013-11-26 at 11:05 +0800, yzhu1 wrote: > >> Hi, Magnus > >> > >> Follow your advice, I made the 3 new patches. Now the patches are in the > >>

Re: possible snmpd bug using ASN_OPAQUE_U64 and subagent

2013-11-28 Thread Magnus Fromreide
On Thu, 2013-09-26 at 11:34 -0600, r...@softhome.net wrote: > Please help me track down a problem I am having with snmpd and subagent > using ASN_OPAQUE_U64. I am using net-snmp 5.7.2 on x86_64 Linux, Ubuntu > 12.04 LTS. Thanks for reporting these problems. I think I have added a solution for t

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

2013-11-25 Thread Magnus Fromreide
On Tue, 2013-11-26 at 11:05 +0800, yzhu1 wrote: > > Hi, Magnus > > Follow your advice, I made the 3 new patches. Now the patches are in the > attachment. Please check them. > Thanks a lot. Are that really the new patches? It seems all the issues I spoke about are still present. /MF -

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

2013-11-25 Thread Magnus Fromreide
On Mon, 2013-11-25 at 19:04 +0800, zhuyj wrote: > On 11/25/2013 02:34 AM, Magnus Fromreide wrote: > > On Fri, 2013-11-22 at 14:27 +0800, zhuyj wrote: > > > > > > 4.patch -p1 < V5-7-patches-snmpTargetParam_support_zero_OID.patch > > snmpTargetAddrEntry.c: &

  1   2   3   4   5   6   7   8   9   >