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

adding support for new XOS release 15.x version format

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • None
    • None
    • Poller

    Description

      I would like to contribute a small patch to add support for new release version format of Extreme Networks. Hope you will consider my proposal.

      Here is the diff.

      Index: includes/polling/os/extremeware.inc.php
      ===================================================================
      — includes/polling/os/extremeware.inc.php (revision 3881)
      +++ includes/polling/os/extremeware.inc.php (working copy)
      @@ -28,13 +28,19 @@

      // ExtremeXOS version 12.4.1.7 v1241b7 by release-manager on Sat Mar 13 02:36:57 EST 2010
      // ExtremeWare XOS version 11.5.2.10 v1152b10 by release-manager on Thu Oct 26 09:53:04 PDT 2006
      + // ExtremeXOS (Stack) version 15.2.1.5 v1521b5-patch1-1 by release-manager on Thu Sep 20 15:37:51 EDT 2012
      + // ExtremeXOS (BD-8810) version 15.1.2.12 v1512b12-patch1-2 by release-manager on Thu May 3 19:02:28 EDT 2012

      echo(" XOS \n");

      • list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr']));
        + list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr']));
        if ($b == "version")
        { $version = $c; $features = $d . " ".$i." ".$j." ".$m; + }

        elseif ($c == "version")
        +

        { + $version = $d; + $features = $e . " ".$j." ".$k." ".$n; }

        }

      Attachments

        1. extremeware.inc.php.diff
          2 kB
        2. rewrites.php.diff
          11 kB
        3. xos.zip
          2 kB

        Activity

          [OBS-307] adding support for new XOS release 15.x version format

          please do not make patches from random locations, only EVER from the observium root.

          adama Adam Armstrong added a comment - please do not make patches from random locations, only EVER from the observium root.

          files are attached

          oliver.dorn Oliver Dorn added a comment - files are attached

          tested with rev 3881

          oliver.dorn Oliver Dorn added a comment - tested with rev 3881

          will attach diff-files shortly

          oliver.dorn Oliver Dorn added a comment - will attach diff-files shortly

          no patch? :>

          adama Adam Armstrong added a comment - no patch? :>

          I have now created new poller and discovery files for xos for modules os and mempool based on snmp queries and the original MIBs. I've also added rewrites for the product IDs of the current EXTREME-BASE-MIB (15.3).

          oliver.dorn Oliver Dorn added a comment - I have now created new poller and discovery files for xos for modules os and mempool based on snmp queries and the original MIBs. I've also added rewrites for the product IDs of the current EXTREME-BASE-MIB (15.3).

          Haven't thought about that way

          Found the OID for the current running image version is .1.3.6.1.2.1.16.19.2.0
          Tested with XOS releases 12.3.3.6 and newer

          Examples via snmpwalk -On
          .1.3.6.1.2.1.16.19.2.0 = STRING: "15.2.1.5"
          .1.3.6.1.2.1.16.19.2.0 = STRING: "15.1.2.12"
          .1.3.6.1.2.1.16.19.2.0 = STRING: "12.6.2.10"
          .1.3.6.1.2.1.16.19.2.0 = STRING: "12.3.3.6"

          Only the patch level is not available via snmp.

          oliver.dorn Oliver Dorn added a comment - Haven't thought about that way Found the OID for the current running image version is .1.3.6.1.2.1.16.19.2.0 Tested with XOS releases 12.3.3.6 and newer Examples via snmpwalk -On .1.3.6.1.2.1.16.19.2.0 = STRING: "15.2.1.5" .1.3.6.1.2.1.16.19.2.0 = STRING: "15.1.2.12" .1.3.6.1.2.1.16.19.2.0 = STRING: "12.6.2.10" .1.3.6.1.2.1.16.19.2.0 = STRING: "12.3.3.6" Only the patch level is not available via snmp.

          Is it possible to get this information more cleanly from SNMP?

          Parsing sysDescr is the historic way of doing it, and is not preferred these days

          adama Adam Armstrong added a comment - Is it possible to get this information more cleanly from SNMP? Parsing sysDescr is the historic way of doing it, and is not preferred these days

          here the diff w/o format

          Index: includes/polling/os/extremeware.inc.php
          ===================================================================
          --- includes/polling/os/extremeware.inc.php     (revision 3881)
          +++ includes/polling/os/extremeware.inc.php     (working copy)
          @@ -28,13 +28,19 @@
           
             // ExtremeXOS version 12.4.1.7 v1241b7 by release-manager on Sat Mar 13 02:36:57 EST 2010
             // ExtremeWare XOS version 11.5.2.10 v1152b10 by release-manager on Thu Oct 26 09:53:04 PDT 2006
          +  // ExtremeXOS (Stack) version 15.2.1.5  v1521b5-patch1-1 by release-manager on Thu Sep 20 15:37:51 EDT 2012
          +  // ExtremeXOS (BD-8810) version 15.1.2.12 v1512b12-patch1-2 by release-manager on Thu May 3 19:02:28 EDT 2012
           
             echo(" XOS \n");
          -  list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr']));
          +  list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr']));
             if ($b == "version")
             {
               $version = $c;
               $features = $d . " ".$i." ".$j." ".$m;
          +  } elseif ($c == "version")
          +  {
          +    $version = $d;
          +    $features = $e . " ".$j." ".$k." ".$n;
             }
           }

          oliver.dorn Oliver Dorn added a comment - here the diff w/o format Index: includes/polling/os/extremeware.inc.php =================================================================== --- includes/polling/os/extremeware.inc.php (revision 3881) +++ includes/polling/os/extremeware.inc.php (working copy) @@ -28,13 +28,19 @@   // ExtremeXOS version 12.4.1.7 v1241b7 by release-manager on Sat Mar 13 02:36:57 EST 2010 // ExtremeWare XOS version 11.5.2.10 v1152b10 by release-manager on Thu Oct 26 09:53:04 PDT 2006 + // ExtremeXOS (Stack) version 15.2.1.5 v1521b5-patch1-1 by release-manager on Thu Sep 20 15:37:51 EDT 2012 + // ExtremeXOS (BD-8810) version 15.1.2.12 v1512b12-patch1-2 by release-manager on Thu May 3 19:02:28 EDT 2012   echo(" XOS \n"); - list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr'])); + list($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n) = explode(" ", str_replace("ExtremeWare XOS", "ExtremeXOS", $poll_device['sysDescr'])); if ($b == "version") { $version = $c; $features = $d . " ".$i." ".$j." ".$m; + } elseif ($c == "version") + { + $version = $d; + $features = $e . " ".$j." ".$k." ".$n; } }

          People

            adama Adam Armstrong
            oliver.dorn Oliver Dorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: