Hi
Having an internal (MY-INTERNAL-MIB) and a customer module
(MY-CUSTOMER-MIB), both defining a "hwNetEthIndex" object.
"MY-CUSTOMER-MIB" defining range (0..1) for this object and
"MY-INTERNAL-MIB" defining range (0..2).
I wonder about how the following output (snmptranslate v5.7.2 under
Ubuntu 14.04) can be true (range of hwNetEthIndex element is defined as
(0..1), and yet snmptranslate gives an answer for hwNetEthIndex.2 -
instead of saying "Unknown Object Identifier (Index out of range: 2
(hwNetEthIndex)))":
snmptranslate -m ALL MY-CUSTOMER-MIB::hwNetEthIndex.2 -On -Td
.1.3.6.1.4.1.1024.50.1.5.2.1.1.1.2
hwNetEthIndex OBJECT-TYPE
-- FROM MY-CUSTOMER-MIB
SYNTAX Integer32 (0..1)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Entry index of table"
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
internal(1024) dt50(50) base(1) hardware(5) hwNetwork(2)
hwNetEthernetTable(1) hwNetEthernetTableEntry(1) hwNetEthIndex(1) 2 }
When using snmptranslate (v5.7.3) on an openwrt device, I experience a
different problem:
snmptranslate -m ALL MY-INTERNAL-MIB::hwNetEthIndex.2 -On -Td
MY-INTERNAL-MIB::hwNetEthIndex.2: Unknown Object Identifier (Index out
of range: 2 (hwNetEthIndex))
allthough the definition of MY-INTERNAL-MIB::hwNetEthIndex looks like this:
hwNetEthIndex OBJECT-TYPE
-- FROM MY-INTERNAL-MIB
SYNTAX Integer32 (0..2)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Entry index of table"
Looks like snmptranslate is using the definition of the first found
module having object "hwNetEthIndex" (which in my case is
MY-CUSTOMER-MIB) for range checking - even if I provide the OID
<module>::<element>!?
Is this as it should be - or is this a bug?
Regards
Phil
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users