You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of a field that is not found when loading the RMON2-MIB. LastCreateTime has TimeStamp as a parent type with a textual convention.
$ ./mib2go generate -d mibs -M /<redacted>/snmp-mibs RMON2-MIB
2020/09/11 11:23:33 [I] Setting path /<redacted>/snmp-mibs
2020/09/11 11:23:33 [E] Module RMON2-MIB: Type not found for node etherStatsCreateTime
RMON2-MIB (LAST-UPDATED "9605270000Z")
IMPORTS TEXTUAL-CONVENTION, RowStatus, DisplayString, TimeStamp FROM SNMPv2-TC
etherStatsCreateTime OBJECT-TYPE
SYNTAX LastCreateTime
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The value of sysUpTime when this control entry was last
activated. This can be used by the management station to
ensure that the table has not been deleted and recreated
between polls."
::= { etherStats2Entry 2 }
LastCreateTime ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"This TC describes an object that stores the last time its
entry was created.
This can be used for polling applications to determine that an
entry has been deleted and re-created between polls, causing
an otherwise undetectable discontinuity in the data."
SYNTAX TimeStamp
SNMPv2-TC
TimeStamp ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"The value of the sysUpTime object at which a specific
occurrence happened. The specific occurrence must be
defined in the description of any object defined using this
type."
SYNTAX TimeTicks
I have the same issues with LLDP-MIB (revision 200505060000Z): LLDP-MIB::lldpRemTimeMark -> RMON2-MIB::TimeFilter -> SNMPv2-SMI::TimeTicks.
These are very common MIBs so I'm probably doing something wrong. What am I missing?
The text was updated successfully, but these errors were encountered:
Per RFC 2579 Section 3.5 "... the SYNTAX clause of a Textual Convention can not refer to a previously defined Textual Convention." That's why the referenced lines of code are in there. It looks like revision 200605020000Z of RMON2-MIB (RFC 4502) corrected this issue.
I'm trying to generate files with mib2go (v0.2.0). I think some types are dropped by the clause below, everything is fine if I comment it out.
gosmi/smi/internal/module.go
Lines 452 to 455 in 140d533
Here is an example of a field that is not found when loading the RMON2-MIB.
LastCreateTime
hasTimeStamp
as a parent type with a textual convention.RMON2-MIB (LAST-UPDATED "9605270000Z")
SNMPv2-TC
I have the same issues with LLDP-MIB (revision 200505060000Z):
LLDP-MIB::lldpRemTimeMark
->RMON2-MIB::TimeFilter
->SNMPv2-SMI::TimeTicks
.These are very common MIBs so I'm probably doing something wrong. What am I missing?
The text was updated successfully, but these errors were encountered: