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

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:

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.

Acceptance / Success Criteria

None

Attachments

2

Lucidchart Diagrams

Activity

Show:

Alejandro Galue July 31, 2019 at 3:57 PM

I've updated the content of the script as the import references on the original Groovy script wouldn't work on H24 or newer, so I've used the fixed imports that I tested on my K8s lab.

Alejandro Galue July 31, 2019 at 3:55 PM

Jesse White July 31, 2019 at 3:38 PM

can you open a PR against develop with the suggested changes?

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created February 9, 2018 at 7:27 PM
Updated August 1, 2019 at 1:16 PM
Resolved August 1, 2019 at 1:16 PM