#Harvest getting Switch ethernet rcf-version

1 messages · Page 1 of 1 (latest)

rocky cipher
#

I have a template
`name: SwitchEthernet
query: api/network/ethernet/switches
object: switch_ethernet

counters:

  • ^^model => model
  • ^^serial_number => serial_number
  • ^^version => version
  • ^^monitoring.monitored => monitored

export_options:
instance_keys:
- model
- serial_number
- version
instance_labels:
- model
- serial_number
- version`

And I found that with the following command:
system switch ethernet show-all -fields rcf-version

I can get the RCF version,

The response is like:
temp-SW1 RCF BES-53248 v1.10 1-CLUSTER
temp-SW2 RCF BES-53248 v1.10 1-CLUSTER

How can I add this object into harvest?

fleet flax
#

Sure, will check and update you.

fleet flax
#

@rocky cipher

Could you try this template and see rcf_version label would be populated as per our requirement.

Metric name should be switch_ethernet_labels

name:             SwitchEthernet
query:            api/private/cli/system/switch/ethernet/show-all
object:           switch_ethernet

counters:
  - ^^address
  - ^^device
  - ^is_monitoring_enabled_operational  => monitored
  - ^model                              => model
  - ^rcf_version                        => rcf_version
  - ^serial_number                      => serial_number
  - ^version                            => version

export_options:
  instance_keys:
    - address
    - device
  instance_labels:
    - model
    - monitored
    - rcf_version
    - serial_number
    - version
#

rcf_version this field has not been exposed via api/network/ethernet/switches public api, and only be available at private cli private/cli/system/switch/ethernet/show-all

austere elm
#

Nice idea, to get the RDF version! I didn't think of that 👍🏻