Project

General

Profile

Bug #30813

Make SNMP indexes 1-based as described in RFC 2578

Added by Chris Hamer over 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
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:

CPUI: Intel(R) Xeon(R) CPU E3-1220L V2 @ 2.30GHz
RAM: 16311MB (ECC)
HP Microserver Gen8
2 x 4TB western digital NAS Red Drives

ChangeLog Required:
No

Description

The MIB zpoolindex seems to be incorrect as I can't snmpwalk the first index '0' which is my main zpool.

Running:
snmpwalk -v 2c -c MyCommunity 172.16.80.80 FREENAS-MIB::zpoolDescr

Reveals my zpools:
FREENAS-MIB::zpoolDescr.0 = STRING: OneDrive
FREENAS-MIB::zpoolDescr.1 = STRING: freenas-boot

Running:
snmpwalk -v 2c -c MyCommunity 172.16.80.80 FREENAS-MIB::zpoolDescr.0

Results in a index out of range error.
FREENAS-MIB::zpoolDescr.0: Unknown Object Identifier (Index out of range: 0 (zpoolIndex))

Within the FREENAS-MIB.txt file:

zpoolIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
::= { zpoolEntry 1 }

Changing "Integer32 (1..2147483647)" to "Integer32 (0..2147483647)" fixes the problem.

Associated revisions

Revision e575d221 (diff)
Added by Vladimir Vinogradenko about 1 year ago

fix(snmp): Make SNMP indexes 1-based as described in RFC 2578 section 7.7

Ticket: #30813

History

#1 Updated by Dru Lavigne over 1 year ago

  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Target version set to 11.2-RC2

#2 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Unscreened to Not Started

#3 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Not Started to In Progress

#4 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from In Progress to Done

#5 Updated by Dru Lavigne about 1 year ago

  • Subject changed from SNMP Index out of range to Make SNMP indexes 1-based as described in RFC 2578
  • Target version changed from 11.2-RC2 to 11.2-BETA1
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by Dru Lavigne about 1 year ago

  • Status changed from Done to Ready for Testing

#7 Updated by Nick Wolff about 1 year ago

  • Status changed from Ready for Testing to Passed Testing

Fixed

root@fncertified:~ # snmpwalk -v2c -c public 127.0.0.1 FREENAS-MIB::zpoolDescr
FREENAS-MIB::zpoolDescr.1 = STRING: freenas-boot
FREENAS-MIB::zpoolDescr.2 = STRING: tank
root@fncertified:~ # snmpwalk -v2c -c public 127.0.0.1 FREENAS-MIB::zpoolDescr.1
FREENAS-MIB::zpoolDescr.1 = STRING: freenas-boot
root@fncertified:~ # snmpwalk -v2c -c public 127.0.0.1 FREENAS-MIB::zpoolDescr.1

#8 Updated by Dru Lavigne about 1 year ago

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

Also available in: Atom PDF