Duplicate traps from non-main thread in AgentX sub-agent

2020-08-30 Thread John Bize
When running an agentx sub-agent, and sending traps (v2 traps) from a non-main thread, I frequently get duplicates sent after a few seconds.  My code is not sending the duplicates, but using wireshark, I can observe them on the AgentX socket.  (It doesn't matter if I use a socket or named pipe.)

Re: snmpd.conf v3 file in non-standard directory

2020-07-15 Thread John Bize
See if adding "-Dread_config" to the command line sheds any light on what's going on. On 15-Jul-2020 2:45 PM, Gershman, Vladimir wrote: > > Hello, > >   > > I set up snmpv3 to use /home/user/.snmp/snmp.conf. My snmpd.conf is > located  in /test/dir1/. There is the original /etc/snmp/snmpd.conf >

SNMPv3 authPriv informs (trapsess)

2020-07-04 Thread John Bize
I have an embedded system running Debian 10 with snmpd v5.7.3. I'd like to configure SNMPv3 trapsess to send auth,priv informs.  How is this done *without putting clear-text passwords *into the snmpd.conf file? Thanks. ___ Net-snmp-users mailing list

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-11 Thread John Bize
0x1fd4728, incr_retries=1) at snmp_api.c:6750 > #4  0xb6e6e90c in snmp_sess_timeout (sessp=sessp@entry=0x1fcd138) at > snmp_api.c:6829 > #5  0xb6e6e95c in snmp_timeout () at snmp_api.c:6663 > #6  0x00012b36 in receive () at snmpd.c:1347 > #7  0x000126a4 in main (argc=, argv=) at >

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread John Bize
Himanshu, I don't know what type of system you are using, but I'm guessing that without predictive interface names it might be very old.  I don't know what you are trying to accomplish.  Do you want to serve SNMP on both the WiFi and Ethernet interfaces?  If so, you may need to hold off starting

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-08 Thread John Bize
I thought snmpd can support mutiple > interfaces at them same time.. > > Thank & Regards > Himanshu. > > -Himanshu > > On Thu, Jul 9, 2020, 02:35 John Bize <mailto:jb...@godswind.org>> wrote: > > Himanshu, > > I don

Double traps sent via agentx

2020-07-07 Thread John Bize
I have an embedded system running Debian 10 with snmpd v5.7.3. I am using an agentX sub-agent to send traps to a client (send_v2trap). My /etc/snmp/snmpd.conf contains one trap sink: trap2sink 192.168.1.215 public Roughly every 30 seconds, the agent is waking up and sending a couple of

Re: snmpd crashes when wlan0 interface acquire IP address

2020-07-09 Thread John Bize
        return 0;/ > / > / > Regards > Himanshu > > On Thu, Jul 9, 2020 at 5:31 AM John Bize <mailto:jb...@godswind.org>> wrote: > > Himanshu, > > I haven't looked at that part of the code, but I wouldn't expect > snmpd to dynamically handle

Re: SNMPv3 authPriv informs (trapsess)

2020-07-17 Thread John Bize
>   > > Or depending how you’ve done it you can delete “your” snmpd.conf file > once snmpd has started.  We create our snmpd.conf just before we try > to open snmpd and so the passwords are only added then.  We then > delete the file once snmpd is running. > >   > >

Re: SNMPv3 authPriv informs (trapsess)

2020-07-17 Thread John Bize
Bump please. On 04-Jul-2020 10:11 AM, John Bize wrote: > > I have an embedded system running Debian 10 with snmpd v5.7.3. > > I'd like to configure SNMPv3 trapsess to send auth,priv informs.  How > is this done *without putting clear-text passwords *into the > snmpd.con

Re: Double traps sent via agentx

2020-07-17 Thread John Bize
Bump please. On 07-Jul-2020 2:30 PM, John Bize wrote: > I have an embedded system running Debian 10 with snmpd v5.7.3. > > I am using an agentX sub-agent to send traps to a client (send_v2trap). > > My /etc/snmp/snmpd.conf contains one trap sink: > > trap2sink

Re: SNMPv3 authPriv informs (trapsess)

2020-07-17 Thread John Bize
ealize you may need to add the createUser > statements to the /var/lib/snmp/snmpd.conf file directly, instead of > /etc/snmp/snmpd.conf (these are Debian 10 paths).  It will replace > them  with usmUser statements, so you shouldn’t need to delete anything. > >   > > *From:* John Bize > *

Re: SNMPv3 authPriv informs (trapsess)

2020-07-17 Thread John Bize
gineID will be the one on > the agent. That is the default, so there will be no need to specify a > -e argument on the createUser call. > >   > > *From:* Atkins, Brian > *Sent:* Friday, July 17, 2020 1:38 PM > *To:* John Bize ; Colin Anderson > ; net-snmp-users@lists.source

Re: SNMPv3 authPriv informs (trapsess)

2020-07-17 Thread John Bize
yours will > be a different. > >   > > rouser scott > > createUser scott MD5 "becky000" DES "molly000" > > trapsess -v 3 -n "" -u scott -a MD5 -A "becky000" -x DES -X "molly000" > -l authPriv 192.168.55.50 > >

Re: Failed Compile From Source on Debian 10 i386

2021-05-13 Thread John Bize
Many months ago, I tried to get a Debian 10 backport of net-snmp 5.9.  Unfortunately, there was zero interest. Have you tried using the ldconfig tool, for recreating the dynamic linker cache, printing it, etc?  Based on what you have, that is what I would look at next.  (and LD_LIBRARY_PATH

Re: Upgrading Net-SNMP to 5.9 on Raspberry Pi OS (i.e. ARMHF Debian 10 Buster)?

2021-02-25 Thread John Bize
Since you mentioned it Tobias, In July of last year, I submitted a Debian backport request, but received no responses. https://lists.debian.org/debian-backports/2020/07/msg4.html I realize of course that is not the same as RaspianOS, but this is the first mention I've seen since then.

Re: CIS hardening?

2021-04-19 Thread John Bize
I'll take a shot at this. 1. For an authoritative reply however, one should probably direct CIS questions to CIS. 2. However, any reasonable security posture would have you disable all unused services.  This is simply SOP to reduce the attack surface. 3. As for net-snmp specifically, it's

net-snmp-create-v3-user on Debian 11

2022-06-23 Thread John Bize
In a recent thread, Wes mentioned using "net-snmp-config --create-snmpv3-user" to create SNMP v3 users.  I recently started using net-snmp on Debian 11 (bullseye) and discovered that the installed /usr/bin/net-snmp-create-v3-user script had an undefined variable (datarootdir). My workaround

Re: net-snmp-create-v3-user on Debian 11

2022-06-23 Thread John Bize
reported: https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1969623 (In particular, in the Description and comment #4) On Thu, Jun 23, 2022 at 1:46 PM John Bize wrote: In a recent thread, Wes mentioned using "net-snmp-config --create-snmpv3-user" to create SNMP v3