Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Import the Junos OS Apstra Flow Configlet

Import the Configlet

A standard Junos sFlow confliget is provided with your product. You'll want to clone this default configlet, modify it to your needs, and then import it into your blueprint from the Apstra GUI (see Example: Junos OS Apstra Flow Configlet).

To import the flow data configlet into Apstra:

  1. From the left navigation menu in the Apstra GUI, navigate to Blueprints > Analytics > Staged. From the Catalog tab, select Configlets, then click Import Configlet.
    Apstra Blueprint section showing Staged catalog view with Configlets tab. Breadcrumb: Blueprints > asptra-pod1 > Staged > Catalog > Configlets. Import Configlet button visible.
  2. From the Configlet drop-down menu, select Flow Data for Optional Flow Analytics.
    Select the devices you want to apply the configlet to, then click Import Configlet.
    User interface for importing a Configlet from a global catalog with highlighted option Flow Data For Optional Flow Analytics.
  3. Edit the property set to add the collector IP address of your Flow Data VM, then click Update.
    Edit Property Set interface with Name field filled as Flow Data For Optional Flow Analytics; Editor input type selected; YAML format with value collector_ip: IP_OF_FLOW_VM; Update button to save changes.
  4. Under Property Set, select Flow Data For Optional Flow Analytics, then click Import Property Set.
    Dropdown menu under Import Property Set from Global Catalog with options: Flow Data For Optional Flow Analytics highlighted in red and SNMP for Flow Data Interface Enrichment.
  5. Finally, commit your configuration to import the configlet to your Junos devices.
Good job! You completed the completed the Apstra Flow Data installation. Next, continue to Launch the Apstra Flow Dashboard.

Example: Junos OS Apstra Flow Configlet

The following example shows the Junos OS Apstra Flow configlet that is provided with your product.

This configlet contains a static routing option to route the flow traffic over the management Junos RPF interface. You can also specify the sFlow polling and sampling intervals, collector IP address, UDP port and interfaces you want to collect data on.

Configure SNMP for Interface Name Enrichment

If you prefer to see actual interface names such as xe-0/0/1 over interface indexes, Apstra Flow must query the devices using SNMP. This process is necessary for this type of enrichment.

Perform the following steps to configure SNMP:

  1. From the left navigation menu in the Apstra GUI, navigate to Blueprints and select the blueprint you want to update.
    Navigate to the Staged >Catalog tab, select Configlets, then click Import Configlet.
  2. From the Global Catalog, select Example SNMPv2 configlet for flow-data interface enrichment.
    Dropdown menu labeled Configlet with a red asterisk for required field, highlighted option Example SNMPv2 configlet for flow-data interface enrichment.
    Select the devices you want to apply the configlet to, then click Import Configlet.
  3. Select the property set to import.
    Under Property Set, select Example SNMPv2 property-set for flow-data interface name enrichment, then click Import Property Set.
    Dropdown menu labeled Property Set with red asterisk indicating required field; SNMPv2 property-set selected.
  4. Edit the property set.
    Add the community string for your SNMP configuration, then click Update.
    Configuration interface for an SNMPv2 property set titled Example SNMPv2 property-set for flow-data interface name enrichment with snmpv2_community set to public.
  5. Finally, import the property set.
    Commit your configuration to import the configlet to your Junos devices.