snmpd crash when started with udp, dltsudp, tlstcp

2019-12-04 Thread Larry Hayes
I am running net-snmp 5.8 r0. I can get snmpd, snmptrapd and snmpget working with dtlsudp and tlstcp. Except for some corner cases: If I have a trap session defined in the snmpd.conf file, but the snmptrapd is not running. snmpd gets a SIGSEGV at startup time. (If I start snmptrapd first, then ev

Re: Finding mib2c

2019-12-17 Thread Larry Hayes
If you extracted the tarball, then you can find it in the local directory. If you have installed it on your system (assuming a make install was done) /usr/local/bin/mib2c At least that is where it is on my Ubuntu install. On Tue, Dec 17, 2019 at 9:53 AM Philip Rowe wrote: > Hello, > > > > I am

Re: snmp agent responds to v3 requests and v2c only requests

2020-01-14 Thread Larry Hayes
You should be able to do what you have laid out. Here is a possible starting point. To restrict who can access SNMP and what community string they use: com2sec IP/CIDR For example: com2sec mysec 10.10.10.0/24 'my_string' all access from any IP on that subnet to get specific IP: 10.10

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

2020-02-05 Thread Larry Hayes
YSOR_TABLE( companyx_base_oid, companyx_base_oid_len, "MIB for Company base OIDs"); REGISTER_SYSOR_TABLE( companyx_events_oid, companyx_events_oid_len, "MIB for Company notifications and traps"); REGISTER_SYSOR_TABLE( companyx_mgmt_oid, companyx_mgmt_oid_len, "M

Re: v5.8 - Error opening specified endpoint ""

2020-03-06 Thread Larry Hayes
Have you tried specifying the listening address, I know it's optional but... snmpd -c /home/user/my_snmpd.conf -Lf /tmp/snmpd_log.txt udp:0.0.0.0:161 On Thu, Mar 5, 2020 at 11:53 AM Simon Chamlian wrote: > Hi, > > When I start snmpd agent, it exists with an error message: > Error

Re: SNMP V3 feature request

2020-09-15 Thread Larry Hayes
There TLS/DTLS support in net-snmp. http://net-snmp.sourceforge.net/wiki/index.php/Using_DTLS On Fri, Sep 11, 2020 at 11:11 PM Pavan Kumar wrote: > Hi > > For the scripted environments, the authPriv option in v3 requires the > passphrases to be given along with other options of the snmp comma

Re: Snmpv3 users details are not deleting from /var/net-snmp/snmpd.conf file

2020-12-14 Thread Larry Hayes
I am no expert, but do deal with creating and deleting SNMP v3 users in my job. You may have to use the tool, snmpuser to remove V3 users without restarting the snmpd daemon. >From the man page: " *snmpusm* is an SNMP application that can be used to do simple maintenance on the users known to an

Re: Problems attempting to compile net-snmp 5.8 libs without libcrypto

2021-06-14 Thread Larry Hayes
Not sure how to get rid of the libnetsnmpmibs.so, But you might try the configure option: '--disable-applications' to get rid of the libsnmptrapd.so >From configure help: --disable-applications Do not build the apps (snmpget, ...). On Sun, Jun 13, 2021 at 10:13 AM Weiland, Nicholas

Re: Automatic update of snmpd.conf to show new users

2021-06-24 Thread Larry Hayes
I am more of a user of the net-snmp library so take what I say with skepticism. The snmpusm should be updating the usmUserTableby sending messages to the snmpd to do the work. You can query this table to verify that the users are created in it. Once in this table, I would suspect that these users

Re:

2021-09-30 Thread Larry Hayes
Are you sure you have Wireshark setup correctly to decrypt the messages? WireShark: Edit -> Preferences -> Protocols -> SNMP -> Users Table https://wiki.wireshark.org/SNMP is a helpful link also. On Thu, Sep 30, 2021 at 1:56 PM Pushpa Thimmaiah wrote: > Hi , > > I am using net-snmp-5.9 (cen

Re: Re-registering sysContact and sysLocation with subagent

2022-01-28 Thread Larry Hayes
Someone just this month asked about taking control of the system description. I would suspect that sysContact and sysLocation would follow the same way. Their solution was to unregister the OID then register your own handler. unregister_mib() API. https://sourceforge.net/p/net-snmp/mailman/mess