Project

General

Profile

Bug #28572

Fix issue with SNMP over IPv6

Added by Matt Clauson about 1 year ago. Updated 10 months ago.

Status:
Done
Priority:
Expected
Assignee:
William Grzybowski
Category:
OS
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Trying to SNMP poll my FreeNAS 11.1 instance via IPv6, discovered it did not work. It appears that the script generating the snmpd.conf file is not putting in an SNMP community string specific for IPv6, which is required. Specific fix is to add an "rocommunity6" string into the snmpd.conf file. I've just cloned the repo to fix and submit a pull request (my first open source project contribution, yay!) and I'll try and get that out today, but I wanted to get this bug documented first after beating my head against it for several hours.

History

#1 Updated by Matt Clauson about 1 year ago

Fix submitted in pull request [[https://github.com/freenas/freenas/pull/868]].

#2 Updated by Matt Clauson about 1 year ago

Additionally, submitted PR #869 to patch this in the 9.10 code tree, as the same bug exists there.

#3 Updated by William Grzybowski about 1 year ago

  • Status changed from Not Started to Done
  • Target version set to 11.2-RC2
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

PR merged.

Unfortunately its too late for 11.1-U2 (we are already in freeze mode)

#4 Updated by Matt Clauson about 1 year ago

Win some, lose some. I'm just happy to have found and fixed the problem, and documented it for posterity. I was pulling out my (rapidly thinning) hair for 4 hours on this, until I realized what the problem was. I'm just glad it was a simple and easy fix!

#5 Updated by William Grzybowski about 1 year ago

Matt Clauson wrote:

Win some, lose some. I'm just happy to have found and fixed the problem, and documented it for posterity. I was pulling out my (rapidly thinning) hair for 4 hours on this, until I realized what the problem was. I'm just glad it was a simple and easy fix!

Thanks for that, much appreciated. ; )

#6 Updated by Dru Lavigne about 1 year ago

  • Subject changed from SNMP does not respond when polling via IPv6 to Fix issue with SNMP over IPv6
  • Assignee changed from Release Council to William Grzybowski

#7 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1

#8 Updated by Dru Lavigne 12 months ago

  • Status changed from Done to Ready for Testing

#9 Updated by Nick Wolff 10 months ago

  • Status changed from Ready for Testing to Passed Testing

This is now working. Tested example below

root@fncertified:~ # snmpwalk -v1 -c public 2620:a8:: | head -20
SNMPv2-MIB::sysDescr.0 = STRING: FreeNAS-11.2-MASTER-201806210452 (5c68c69). Hardware: amd64 Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz running at 2200. Software: FreeBSD 11.1-STABLE (revision 199506)
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.8
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (6882) 0:01:08.82
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: fncertified.ad01.tn.ixsystems.com
SNMPv2-MIB::sysLocation.0 = STRING: unknown
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.7 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.8 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.9 = OID: SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance
SNMPv2-MIB::sysORID.10 = OID: NOTIFICATION-LOG-MIB::notificationLogMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing and Dispatching.

#10 Updated by Dru Lavigne 10 months ago

  • Status changed from Passed Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF