esnet / sense-rtmon

Custom Scripts for Dynamic End-To-End Flow-Specific Grafana Dashboards
5 stars 4 forks source link

Dell OS 10 switch output and snmp port output naming mismatch #128

Closed juztas closed 2 months ago

juztas commented 3 months ago

For Dell OS 10, based on configuration from switch, will get port names like this:

- Name:  Port-channel 1
  Node:  T2_US_Nebraska_Test:dellos10_s0
  Peer:  urn:ogf:network:es.net:2013::kans-cr6:2_1_c22_1:+
  Port:  urn:ogf:network:unl.edu:2023:dellos10_s0:Port-channel_1
  Site:  urn:ogf:network:unl.edu:2023
  Vlan:  '2686'
- Host:
  - IPv4:  ?ipv4?
    IPv6:  fc00:3610:0:0:0:80:0:1/96
    Interface:  p1p1
    MAC:  00:0f:53:3b:0a:f4
    Name:  T2_US_Nebraska_Test:red-sense-dtn1.unl.edu
  Name:  Ethernet 1/1/13:1
  Node:  T2_US_Nebraska_Test:dellos10_s0
  Peer:  ?peer?
  Port:  urn:ogf:network:unl.edu:2023:dellos10_s0:Ethernet_1-1-13__1
  Site:  urn:ogf:network:unl.edu:2023
  Vlan:  '2686'

But SNMP Output from dell os 10 will return port-channel1 and ethernet1/1/13:1. Inside the prometheus query for ifdescr, need to add also lowercase and with spaces removed.

juztas commented 2 months ago

Solved also here: https://github.com/esnet/sense-rtmon/pull/129