Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2769

Improved hardware detection for EXOS devices in Stack mode

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • OS, Poller

    Description

      Hello,

      Is it possible to improved the hardware detection for EXOS devices when they are in Stack mode?

      Since the stack of EXOS devices could be made from different hardware types, they will always replay to sysObjectID:

      :/opt/observium/mibs/extreme # snmpwalk -v2c -c public extremex690 1.3.6.1.2.1.1.2
             .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.1916.2.93
      SNMPv2-MIB::sysObjectID.0 = OID: EXTREME-BASE-MIB::summitVer2Stack

      Which means they are in stack mode, but is possible to go one step and detect the hardware type of the stack using extremeStackMemberType (1.3.6.1.4.1.1916.1.33.2.1.2):

      :/opt/observium/mibs/extreme # snmpwalk -v2c -c public extremex690 1.3.6.1.4.1.1916.1.33.2.1.2
                      .1.3.6.1.4.1.1916.1.33.2.1.2.1 = OID: .1.3.6.1.4.1.1916.2.248
      EXTREME-STACKING-MIB::extremeStackMemberType.1 = OID: EXTREME-BASE-MIB::extremeProduct.248

      And from the MIB EXTREME-BASE-MIB line 807

      x690-48x-4q-2c     OBJECT IDENTIFIER ::= { extremeProduct 248 }
         --X690 48 1/10Gb SFP+, 4 10Gb/40Gb QSFP+, 2 10Gb/25Gb/40Gb/50Gb/100Gb QSFP28

      During the Re-Detect OS If sysObjectID = .1.3.6.1.4.1.1916.2.93 then request 1.3.6.1.4.1.1916.1.33.2.1.2.

       

      :/opt/observium # ./discovery.php -d -m os -h extremex690
      #####  Module Start: os  #####
      CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extremex690':'161' sysDescr.0]
      CMD EXITCODE[0]
      CMD RUNTIME[0.0091s]
      STDOUT[
      ExtremeXOS (Stack) version 22.5.1.7 22.5.1.7 by release-manager on Tue May 22 11:25:12 EDT 2018
      ]
      SNMP STATUS[TRUE]
       
      CMD[/usr/bin/snmpget -t '5' -v2c -c *** -Pu -OQUvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'extremex690':'161' sysObjectID.0]
       
      CMD EXITCODE[0]
      CMD RUNTIME[0.0092s]
      STDOUT[
      .1.3.6.1.4.1.1916.2.93
      ]
      SNMP STATUS[TRUE]
      +-------------+-----------------------------------------------------------------------------------------+
      | OID         |                                                                                         |
      +-------------+-----------------------------------------------------------------------------------------+
      | sysDescr    | ExtremeXOS (Stack) version 22.5.1.7 22.5.1.7 by release-manager on Tue May 22 11:25:12  |
      |             | EDT 2018                                                                                |
      | sysObjectID | .1.3.6.1.4.1.1916.2.93                                                                  |
      +-------------+-----------------------------------------------------------------------------------------+
       
       o Re-Detect OS matched (xos: Extreme XOS): 
      +-------------+---------------------+-----------------------------------------------------------------+
      | OID         | Matched definition  |                                                                 |
      +-------------+---------------------+-----------------------------------------------------------------+
      | sysObjectID | .1.3.6.1.4.1.1916.2 | .1.3.6.1.4.1.1916.2.93                                          |
      | sysDescr    | /XOS/               | ExtremeXOS (Stack) version 22.5.1.7 22.5.1.7 by release-manager |
      |             |                     |  on Tue May 22 11:25:12 EDT 2018                                |
      +-------------+---------------------+-----------------------------------------------------------------+

      Thanks.

      Attachments

        Activity

          [OBS-2769] Improved hardware detection for EXOS devices in Stack mode

          Thanks, it works.

          emiliomejias Emilio MEJIAS added a comment - Thanks, it works.

          Fixed in r9436.

          landy Mike Stupalov added a comment - Fixed in r9436.

          Hi Mike,

          Attached the info.

          Thanks.

          emiliomejias Emilio MEJIAS added a comment - Hi Mike, Attached the info. Thanks.

          Oh, not sure that this fully correct.

          Please attach debug poller for an example device (detected as EnetSwitch):

          ./poller.php -d -m os -h <device>

          landy Mike Stupalov added a comment - Oh, not sure that this fully correct. Please attach debug poller for an example device (detected as EnetSwitch): ./poller.php -d -m os -h <device>

          Hello Mike,

          Thanks for the fix. After the update to r9435 all extreme hardware switches are called EnetSwitch?

          Is there any particular reason for that name? Is it possible to replace EnetSwitch to Extreme X.......

          Thanks.

          emiliomejias Emilio MEJIAS added a comment - Hello Mike, Thanks for the fix. After the update to r9435 all extreme hardware switches are called EnetSwitch? Is there any particular reason for that name? Is it possible to replace EnetSwitch to Extreme X....... Thanks.

          Fixed in r9435.

          landy Mike Stupalov added a comment - Fixed in r9435.

          People

            landy Mike Stupalov
            emiliomejias Emilio MEJIAS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: