lextudio / pysnmp

Python SNMP library
https://www.pysnmp.com/pysnmp/
BSD 2-Clause "Simplified" License
91 stars 24 forks source link

Failed to load MIB module #147

Open steven-douilliet opened 2 weeks ago

steven-douilliet commented 2 weeks ago

Expected behavior

I want to load des MIBs when my SNMP server starts

Actual behavior

Loading modules fails.

Detailed steps

But loading modules fails.

Python package information

Package Version
pyasn1 0.6.1
pysnmp 7.1.13
pysmi 1.5.9

Operating system information

Linux

Python information

3.12

(Optional) Contents of your test script

import logging.handlers
import os
import logging

from logging.handlers import RotatingFileHandler

from threading import Thread

from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.management import BaseCommand

from pysnmp.carrier.asyncio.dgram import udp
from pysnmp.entity import config
from pysnmp.entity.engine import SnmpEngine
from pysnmp.entity.rfc3413 import ntfrcv
from pysnmp.hlapi.asyncio import (
    ObjectIdentity,
    ObjectType,
)
from pysnmp.smi.builder import DirMibSource
from pysnmp.smi.view import MibViewController

from nano.jobs.models import JobRecord
from nano.jobs.shortcuts import check_and_enqueue_job

from ssiapp.jobs.event import EventHandler

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

rf = RotatingFileHandler(
    f"{settings.LOGS_ROOT}/snmp.log"
)
rf.setFormatter(logging.Formatter(
   "%(asctime)s - %(levelname)s - %(message)s"
))
logger.addHandler(rf)

UserModel = get_user_model()

# https://pysnmp.readthedocs.io/en/latest/examples/v3arch/asyncore/manager/ntfrcv/advanced-topics.html
class Command(BaseCommand):
    help = "Run an SNMP observer to receive SNMP TRAP/INFORM messages."

    def __init__(self, *args, **kwargs) -> None:
        super().__init__(*args, **kwargs)
        self.system_user = UserModel.objects.get_system_user()
        self.handlers = self._get_handlers(EventHandler)

    def _get_handlers(self, superclass: EventHandler) -> dict[str: EventHandler]:
        handlers = {}
        for handler in superclass.__subclasses__():
            if handler._meta.abstract:
                handlers.update(
                    self._get_handlers(handler)
                )
            else:
                handlers[handler.__name__] = handler
        return handlers

    def add_arguments(self, parser):
        parser.add_argument(
            "--community",
            type=str,
            default="public",
            help="SNMP community string"
        )
        parser.add_argument(
            "--ipaddr",
            type=str,
            default="127.0.0.1",
        )
        parser.add_argument(
            "--port",
            type=int,
            default=162
        )

    def handle(
        self, *args, community: str, ipaddr: str, port: int, **options
    ):
        try:
            self.dispatcher(community, ipaddr, port)
        except KeyboardInterrupt:
            pass

    def dispatcher(self, community: str, ipaddr: str, port: int):
        # Create SNMP engine with autogenerated engine ID and pre-bound
        # to socket transport dispatcher
        self.engine = SnmpEngine()
        self.builder = self.engine.get_mib_builder()
        self.builder.addMibSources(
            DirMibSource("/.pysnmp/mibs"),
            DirMibSource(os.path.expanduser('~/.pysnmp/mibs'))
        )
        # Pre-load MIB modules
        self.builder.loadModules()
        self.mvc = MibViewController(self.builder)
        config.addTransport(
            self.engine,
            udp.domainName,
            udp.UdpTransport().openServerMode((ipaddr, port))
        )
        # SecurityName <-> CommunityName mapping
        config.addV1System(
            self.engine, "ssiapp", community
        )
        # Register SNMP Application at the SNMP engine
        ntfrcv.NotificationReceiver(self.engine, self.callback)

        self.engine.transportDispatcher.jobStarted(1)
        # Run I/O dispatcher which would receive queries and send confirmations
        try:
            self.stdout.write(
                f"Starting SNMP observer at {ipaddr}:{port} with community {community}"
            )
            self.stdout.write("Quit the observer with CONTROL-C.")
            self.engine.transportDispatcher.runDispatcher()
        finally:
            self.engine.observer.unregisterObserver()
            self.engine.transportDispatcher.closeDispatcher()

    def callback(
        self,
        snmpEngine,
        stateReference,
        contextEngineId,
        contextName,
        varBinds,
        cbCtx
    ):
        """Callback function for receiving notifications."""
        transport_info = snmpEngine.msgAndPduDsp.getTransportInfo(stateReference)
        src_address = transport_info[1][0]  # Get the source IP address
        # snmpTrapOID
        # The authoritative identification of the notification currently being sent.
        name, value = varBinds[1]
        snmp_trap = f"{name} = {value.prettyPrint()}"
        logger.info(
            "%s - Received SNMP trap: %s", src_address, snmp_trap
        )
        # oid, label, suffix
        _, label, _ = self.mvc.getNodeName(value._value)
        identifier = label[-1]
        label_string = ".".join([str(i) for i in label])
        if identifier in self.handlers:
            logger.info("%s - SNMP Trap: %s", src_address, label_string)
        else:
            logger.warning(
                "%s - Unhandled SNMP Trap: %s", src_address, label_string
            )
            return

        # Load trap data
        data = {}
        varBinds = [
            ObjectType(
                ObjectIdentity(oid), value
            ).resolveWithMib(self.mvc)
            for oid, value in varBinds
        ]
        for oid, value in varBinds:
            label = oid.getLabel()[-1]
            data[label] = value.prettyPrint()
        logger.info("%s - SNMP data: %s", src_address, data)

        # check_and_enqueue_job cannot be run from async function
        thread = Thread(
            target=self._trap_forward,
            args=(identifier, src_address, data)
        )
        thread.start()

    def _trap_forward(self, identifier: str, src_address: str, data: dict):
        """Forwards the SNMP trap to the corresponding handler (job)

        Args:
            identifier (str): SNMP trap identifier
            src_address (str): IP address of agent
            data (dict): SNMP trap data
        """
        check_and_enqueue_job(
            JobRecord.objects.get_for_job(
                self.handlers[identifier]
            ),
            self.system_user,
            comment=f"Event received from {src_address}",
            job_kwargs={
                "src_address": src_address,
                "data": data
            }
        )

Relevant log output

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__
    self._testValue(value, idx)
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue
    raise error.ValueConstraintError(
pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b'\x00'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__
    self._testValue(value, idx)
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue
    constraint(value, idx)
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__
    raise error.ValueConstraintError(
pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError('all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__
    self.subtypeSpec(value)
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__
    raise error.ValueConstraintError(
pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module
    runpy.run_path(
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>
    _TIPFilterParamsFwdSdpBind_Type()
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__
    base.SimpleAsn1Type.__init__(self, value, **kwargs)
  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__
    raise type(exValue)('%s at %s' % (exValue, self.__class__.__name__))
pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')') at SdpBindId

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module
    runpy.run_path(
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/.pysnmp/mibs/TIMETRA-LOG-MIB.py", line 135, in <module>
    TFilterActionOrDefault) = mibBuilder.importSymbols(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols
    self.load_modules(modName, **userCtx)
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules
    self.load_module(modName, **userCtx)
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module
    raise error.MibLoadError(
pysnmp.smi.error.MibLoadError: MIB module '/.pysnmp/mibs/TIMETRA-FILTER-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pyasn1.type.error.ValueConstraintError'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')') at SdpBindId

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module
    runpy.run_path(
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/.pysnmp/mibs/TIMETRA-SYSTEM-MIB.py", line 138, in <module>
    (tmnxLogExecRollbackOpIndex,) = mibBuilder.importSymbols(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols
    self.load_modules(modName, **userCtx)
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules
    self.load_module(modName, **userCtx)
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module
    raise error.MibLoadError(
pysnmp.smi.error.MibLoadError: MIB module '/.pysnmp/mibs/TIMETRA-LOG-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-LOG-MIB.py", line 135, in <module>\n    TFilterActionOrDefault) = mibBuilder.importSymbols(\n                              ^^^^^^^^^^^^^^^^^^^^^^^^^\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols\n    self.load_modules(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules\n    self.load_module(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module\n    raise error.MibLoadError(\n', 'pysnmp.smi.error.MibLoadError: MIB module \'/.pysnmp/mibs/TIMETRA-FILTER-MIB.py\' load error: [\'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\n    constraint(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\n    self.subtypeSpec(value)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\n    _TIPFilterParamsFwdSdpBind_Type()\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\n    raise type(exValue)(\\\'%s at %s\\\' % (exValue, self.__class__.__name__))\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\'] caused by <class \'pyasn1.type.error.ValueConstraintError\'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pysnmp.smi.error.MibLoadError'>: MIB module '/.pysnmp/mibs/TIMETRA-FILTER-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pyasn1.type.error.ValueConstraintError'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')') at SdpBindId

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/app-manage", line 43, in <module>
    main()
  File "/usr/local/bin/app-manage", line 39, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app/dev/apps/app/app/management/commands/snmp_observer.py", line 85, in handle
    self.dispatcher(community, ipaddr, port)
  File "/opt/app/dev/apps/app/app/management/commands/snmp_observer.py", line 99, in dispatcher
    self.builder.loadModules()
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules
    self.load_module(modName, **userCtx)
  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module
    raise error.MibLoadError(
pysnmp.smi.error.MibLoadError: MIB module '/.pysnmp/mibs/TIMETRA-SYSTEM-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-LOG-MIB.py", line 135, in <module>\n    TFilterActionOrDefault) = mibBuilder.importSymbols(\n                              ^^^^^^^^^^^^^^^^^^^^^^^^^\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols\n    self.load_modules(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules\n    self.load_module(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module\n    raise error.MibLoadError(\n', 'pysnmp.smi.error.MibLoadError: MIB module \'/.pysnmp/mibs/TIMETRA-FILTER-MIB.py\' load error: [\'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\n    constraint(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\n    self.subtypeSpec(value)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\n    _TIPFilterParamsFwdSdpBind_Type()\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\n    raise type(exValue)(\\\'%s at %s\\\' % (exValue, self.__class__.__name__))\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\'] caused by <class \'pyasn1.type.error.ValueConstraintError\'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-SYSTEM-MIB.py", line 138, in <module>\n    (tmnxLogExecRollbackOpIndex,) = mibBuilder.importSymbols(\n                                    ^^^^^^^^^^^^^^^^^^^^^^^^^\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols\n    self.load_modules(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules\n    self.load_module(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module\n    raise error.MibLoadError(\n', 'pysnmp.smi.error.MibLoadError: MIB module \'/.pysnmp/mibs/TIMETRA-LOG-MIB.py\' load error: [\'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\n    constraint(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\n    self.subtypeSpec(value)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\n    _TIPFilterParamsFwdSdpBind_Type()\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\n    raise type(exValue)(\\\'%s at %s\\\' % (exValue, self.__class__.__name__))\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-LOG-MIB.py", line 135, in <module>\\n    TFilterActionOrDefault) = mibBuilder.importSymbols(\\n                              ^^^^^^^^^^^^^^^^^^^^^^^^^\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols\\n    self.load_modules(modName, **userCtx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules\\n    self.load_module(modName, **userCtx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module\\n    raise error.MibLoadError(\\n\', \'pysnmp.smi.error.MibLoadError: MIB module \\\'/.pysnmp/mibs/TIMETRA-FILTER-MIB.py\\\' load error: [\\\'Traceback (most recent call last):\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\\\n    self._testValue(value, idx)\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\\\n    raise error.ValueConstraintError(\\\\n\\\', \\\'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\\n\\\', \\\'\\\\nDuring handling of the above exception, another exception occurred:\\\\n\\\\n\\\', \\\'Traceback (most recent call last):\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\\\n    self._testValue(value, idx)\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\\\n    constraint(value, idx)\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\\\n    raise error.ValueConstraintError(\\\\n\\\', \\\'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\\n\\\', \\\'\\\\nDuring handling of the above exception, another exception occurred:\\\\n\\\\n\\\', \\\'Traceback (most recent call last):\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\\\n    self.subtypeSpec(value)\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\\\n    raise error.ValueConstraintError(\\\\n\\\', \\\'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\\\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\\\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'"\\\\\\\\\\\\\\\')\\\\\\\')\\\\n\\\', \\\'\\\\nDuring handling of the above exception, another exception occurred:\\\\n\\\\n\\\', \\\'Traceback (most recent call last):\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\\\n    runpy.run_path(\\\\n\\\', \\\'  File "<frozen runpy>", line 287, in run_path\\\\n\\\', \\\'  File "<frozen runpy>", line 98, in _run_module_code\\\\n\\\', \\\'  File "<frozen runpy>", line 88, in _run_code\\\\n\\\', \\\'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\\\n    _TIPFilterParamsFwdSdpBind_Type()\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\\\n\\\', \\\'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\\\n    raise type(exValue)(\\\\\\\'%s at %s\\\\\\\' % (exValue, self.__class__.__name__))\\\\n\\\', \\\'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\\\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\\\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'"\\\\\\\\\\\\\\\')\\\\\\\') at SdpBindId\\\\n\\\'] caused by <class \\\'pyasn1.type.error.ValueConstraintError\\\'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\'] caused by <class \'pysnmp.smi.error.MibLoadError\'>: MIB module \'/.pysnmp/mibs/TIMETRA-FILTER-MIB.py\' load error: [\'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\n    constraint(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\n    self.subtypeSpec(value)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\n    _TIPFilterParamsFwdSdpBind_Type()\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\n    raise type(exValue)(\\\'%s at %s\\\' % (exValue, self.__class__.__name__))\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\'] caused by <class \'pyasn1.type.error.ValueConstraintError\'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pysnmp.smi.error.MibLoadError'>: MIB module '/.pysnmp/mibs/TIMETRA-LOG-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-LOG-MIB.py", line 135, in <module>\n    TFilterActionOrDefault) = mibBuilder.importSymbols(\n                              ^^^^^^^^^^^^^^^^^^^^^^^^^\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 458, in import_symbols\n    self.load_modules(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 407, in load_modules\n    self.load_module(modName, **userCtx)\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 370, in load_module\n    raise error.MibLoadError(\n', 'pysnmp.smi.error.MibLoadError: MIB module \'/.pysnmp/mibs/TIMETRA-FILTER-MIB.py\' load error: [\'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\\n    self._testValue(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\\n    constraint(value, idx)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\\n    self.subtypeSpec(value)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\\n    raise error.ValueConstraintError(\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\')\\n\', \'\\nDuring handling of the above exception, another exception occurred:\\n\\n\', \'Traceback (most recent call last):\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\\n    runpy.run_path(\\n\', \'  File "<frozen runpy>", line 287, in run_path\\n\', \'  File "<frozen runpy>", line 98, in _run_module_code\\n\', \'  File "<frozen runpy>", line 88, in _run_code\\n\', \'  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\\n    _TIPFilterParamsFwdSdpBind_Type()\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\\n\', \'  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\\n    raise type(exValue)(\\\'%s at %s\\\' % (exValue, self.__class__.__name__))\\n\', \'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\\\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\\\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\x00\\\\\\\\\\\\\\\'"\\\\\\\')\\\') at SdpBindId\\n\'] caused by <class \'pyasn1.type.error.ValueConstraintError\'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pysnmp.smi.error.MibLoadError'>: MIB module '/.pysnmp/mibs/TIMETRA-FILTER-MIB.py' load error: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 743, in _testValue\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\'\\x00\'"\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 32, in __call__\n    self._testValue(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 692, in _testValue\n    constraint(value, idx)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 268, in __init__\n    self.subtypeSpec(value)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/constraint.py", line 35, in __call__\n    raise error.ValueConstraintError(\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\')\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.12/site-packages/pysnmp/smi/builder.py", line 362, in load_module\n    runpy.run_path(\n', '  File "<frozen runpy>", line 287, in run_path\n', '  File "<frozen runpy>", line 98, in _run_module_code\n', '  File "<frozen runpy>", line 88, in _run_code\n', '  File "/.pysnmp/mibs/TIMETRA-FILTER-MIB.py", line 1612, in <module>\n    _TIPFilterParamsFwdSdpBind_Type()\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/univ.py", line 794, in __init__\n    base.SimpleAsn1Type.__init__(self, value, **kwargs)\n', '  File "/usr/local/lib/python3.12/site-packages/pyasn1/type/base.py", line 271, in __init__\n    raise type(exValue)(\'%s at %s\' % (exValue, self.__class__.__name__))\n', 'pyasn1.type.error.ValueConstraintError: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError(\'<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\\\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\\\\\'\\\\\\\\x00\\\\\\\'"\\\')\') at SdpBindId\n'] caused by <class 'pyasn1.type.error.ValueConstraintError'>: <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <ValueSizeConstraint object, consts 8, 8>> failed at: ValueConstraintError(\'all of (<ValueSizeConstraint object, consts 8, 8>,) failed for "b\\\'\\\\x00\\\'"\')') at SdpBindId
dcvmoole commented 2 weeks ago

Hello! One of your MIBs has a bug. Specifically, your error log shows that TIMETRA-FILTER-MIB has an object type TIPFilterParamsFwdSdpBind which has a DEFVAL value whose size is not allowed by the SYNTAX for that object type. Right now, pysmi is not able to detect that problem while compiling the MIB. As a result, pysnmp trips over the problem when loading the compiled version.

I hope to adapt pysmi to discard such invalid DEFVAL values (as it already does for some cases), so that you can still compile and load MIBs that have such bugs. I have already made some progress on that front, but it will take a while longer.

For now, your best option is to edit your copy of TIMETRA-FILTER-MIB and comment out the DEFVAL line for TIPFilterParamsFwdSdpBind (and perhaps for other object types that have the same problem).

steven-douilliet commented 2 weeks ago

Thanks for your reply.

I'm not sure what to comment on. See my MIB attached:

TIMETRA-FILTER-MIB.txt

dcvmoole commented 2 weeks ago

Ah sorry, I was not clear enough. Your attachment is the Python code for that MIB, as generated by pysmi. That file has been generated from the original ASN.1 input MIB, which is also called TIMETRA-FILTER-MIB. That file basically looks like this, although note that your copy might be slightly different, depending on where you got it from.

If you never downloaded that TIMETRA-FILTER-MIB file yourself, and instead let pysmi "borrow" the MIB, then you would have to download a copy first, so that you can edit it. In that case you have to make sure that pysmi uses your local copy.

Either way, it is that original ASN.1 file that you would have to edit, by searching for TIPFilterParamsFwdSdpBind and adding two dashes ("--") in front of the DEFVAL line below it. For example, in this case, you'd have to change line 1198 to -- DEFVAL { '0'H }.

As last resort, you can also edit the generated Python code that you attached. Then you would have to remove line 1605, which reads defaultHexValue = "0". That is generally not a great idea though: that Python file might be overwritten if the MIB is recompiled for some reason later.

steven-douilliet commented 1 week ago

This workaround works. Thanks !