Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • Discovery, OS
    • None

    Description

      There is a wayto apply os group for some devices with equal MIBs, but different vendors, for example radlan aka Russian Eltex.

      But some vendors oem devices with changing oid prefix.

      We have the same MIBS for this OS, but different prefix.

      OS MIB prefix definition file new definition file
      dcn-ios DCN-MIB .1.3.6.1.4.1.6339 dcn.inc.php
      snr-switch SNR-SWITCH-MIB .1.3.6.1.4.1.40418.7 snr.inc.php dcn-snr.inc.php
      qtech-switch QTECH-MIB 1.3.6.1.4.1.27514 qtech.inc.php dcn-qtech.inc.php

      MIBS are identical (except prefix)

      it will be easier to support and add new features if I can diff only this OSes, so I suggest to separate os=snr-switch and other snr products.

      I attach dcn-like.patch
      I also add some comments with examples for snmp to definitions.
      And add test power supply detection for SNR switch

      Attachments

        Issue Links

          Activity

            [OBS-3648] Definitions for DCN like switches

            added in r11223.

            landy Mike Stupalov added a comment - added in r11223.

            Added in r11222.

            Note, I mostly rewritten code with current code-style.

            landy Mike Stupalov added a comment - Added in r11222. Note, I mostly rewritten code with current code-style.

            If it possible please approve this patch as partial solution.

            mtivi Martyushev Tim added a comment - If it possible please approve this patch as partial solution.

            There is a ticket OBS-3281 for mapping dcn-os to cisco for rancid.
            We need to apply this map for oses snr-switch and qtech-switch too

            mtivi Martyushev Tim added a comment - There is a ticket OBS-3281 for mapping dcn-os to cisco for rancid. We need to apply this map for oses snr-switch and qtech-switch too
            • filenames in mibs definitions is <mib_dir>.inc.php (only).
            • additionally you can create sub-dir in definitions as <mib_dir> and store here per mib includes as <mib_name_lowercase>.inc.php, ie: includes/definitions/mibs/edgecore/ecs4120-mib.inc.php
            • but as last trick (to reduce copy-paste), you can write generic code (using only variables $mib), place php file in sub-dir without '.inc'. See examples in includes/definitions/mibs/edgecore.inc.php and includes/definitions/mibs/edgecore/ecs4xxx-mib.php
            landy Mike Stupalov added a comment - filenames in mibs definitions is <mib_dir>.inc.php (only). additionally you can create sub-dir in definitions as <mib_dir> and store here per mib includes as <mib_name_lowercase>.inc.php , ie: includes/definitions/mibs/ edgecore / ecs4120-mib .inc.php but as last trick (to reduce copy-paste), you can write generic code (using only variables $mib), place php file in sub-dir without '.inc'. See examples in includes/definitions/mibs/ edgecore.inc.php and includes/definitions/mibs/ edgecore/ecs4xxx-mib.php

            People

              landy Mike Stupalov
              mtivi Martyushev Tim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: