Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-11759

Improve the sample content for the NXOS GPB Parser Groovy Script.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 23.0.2
    • Fix Version/s: 25.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      As part of the verification process for the solution of HZN-1177 (implementation of the NX-OS Adapter for telemetry), I found that adding more details on the example Groovy script, will help people understand what's required to do on the Nexus Switch in order to get the data, and what's required to do on Groovy to process the expected data.

      As explained on my comments on the PR for that issue:

      https://github.com/OpenNMS/opennms/pull/1855

      I suggest to rename /opt/opennms/etc/resource-types/nxos-cpu-resource.xml with /opt/opennms/etc/resource-types/nxos-resource.xml, and put the following content on it:

      <?xml version="1.0"?>
      <resource-types>
         <resourceType name="nxosCpu" label="Nxos CPU" resourceLabel="CPU ${index}">
            <persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/>
            <storageStrategy class="org.opennms.netmgt.collection.support.IndexStorageStrategy"/>
         </resourceType>
         <resourceType name="nxosIntf" label="Nxos Interface" resourceLabel="${index}">
            <persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/>
            <storageStrategy class="org.opennms.netmgt.collection.support.IndexStorageStrategy"/>
         </resourceType>
      </resource-types>

      And replace the content of /opt/opennms/etc/telemetryd-adapters/cisco-nxos-telemetry-interface.groovy with the attached content.

      The above config was tested against an actual Nexus Switch, and the content is good enough to provide enough context and background information to any operator who wants to configure Telemetry data.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: