#584173#5
Date:
2010-06-01 23:17:27 UTC
From:
To:
Some MIB files require import RFC-1212.py.  I managed to download it
with snmp-mibs-downloader (you have to change the config file), but
cannot get it to compile it properly (it compiles, but then does not
seem to work)

Including it in the package would be helpful.

Thanks

#584173#10
Date:
2010-06-02 00:30:53 UTC
From:
To:
+patch

something as simple as this seems to work

cat >> /usr/share/python-support/python-pysnmp4/pysnmp/v4/smi/mibs/RFC-1212.py <<EOF
# Imported just in case new ASN.1 types would be created
from pyasn1.type import constraint, namedval

# Imports

( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
( ObjectName, ) = mibBuilder.importSymbols("RFC1155-SMI", "ObjectName")
( Bits, Integer32, MibIdentifier, TimeTicks, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "MibIdentifier", "TimeTicks")

( MibIdentifier,
  MibVariable,
  MibTableColumn,
  MibTableRow,
  MibTable ) = mibBuilder.importSymbols(
    'SNMPv2-SMI',
    'MibIdentifier',
    'MibVariable',
    'MibTableColumn',
    'MibTableRow',
    'MibTable',
    )

# Exports

mibBuilder.exportSymbols(
    'RFC-1212',
    MibIdentifier=MibIdentifier,
    MibVariable=MibVariable,
    MibTableColumn=MibTableColumn,
    MibTableRow=MibTableRow,
    MibTable=MibTable
    )
EOF

#584173#15
Date:
2010-06-02 22:08:25 UTC
From:
To:
RFC1215.py is also missing