Arista BGP Switch
Description
This connector collects BGP peer, prefix and Routing Information Base metrics from Arista switches.
Enterprise Connector
This connector requires the Enterprise edition of MetricsHub.
Target
Typical platforms: SNMP, Arista
Operating system: Network Device
This connector is not available for the local host (it is applicable to remote hosts only).
Prerequisites
Leverages: ARISTA-BGP4V2-MIB SNMP
Technology and protocols: SNMP
Examples
CLI
metricshub HOSTNAME -t network -c +AristaBGPSwitch --snmp v2c --community public
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: network
connectors: [ +AristaBGPSwitch ] # Optional, to load only this connector
protocols:
snmp:
version: v2c # Read documentation for v1, v2c and v3
community: public # or probably something more secure
Connector Activation Criteria
The Arista BGP Switch connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- An SNMP GetNext on the OID
1.3.6.1.4.1.30065.4.1.1.7.1must return a non-empty value
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| network-peer | hw.network.bgp.peer.messages{direction="receive"}hw.network.bgp.peer.messages{direction="transmit"} | idnametype |
| network-peer-adj-rib | hw.network.bgp.adj.rib.prefixes{direction="receive"}hw.network.bgp.adj.rib.prefixes{direction="transmit"} | afisafitype |
| network-peer-discontinuity | hw.network.bgp.peer.discontinuity.timestamp | idtype |
| network-peer-status | hw.network.bgp.peer.connection_state{state="Active|Connect|Established|Idle|OpenConfirm|OpenSent"}hw.network.bgp.peer.status{state="disabled|enabled"} | bgp.peer.address.typeidnametype |
| network-prefix | hw.network.bgp.prefixes{direction="receive"}hw.network.bgp.prefixes{direction="transmit"} | idnametype |