Arista CloudVision Sensor Deployment Guide

Version 2024.1.0

Arista Networks

www.arista.com

Overview

CloudVision® Universal Network Observability™ (CV UNO) is a multi-domain network observability platform that integrates application visibility with CloudVision's network telemetry. This integration helps provide insights into the applications and workload performance across data centers, campuses, and wide area networks.

CV UNO is enabled on top of CloudVision as-a-Service (CVaaS) platform and offers cloud-based onboarding and feature delivery, using secure state-streaming to an Arista-managed cloud-native architecture.

The CV sensor is an integral component of CV UNO. The sensor is a VM deployed on-premises that facilitates viewing application data in CloudVision. The sensor collects, normalizes, and curates flow and SNMP data from various data sources. It also polls data from vCenter and subscribes to vCenter events, allowing you to view them in CloudVision. This data is forwarded to NetDL, the network data lake that combines diverse datasets and performs a machine-learning-based analysis on them. Using this data, CV UNO assists in quickly determining the source of an anomaly as being network or application based. If it is a network anomaly, CV UNO determines where the issue occurs and why.

The following image provides a high-level overview of the functionality of the CV Sensor:

[Diagram: A high-level overview showing Customer Environment (vCenter, DMF, SNMP Data) feeding into a Standalone Sensor / CvSensor. The Sensor connects to CVaaS, which includes an API server, HBase, Clover, and Clickhouse. The Sensor collects data from vCenter Datasource, DMF Datasource, SNMP Datasource, and Flow Datasource.]

Terminology:

  • CV Sensor: Refers to the collector that streams data from one or more data sources. The Sensor is responsible for starting different data sources, collecting third-party device data, and streaming it to CVP.
  • Data Source: Refers to the target device in the onboarding workflow. Examples include vCenter, Flow, DMF, SNMP (Cisco router/switch), etc.
    • vCenter Data source includes: State Provider (VMs, Hosts, DVS), Counters Provider (system/network counters), Tags Provider (vCenter tags), Events Provider (vCenter events).
    • DMF Data source includes: DMF Provider.
    • SNMP Data sources include: SNMP Provider (SNMP Walk for System, LLDP, and Interfaces Information).
    • Flow Data source: IPFIX Provider, NetFlow Provider, sFlow Provider.
  • Provider: A worker or goroutine responsible for pulling or receiving a single type of data and sending it to CVP. Examples: State Provider, IPFIX Provider, DMF Provider, etc.

Deploying the CV Sensor

To view data from external data sources in CloudVision, you must deploy the CV Sensor and onboard it as a data source so that it can listen to external data sources. The CV Sensor is deployed as an OVA appliance and is intended to run on top of an ESXi server.

When you deploy the sensor using the sensor OVA, it generates a VM with the following specifications:

  • Number of CPU cores: 12
  • Memory: 16 Gibibytes (GiB)
  • Disk Space: 124 Gibibytes (GiB)

Note: Ensure that your system/host has sufficient resources available to accommodate the sensor OVA deployment.

Note: You must also onboard any external data sources to CloudVision so that the sensor can stream or poll them for their data.

To deploy the CV Sensor, follow these steps:

  1. Generate a Service Account Token
  2. Add the Sensor in the UI
  3. Get the latest Sensor OVA
  4. Deploy Sensor OVA
  5. Add Data Source

Generating a Service Account Token

To generate a service account token:

  1. Login to CVaaS cluster using the URL: www.arista.io
  2. Navigate to Settings → Access Control → Service Accounts → New Service Account.
  3. Create a new service account for UNO Sensor:
    • Service Account Name (example: UNO-service-account)
    • Description
    • Status: Enabled
    • Roles: Select the pre-defined role sensor-enrollment.
  4. Click the Create button. The newly added account (UNO-service-account) appears in the list of Service Accounts.
  5. Click on the newly created Service Account (UNO-service-account).
  6. To generate the Service Account Token:
    • Enter a Description and select a Valid Until field.
    • Select an expiry date that is at least after a year from the current date.
    • Click the Generate button.

Note: When the token is generated, copy and securely save it in a location where it can be accessed during sensor deployment.

Adding the Sensor to the UI

To add the sensor to the CVaaS UI:

  1. Navigate to Devices → Device Registration → Data Sources
  2. Click the + Add Sensor button.
  3. Enter a desired sensor name (for example, sensor1). Make sure to use the same name while deploying the sensor.
  4. Note: Do not use default as the sensor name.
  5. Click the Add button.

No additional information is required except for the Sensor Name.

Getting the Latest Sensor OVA

Download the UNO Sensor if you already have the OVA file or contact your Arista support representative for download instructions.

Deploying the Sensor OVA

To deploy the Sensor OVA:

  1. Navigate to the vCenter where you intend to deploy the sensor OVA. Right-click on the ESXi server.
  2. Proceed to Deploy OVF Template and enter the URL of the latest Sensor OVA.

Specify the VM name, datastore, and other required details during the deployment.

Booting up the Sensor

To boot up the Sensor for the first time after the Sensor deployment is completed:

  1. Power on the VM and choose to LAUNCH REMOTE or WEB CONSOLE.
  2. Log in using the credential: Username: cvpadmin
  3. Set a password for the root user.
  4. When the sensor installation menu is displayed, select the install option by typing "i" or "install" (case sensitive).

The initial configuration screen appears.

Enter the following details:

Verify the configuration by typing "v" or "verify."

Once verification is successful, apply the configuration by typing "a" or "apply". While the configuration is being applied, you are prompted to add the access_token in the file /etc/cvpi/access_token. The setup wizard waits for you to create this token file.

To add the token, SSH to the VM as the root user and use the token generated in the "Generating a Service Account Token" step, then enter it in the /etc/cvpi/access_token file.

Copy the service account token and execute the following command on the sensor VM to set it:

echo "paste_token_here" > /etc/cvpi/access_token

This command writes the copied token to the /etc/cvpi/access_token file on the Sensor VM. Once you create and save this token file, the setup wizard automatically proceeds with the installation process.

Type s or save to save the configuration.

Once the installation is successful, all components, including the sensor, will be up and running.

Verify the status by SSHing to the VM and using the command:

cvpi status all -v3

Adding the Data Sources

For Sensor Streaming to CVaaS, the sensor name configured in earlier steps (e.g., sensor1) shows up with a green tick indicating that deployment of Sensor OVA is successful and the Sensor is able to communicate with CVaaS.

To add data sources:

  1. Go to Network → Device Registration → Data Sources
  2. Click the + Onboard Data Source button.
  3. Choose the sensor from the dropdown list (for example, sensor1).
  4. Select the required device type template, such as Application Connector, DMF, Flow, or VMware vCenter.
  5. Enter the necessary fields and click Onboard to add the data source.

After adding the data sources, check if the data is streaming successfully. A green tick in front of each data source (under sensor1) indicates successful streaming, and a red mark indicates an issue with the streaming.

Click the sensor to access the streamed data source details and for any status message indicating if the sensor has started or there is an error message under Sensor Details.

Similarly, you can click on each onboarded data source to display the respective data source status messages (whether the data source has started or if there are any errors).

Now, you can view the onboarded data sources and confirm that data streaming has started.

Adding VMware vCenter as a Data Source

To add VMware vCenter as a Data source:

Select the VMware vCenter template to onboard vCenter as a Data Source in CloudVision. Use the read-only credentials to onboard your vCenters. CloudVision does not perform any write operations in vCenter.

Note: If you choose the option Skip Certificate Verification as no for vCenter data sources, provide the CA certificates if the vCenter servers are using certificates issued by a private or internal CA. These certificates are required for successful TLS verification between the Sensor and vCenter servers.

Or, choose the option Skip Certificate Verification as yes if you do not have the CA certificate or wish to continue without CA certificate verification.

Enabling LLDP in vCenter

After adding VMware vCenter as a Data Source in CloudVision, it is recommended to configure the following in the vCenter to enable proper CV UNO functionalities:

  • Enable LLDP transmission on Distributed Virtual Switches (DVS)
  • Enable Netflow on Distributed Virtual Switches

To enable LLDP for ESXi hosts managed by a DVS:

  1. Log in to the vCenter.
  2. Navigate to Hosts and Clusters → Networking.
  3. Right-click on the Distributed Virtual Switch used by the ESXi host in question by navigating to Settings → Edit settings → Advanced → Discovery Protocol.
  4. Choose the Discovery Protocol as Link Layer Discovery Protocol, and Both operations.
  5. Click the OK button.

Sensor Configuration for Enabling Netflow

CV Sensor can receive Netflow records from the vCenter. The Sensor consumes the NetFlow records from the vCenter and sends processed flow information to the CVaaS instance.

Follow these configuration steps to enable Netflow:

  • Sensor Configuration for Enabling Netflow
  • vCenter Configuration for Enabling Netflow

On the Data Sources screen, click the Onboard Data Source. Select the sensor name and then select Flow as the Template.

Enter a name for the data source and click the Onboard button.

vCenter Configuration for Enabling Netflow

To enable Netflow on a vCenter, you must configure each Distributed Virtual Switch (DVS). On each of the Distributed Switch in your vCenter, follow the below steps:

  1. Right-click the DVSwitch used by the ESXi host by navigating to Settings → Edit NetFlow.
  2. Add the necessary details in the form:
    • Collector IP: Use the Sensor IP
    • Collector port: 4739
    • Sampling Rate: 10000. A sampling rate of 10,000 means one packet will be sampled for every 10,000 packets. To capture more samples and improve visibility, reduce the sampling rate to 1000 or less. Reducing the sampling rate may introduce a slight increase in network load.
    • Switch IP address: Unique IPv4 address across VDSs in a vCenter (not necessarily a pingable IPv4 address).
  3. Click OK to save the changes.

After enabling NetFlow on all the DV switches, ensure to enable NetFlow on all Distributed Port Groups of the DV switches by:

  1. Right-click on the DVS → Distributed Port Group → Manage Distributed Port Groups.
  2. Select Monitoring.
  3. Select all of the Distributed port groups (or select the applicable port groups in your environment).
  4. Enable the Netflow.
  5. Click the Finish button.

After NetFlow is enabled on a port group, it sends NetFlow data to the collector specified in the DVS settings. However, the port group sends NetFlow data only for ingress packets (entering the port group) and not for egress packets (exiting the port group).

To collect data for all traffic, enable NetFlow for the Uplink port group as well. If you do not enable NetFlow for the uplink port group, the UNO sensor will not receive NetFlow for any traffic going out from the VMs to the physical network.

Note: In the bulk port group configuration, it is not possible to enable NetFlow for the Uplink port group. You must enable the uplink port group separately.

To enable the uplink port group:

  1. Right-click on the Uplink Port group under the Distributed Virtual Switch section → Settings (The port group name should have the DVUPlinks on it).
  2. Navigate to the Monitoring tab.
  3. Enable Netflow.
  4. Click the OK button to save the changes.

For details on Adding VMware vCenter as a Data Source, refer to: https://faddom.com/network-visibility-in-virtual-environments-part-2/

Troubleshooting [New Installation]

This section provides information on common issues that may arise during the CV Sensor deployment and suggests possible solutions to address them.

How to restart the sensor component?

  1. SSH to the VM.
  2. Execute the following cvpi commands to restart the sensor:
  3. cvpi stop sensor --is-local-action
    cvpi start sensor --is-local-action
  4. After the restart, verify if all components are running correctly:
  5. cvpi status all -v3

Where to check for logs?

  1. SSH to the VM.
  2. The logs are managed by journald and can be viewed using journalctl commands.
  3. Here is an example of journalctl command to view sensor logs:
  4. [root@cvp230 ~]# journalctl IO_KUBERNETES_CONTAINER_NAME=sensor
  5. Append -f to journalctl command to follow logs.
  6. Check the logs between a specific time interval using the command:
  7. journalctl IO_KUBERNETES_CONTAINER_NAME=sensor --since "2024-07-26 12:10:46" --until "2024-07-26 12:11:46"
  8. Below are examples of journalctl commands to filter logs:
    • To check all the error logs of system: journalctl -p err -b. You can change level from err to info, warning, alert, debug.
    • To check only stdout logs: journalctl _TRANSPORT=stdout
    • To check logs from specific time: journalctl --since "2024-01-24 17:15:00"
    • To check logs for specific service: journalctl -u zookeeper.service --since today
    • To check logs for specific process id: journalctl _PID=3918
    • To check last 100 lines of logs: journalctl -n 100
    • To follow logs: journalctl -f
  9. Some helpful grep commands for data source specific logs:
    • journalctl IO_KUBERNETES_CONTAINER_NAME=sensor -n 1000 | grep Flow_Datasource_name → logs by datasource name
    • journalctl IO_KUBERNETES_CONTAINER_NAME=sensor -n 1000 | grep provider=events → logs for events provider
    • journalctl IO_KUBERNETES_CONTAINER_NAME=sensor -n 1000 | grep datasource=uvm244-vcsim3 → logs for specific datasource
    • journalctl IO_KUBERNETES_CONTAINER_NAME=sensor -n 1000 | grep vcenterId=fda4fd5c-bd4e-4554-925d-f142a3232667 → logs for vcenter datasource matching given vcenter uuid
  10. Below are some cvpi commands to check logs:
    • To check current sensor pod logs: cvpi logs sensor
    • To check all sensor logs: cvpi logs sensor --full
    • To pack sensor logs to tar file: cvpi debug logs
Models: CV-UNO CloudVision Sensor, CloudVision Sensor, Sensor

File Info : application/pdf, 25 Pages, 4.06MB

PDF preview unavailable. Download the PDF instead.

CV-UNO-Sensors-Deployment-Guide

References

macOS Version 12.7.6 (Build 21H1320) Quartz PDFContext

Related Documents

Preview Arista CloudVision Appliance Quick Start Guide
A comprehensive quick start guide for the Arista CloudVision Appliance, detailing installation, setup, configuration, and access procedures for models DCA-200-CV and DCA-250-CV. Includes essential specifications and troubleshooting information.
Preview Arista Campus Network and Security Design Guide: EVPN-VXLAN and Zero Trust
Arista Networks' design guide for building secure, scalable campus networks. Covers EVPN-VXLAN, Zero Trust security, wired/wireless services, and network segmentation.
Preview DANZ Monitoring Fabric Hardware Guide | Arista Networks
Detailed hardware specifications, component descriptions, and LED indicators for Arista Networks' DANZ Monitoring Fabric. Covers Controller, Service, Analytics, and Recorder nodes, plus supported Arista switches.
Preview Arista C-330E Access Point Quick Start Guide
This guide provides essential information for the quick installation and deployment of the Arista C-330E Access Point, covering hardware overview, network connectivity, power options, and basic troubleshooting.
Preview Arista 7050X4 Series Data Center Switches Quickstart Guide | Installation & Setup
Get started with Arista Networks 7050X4 Series Data Center Switches. This quickstart guide covers installation, rack mounting, cabling, safety, and initial configuration for models like DCS-7050DX4-32S, DCS-7050PX4-32S, and more. Essential for network technicians and service personnel.
Preview Arista AWE-5310/AWE-5510 Router Quick Start Guide
Quick Start Guide for Arista Networks AWE-5310 and AWE-5510 routers, covering installation, specifications, and initial setup. Learn how to deploy and configure your Arista router.
Preview Arista Platform-Specific Feature Set Guide: ZTP, Hardware Authentication, Secure Boot
A guide detailing Arista Networks' platform-specific feature support for Zero Touch Provisioning (ZTP) with CloudVision as-a-Service, Hardware Authentication, and Secure Boot features. Includes lists of supported Arista switch SKUs and product families.
Preview Arista 7280R3 Series: Universal Leaf Switch Architecture Deep Dive
An in-depth look at the Arista 7280R3 Series Universal Leaf switches, detailing their architecture, packet forwarding pipeline, advanced features like FlexRoute and VoQ, and system specifications for high-performance networking.