Re: Net-SNMP 5.10.pre1 released for testing

2025-03-19 Thread Craig Small via Net-snmp-coders
On Sat, 8 Mar 2025 at 10:50, Wes Hardaker via Net-snmp-coders < net-snmp-coders@lists.sourceforge.net> wrote: > only be used for bug fixes at this point. Please give 5.10.pre1 a > whirl -- it certainly won't be perfect yet. > I've built 5.10~pre1 using the Debian package setup, was a few patches

Re: (Previous email had a weird formatting) Custom Mib returning wrong values when Magic number is larger than 255

2024-10-11 Thread Craig Small via Net-snmp-coders
Hi, You can definitely have more than 255 custom OIDs, the trick is you only have 255 values for magic. I'm surprised hacking the magic value didn't crash it before. There's probably a few options; the good, the bad and the ugly. Good Rebuild the MIB and functions so each type of variable uses

Re: Reconfigure snmpd listening ports

2024-09-18 Thread Craig Small via Net-snmp-coders
On Mon, 16 Sept 2024 at 22:44, Teus Benschop wrote: > The daemon kept the same ports open as before editing the snmpd.conf even > in case some agentaddress entries were removed from snmpd.conf. > Some changes to the configuration file can be enabled with a reload or HUP and some things need a com

Re: (Previous email had a weird formatting) Custom Mib returning wrong values when Magic number is larger than 255

2024-07-29 Thread Craig Small via Net-snmp-coders
On Fri, 12 Jul 2024 at 08:31, Neeraj Bansal wrote: > We recompile everything and install no problem, but instead of fixing our > problem it caused net-snmp-5.9.3 to not be able to start. The error it gives > is: Bad user id, which could be a red herring. example below: > [root@testboard: /root#

Re: Unable to compile net-snmp due to netlink API change

2024-04-03 Thread Craig Small via Net-snmp-coders
On Wed, 3 Apr 2024 at 16:05, Bart Van Assche wrote: > Something else must be going on. This is the code from configure.ac that > checks for libnl-3: > > if test "x$ac_cv_header_netlink_netlink_h" = xyes; then > AC_EGREP_HEADER([nl_socket_free], [netlink/socket.h], >

Re: Unable to compile net-snmp due to netlink API change

2024-04-02 Thread Craig Small via Net-snmp-coders
On Wed, 3 Apr 2024 at 02:19, Bart Van Assche wrote: > Can you please check the configure script logs to see why libnl-3 was > not detected? > libnl-3 was detected: configure:27875: $PKG_CONFIG --exists --print-errors "libnl-3.0" configure:27878: $? = 0 configure:27936: result: yes But libnl-rout

Unable to compile net-snmp due to netlink API change

2024-04-02 Thread Craig Small via Net-snmp-coders
Hello All, I was attempting to compile the git head of net-snmp. One big change is that uses netlink sockets instead of reading /proc/net/* The issue is the API is different to the library I can see. mibgroup/mibII/tcpTable.c:631:12: error: too few arguments to function ‘nl_geterror’ 631 |

Updating the LM-SENSORS MIB (Issue #752)

2024-03-26 Thread Craig Small via Net-snmp-coders
Hi, This email is about working out how the LM-SENSORS MIB should be updated. If it was just a matter of updating the SNMP agent, I'd just create a pull request but the MIB is (might be?) different. The issue is that Gauge32 can only represent a non-negative integer (ref RFC 2578). which means if

Re: Getting listening port number while processing request

2023-09-08 Thread Craig Small via Net-snmp-coders
On Tue, 5 Sept 2023 at 22:16, Teus Benschop wrote: > I could not find a way to display the port number, also not using the > various debug tokens. > I ran snmpd as snmpd -f -Le -Dnetsnmp_udp 2000,3000 and got netsnmp_udp: recvfrom fd 6 got 41 bytes (from UDP: [127.0.0.1]:36600->[127.0.0.1]:2000)

Re: Net-SNMP 5.9.4.rc1 available for final testing

2023-07-12 Thread Craig Small via Net-snmp-coders
I asked the same thing a few weeks ago. Wes said he put the key on the mit servers. I haven't checked that (or rc1 either). Both are on my to-do list. - Craig On Wed, 12 July 2023, 19:12 Alexander Bergmann via Net-snmp-coders, < net-snmp-coders@lists.sourceforge.net> wrote: > Hi Wes / everyon

Re: snmptrap v3 authentication

2023-04-25 Thread Craig Small via Net-snmp-coders
On Sat, 15 Apr 2023 at 11:12, Simon Chamlian wrote: > > snmptrap -v 3 -u Simon -a MD5 -A SimonPass -l authNoPriv 172.27.37.227 > "" coldStart.0 > > I do receive the trap on my Trap Receiver even if I didn't specify a > Username and Authentication password in the MIB browser (on 172.27.37.227 )

Re: Diffie-Hellman Key

2022-09-06 Thread Craig Small via Net-snmp-coders
Hi Simon, My understanding is the only way of adding the key is with the snmpusm command. Except it doesn't work for me. $ snmpusm -v3 -u simon -l authPriv -a SHA1 -A simon-pass -x AES128 -X simon-priv localhost changekey simon snmpusm: Can't get diffie-helman exchange from the agent (maybe it