Sampled Flow Tracking

This chapter describes Arista’s implementation of sampled flow tracking, including configuration instructions and command descriptions. Topics covered by this chapter include:

Sampled Flow Tracking Overview

Network administrators require access to flow information that passes through various network elements to analyze and monitor networks. Sampled flow tracking provides access to IP flow information by sampling traffic flows in ingress direction on the interfaces on which it is configured. The samples are then used to create flow records that are exported to the configured collectors in the Internet Protocol Flow Information Export (IPFIX) format.

Sampled flow tracking terminology:

  • Flow tracker: It is a collection of interfaces that collect samples and create flow records. The flow tracker has one or more exporters.
  • Exporter: It sends flow records to one or more collectors.
  • Collector: It receives flow records from one or more exporters.
  • Data record: It contains values of the parameters corresponding to a template record.
  • Template record: It defines the structure and interpretation of fields in a data record. It is an ordered sequence of type and length pairs.
  • Options template record: It is a type of template record that defines the structure and interpretation of fields in a data record, including how to scope the applicability of the data record.

Data records are created based on the following flow key fields: source IP address, destination IP address, IP protocol, source port, destination port, VRF, and VLAN. These records support IPv4 flow data record and IPv6 flow data record.

Sampled flow tracking supports the following options data records:

  • VRF record: mapping of VRF ID to VRF name.
  • Interface record: mapping of interface ID to interface name.
  • Flow key indicator record: mapping of template ID to flow key indicator.
  • Flow tracker record: contains information about configured flow tracker.

Sampled Flow Tracking Limitations

The limitations of Sampled flow tracking are:

  • Sampled flow tracking is active only when sFlow is disabled on the device.
  • Sampled flow tracking does not support export of IPFIX messages over ECMP paths.
  • Sampled flow tracking route simulation is not supported for ECMP paths.

Configuring Sampled Flow Tracking

These sections describe sampled flow tracking configurations.

Configuring Sampled Flow Tracking

Use the flow tracker sampled command to enable sampled flow tracking on a tracker. Each tracker should have a minimum of one exporter configured.

Example

This command enables sampled flow tracking on an interface Eth1 and the flow tracker ftr1.

switch(config)# interface Eth1
switch(config-if-Et1)# flow tracker sampled ftr1

Use the sample command to enable the sample rate for a specific sampled flow tracker. The default sample rate is 1048576.

Example

These commands configure a sample rate of 1024 for the sampled flow tracker.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#sample 1024

Configuring the Sampled Flow Tracker

Use the tracker command to configure a sampled flow tracker for a device.

Example

This command configures a sampled flow tracker named ftr1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)# tracker ftr1

Use the record export on interval command to configure the interval at which active flow records are exported. The default interval is 300000 milliseconds.

Example

These commands configure an active record interval of 7000 for the exporter exp1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#record export on interval 7000

Use the record export on inactive timeout command to configure the interval at which timed-out inactive flow records are exported. The default interval is 15000 milliseconds.

These commands configure an inactive record interval of 4000 for the exporter exp1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#record export on inactive timeout 
4000

Configuring Exporter for Sampled Flow Tracker

Use the exporter command to configure or unconfigure an exporter for a specific tracker.

Example

This command configures exporter exp1 for the specific tracker ftr1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)# tracker ftr1
switch(config-ftr-sampled-tr-ftr1)# exporter exp1

Use the collector command to configure the collector for the specific exporter.

Example

These commands configure a collector for the IPv4 address 192.0.2.0 and collector port number 10.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#collector 192.0.2.0 port 10

Use the local interface command to configure the local source interface for the specific exporter.

Example

These commands configure the local source interface ethernet1 for the exporter exp1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#local interface ethernet1

Use the dscp command to configure the DSCP value for the specific exporter. The default DSCP value is 0.

Example

These commands configure a DSCP value of 10 for the exporter exp1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#dscp 10

Use the format ipfix version command to configure the IPFIX version and maximum packet size for the specific exporter. The default IPFIX version is 10 and the default maximum packet size is 9152.

Example

These commands configure an IPFIX version of 10 and a maximum packet size of 854 for the exporter exp1.

switch(config)#flow tracking sampled
switch(config-flow-tracking-sampled)#tracker ftr1
switch(config-ftr-sampled-tr-ftr1)#exporter exp1
switch(config-ftr-sampled-tr-ftr1-exp-exp1)#format ipfix version 10 
max-packet-size 854

Use the template interval command to configure the interval at which templates are exported for the specific exporter. The default template interval is 3600000 milliseconds.

Example

This command configures the interval of 3400000 milliseconds for the exporter exp1.

 switch(config-ftr-sampled-tr-exp-ftr1-exp1)# template interval 3400000

Sampled Flow Tracking configuration Examples

This section describes the command configurations required to configure sampled flow tracking.

Sampled Flow Tracking Basic configuration

The following commands enable a basic configuration.

  1. Enable configuration mode for the sampled flow tracking on a device.
    switch(config)#flow tracking sampled
  2. Configure a sampled flow tracker for a device.
    switch(config-flow-tracking-sampled)# tracker ftr1
  3. Configure an exporter for the specific tracker.
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
  4. Configure the collector for the specific exporter.
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#collector 172.31.22.131
  5. Configure the local source interface ethernet1 for the specific exporter.
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#local interface ethernet1
  6. Enable sampled flow tracking.
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#no shutdown
  7. Configure the interface ethernet2 for the specific exporter.
    switch(config)#interface ethernet2
  8. Configure the sampled flow tracker on the interface ethernet2.
    switch(config)#interface ethernet2
    switch(config-if-Et2)# flow tracker sampled ftr1

Sampled Flow Tracking commands

clear flow tracking sampled counters

The clear flow tracking sampled counters command clears the flow tracking counters for all trackers, a specified tracker, or a specified tracker and exporter.

Command Mode

Privileged EXEC

Command Syntax

clear flow tracking sampled counters [ tracker tracker_name [ exporter exporter_name ]]

Parameters

  • tracker tracker_name Specifies the flow tracker.
  • exporter exporter_name Specifies the exporter.

Example

  • This command clears the flow counters for the tracker ftr1 and exporter exp1.
    switch#clear flow tracking sampled counters tracker ftr1 exporter exp1
    switch#

collector

The collector command configures a collector to receive flow records from a specified exporter.

The no collector and default collector commands remove the configured collector from running-config.

Command Mode

Sampled Flow Tracking Exporter configuration

Command Syntax

collector { ipv4_address | ipv6_address } [ port port_number ]

no collector { ipv4_address | ipv6_address } [ port port_number ]

default collector { ipv4_address | ipv6_address } [ port port_number ]

Parameters

  • ipv4_address Specifies the IPv4 address of the collector.
  • ipv6_address Specifies the IPv6 address of the collector.
  • port port_number Specifies the port number for the collector. Values range from 1 to 65535. The default value is 4739.

Example

  • These commands configure a collector for the IPv4 address 192.0.2.0 and collector port number 10.
    switch(config)#flow tracking sampled
    switch(config-flow-tracking-sampled)#tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)#exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#collector 192.0.2.0 port 10
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#exit
    switch(config-ftr-sampled-tr-ftr1)#exit
    switch(config-flow-tracking-sampled)#exit
    switch(config)#

dscp

The dscp command configures the Differentiated Services Code Point (DSCP) value for a specific exporter.

The no dscp and default dscp commands reset the DSCP value to the default of 0.

Command Mode

Sampled Flow Tracking Exporter configuration

Command Syntax

dscp dscp_value

no dscp dscp_value

default dscp dscp_value

Parameters

  • dscp_value the DSCP value assigned to the exporter. Value ranges from 0 to 63. Default value is 0.

Example

  • These commands configure a DSCP value of 10 for the exporter �exp1.�
    switch(config)#flow tracking sampled
    switch(config-flow-tracking-sampled)#tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)#exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#dscp 10 
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#exit 
    switch(config-ftr-sampled-tr-ftr1)#exit
    switch(config-flow-tracking-sampled)#exit
    switch(config)#

exporter

The exporter command places the switch in sampled flow tracking exporter configuration mode for the specified exporter and creates the exporter if it does not yet exist.

The no exporter and default exporter commands remove the specific exporter from running-config.

Command Mode

Sampled Flow Tracking Tracker configuration

Command Syntax

exporter exporter_name

no exporter exporter_name

default exporter exporter_name

Parameters

  • exporter_name the name of the exporter.

Example

  • These commands create exporter exp1 for the flow tracker ftr1 and place the switch in configuration mode for that exporter.
    switch(config)#flow tracking sampled
    switch(config-flow-tracking-sampled)#tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)#exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)#

flow tracker sampled

The flow tracker sampled command configures an interface to be part of a flow tracker. An interface can belong to only one flow tracker.

The no flow tracker sampled and default flow tracker sampled commands remove the specified interface from the specified tracker.

Command Mode

Interface-ethernet configuration

Command Syntax

flow tracker sampled tracker_name

no flow tracker sampled tracker_name

default flow tracker sampled tracker_name

Parameters

  • tracker_name the name of the flow tracker to which the interface is to be added.

Example

  • This command configures ethernet interface 1 to participate in the flow tracker �ftr1.�
    switch(config)# interface ethernet 1
    switch(config-if-Et1)# flow tracker sampled ftr1
    switch(config-if-Et1)# 

flow tracking sampled

The flow tracking sampled command places the switch in sampled flow tracking configuration mode. Sampled flow tracking configuration mode is a group-change mode; changes made in a group-change mode are saved by exiting the mode.

The no flow tracking sampled and default flow tracking sampled commands remove all sampled flow tracking configuration from running-config.

Command Mode

Global configuration

Command Syntax

flow tracking sampled

no flow tracking sampled

default flow tracking sampled

commands Available in Sampled Flow Tracking configuration Mode

  • abortexits mode without saving changes
  • exitexits mode and saved changes
  • sample configures sample parameters
  • shutdown (sampled flow tracking) enables or disables sampled flow tracking
  • tracker configures a flow tracker

Example

  • This command places the switch in sampled flow tracking configuration mode.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)#

format ipfix version

The format ipfix version command configures the IPFIX version and maximum packet size for a specific exporter.

The no format ipfix version and default format ipfix version commands remove the previously configured IPFIX version and the maximum packet size value from running-config.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

format ipfix version ipfix_version [ max-packet-size max-packet-size value ]

no format ipfix version ipfix_version [ max-packet-size ]

default format ipfix version ipfix_version [ max-packet-size ]

Parameters

  • ipfix_version the IPFIX version. Default value is 10.
  • max-packet-size max-packet-size value the IPFIX maximum packet size. Value ranges from 512 to 65472. Default value is 9152.

Example

  • These commands configure an IPFIX version of 10 and a maximum packet size of 854 for the exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# format ipfix version 10 
    max-packet-size 854

local interface

The local interface command configures the local source interface for the specific exporter.

The no local interface and default local interface commands remove the local interface for the specific exporter from running-config.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

local interface interface

no local interface

default local interface

Parameters

  • interface Interface type and numbers. Options include:
    • ethernet eth_num displays the information of the specified ethernet interface. The value ranges from 1 to 64.
    • Loopback lb_num displays the information of the specified loop back interface. The value ranges from 0 to 2100.
    • Management m_num displays the information of the specified Management interface. The management port number ranges from 1 to 2.
    • Port-Channel pc_num displays the interface or sub-interface information of the specified port channel. The interface and sub-interface values of port channel ranges from <1-1000>and <1-2000>.<1-4094> respectively.
    • Tunnel t_num displays the information of the specified tunnel. The value ranges from 0 to 255.
    • Vlan vlan_num displays the information of the specified VLAN interface. The value ranges from 1 to 4094.

Example

  • These commands configure the local source interface ethernet1 for the exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# local interface ethernet1

record export on inactive timeout

The record export on inactive timeout command configures the interval at which inactive flow records time out and are exported for a flow tracker.

The no record export on inactive timeout and default record export on inactive timeout commands remove the timeout interval from running-config.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

record export on inactive timeout timeout_value

no record export on inactive timeout

default record export on inactive timeout

Parameters

  • timeout_value the flow record inactive export timeout value in milliseconds. Value ranges from 3000 to 900000. The default value is 15000 milliseconds.

Example

  • These commands configure an inactive record interval of 6000 for the exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# record export on inactive timeout 
    6000

record export on interval

The record export on interval command configures the interval at which active flow records are exported for a flow tracker.

The no record export on interval and default record export on interval commands remove the interval from running-config.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

record export on interval interval_value

no record export on interval

default record export on interval

Parameters

  • interval_value the flow record export interval in milliseconds. Value ranges from 5000 to 36000000. The default value is 300000 milliseconds.

Example

  • These commands configure an active record interval of 9000 for the exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# record export on interval 9000

sample

The sample command enables the sample rate for a specific sampled flow tracker.

The no sample and default sample commands remove the sample rate configured for a specific sampled flow tracker from running-config.

Command Mode

Sampled Flow configuration

Command Syntax

sample sample_rate

no sample

default sample

Parameters

  • sample_rate the sample flow tracking rate to be assigned for a sampled flow tracker. Value ranges from 1024 to 16777216. Default value is 1048576.

Example

  • These commands configure a sample rate of 2056 for the sampled flow tracker.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# sample 2056

show flow tracking sampled counters

The show flow tracking sampled counters command displays information about the flow tracking counters of a specific tracker and the counters of a specified exporter within that tracker.

Command Mode

EXEC

Command Syntax

show flow tracking sampled counters[ tracker tracker_name[ exporter exporter_name ]]

Parameters

  • tracker tracker_name the specific flow tracker.
  • exporter exporter_name the specific exporter within the tracker.

Examples

  • This command displays the flow tracking counter information of the tracker ftr1 and the exporter exp1.
    switch# show flow tracking sampled�counters tracker ftr1 exporter exp1
    Tracker: ftr1
    1 flows, 22 RX packets
    Flows created: 1, expired: 0
    Group: IPv4
    1 flows, 22 RX packets
    Group: IPv6
    0 flows, 0 RX packets
    Exporter: exp1 (IPFIX)
    Collector: 172.31.24.133 port 4739
    52 messages, last sent 0:00:27 ago
    0 flow records
    2350 options data records, last sent 0:00:27 ago
    6 templates, last sent 0:12:27 ago
    Collector: 172.31.22.131 port 4739
    52 messages, last sent 0:00:27 ago
    0 flow records
    2350 options data records, last sent 0:00:27 ago
    6 templates, last sent 0:12:27 ago

show flow tracking sampled flow-table

The show flow tracking sampled flow-table command displays information about the active flows maintained in the eos.

Command Mode

EXEC

Command Syntax

show flow tracking sampled flow-table [ detail | dst-ip | dst-port | group | interface | protocol | src-ip | src-port | tracker | vlan | vrf ]

Parameters

  • detail displays detailed flow records.
  • dst-ip displays flow records based on destination IPv4 or IPv6 address.
  • dst-port displays flow records based on a specified destination port.
  • group displays flow records based on IPv4 or IPv6 flow groups.
  • interface displays flow records based on ingress interface.
  • protocol displays flow records based on the flow IP protocol.
  • src-ip displays flow records based on source IPv4 or IPv6 address.
  • src-port displays flow records based on a specified source port.
  • tracker displays flow records based on flow tracker.
  • vlan displays flow records based on a specified flow VLAN ID.
  • vrf displays flow records based on flow VRF.

Examples

  • This command displays information about the active flows on the device.
    switch# show flow tracking sampled flow-table
    Tracker: ftr1, Flows: 1
     Group: IPv4, Flows: 1
     VRF VLAN Source Destination Protocol Start Time Pkts Bytes
     ---- ------ ------------- ------------- ---------- ---------------------------- ------ ------
     red 42 10.10.1.1:0 10.20.1.2:0 UDP 2019-04-18 15:06:50 7 700
  • This command displays detailed information about the active flows on the device.
    switch# show flow tracking sampled flow-table detail
    Tracker: ftr1, Flows: 1
    Group: IPv4, Flows: 1
    Flow: UDP 10.10.1.1:0 - 10.20.1.2:0, VRF: red, VLAN: 42
    Start time: 2019-04-18 15:06:50.268734, Last packet time: 2019-04-18 15:07:03.607900
    Packets: 15, Bytes: 1500, TOS: 0, TCP flags: none
    Source MAC: 001c.73ee.bfe4, Destination MAC: 001c.7374.3b85
    Ingress Interface: 'ethernet1', Egress VLAN: routed, Egress Interface: CPU
    Next hop: unknown, BGP next hop: unknown (AS unknown), Source AS: unknown
    Source prefix length: 24, Destination prefix length: 32

show flow tracking sampled ipfix options-table

The show flow tracking sampled ipfix options-table command displays information about the sampled IPFIX options table available.

Command Mode

EXEC

Command Syntax

show flow tracking sampled ipfix options-table tracker [ flow-key | flow-tracker | interface | vrf ]

Parameters

  • tracker displays the output for a specific flow tracker.
  • flow-key displays the flow keys options table.
  • flow-tracker displays the flow tracker options table.
  • interface displays the interface options table.
  • vrf displays the VRF options table.

Examples

  • This command displays the sampled IPFIX options table for the tracker ftr1.
     switch# show flow tracking sampled�ipfix options-table
    Tracker: ftr1
    Observation domain: ftr1, ID: 1
    Active interval: 30sec
    Inactive timeout: 120sec
    Selector algorithm: random(3)
    Sampling: 1/1024
    Flow tracking type: sampled(1)
    VRF Table, Template ID: 256, Scope: ingressVRFID
    VRF ID VRF Name
    -------------- --------
    0 default
    1 red
    16777215 
    Interface Table, Template ID: 257, Scope: ingressInterface
    Interface ID Interface Name
    ------------------ ----------------
    0 unknown
    3013 ethernet1
    3014 ethernet2
     
    1073741823 CPU
    1073741824 discard
    1074029945 ethernet3/36/1.1
    1074292089 ethernet3/36/1.2
    2147483648 multicast
    Flow Keys Table, Template ID: 258, Scope: templateId
    Template ID Flow Key Indicator
    ----------------- ------------------
    261 0x7f
    262 0x7f

show flow tracking sampled ipfix template

The show flow tracking sampled ipfix template command displays information about the exported IPFIX data templates and options templates.

Command Mode

EXEC

Command Syntax

show flow tracking sampled ipfix template [ data | options | tracker ]

Parameters

  • data displays the data templates.
  • options displays the flow options template.
  • tracker displays the flow tracker template.

Example

  • This command displays the sampled IPFIX options table for the tracker ftr1.
    switch# show flow tracking sampled�ipfix template
    Tracker: ftr1
    Data Template, Group: IPv4, Fields: 26, Template ID: 261
    ingressVRFID (234), 4 bytes
    vlanId (58), 2 bytes
    sourceIPv4Address (8), 4 bytes
    destinationIPv4Address (12), 4 bytes
    protocolIdentifier (4), 1 bytes
    sourceTransportPort (7), 2 bytes
    destinationTransportPort (11), 2 bytes
    sourceMacAddress (56), 6 bytes
    postDestinationMacAddress (57), 6 bytes
    octetDeltaCount (1), 8 bytes
    packetDeltaCount (2), 8 bytes
    flowStartMilliseconds (152), 8 bytes
    flowEndMilliseconds (153), 8 bytes
    flowEndReason (136), 1 bytes
    tcpControlBits (6), 2 bytes
    ingressInterfaceType (368), 4 bytes
    ingressInterface (10), 4 bytes
    postVlanId (59), 2 bytes
    egressInterface (14), 4 bytes
    ipClassOfService (5), 1 bytes
    bgpSourceAsNumber (16), 4 bytes
    bgpDestinationAsNumber (17), 4 bytes
    bgpNextHopIPv4Address (18), 4 bytes
    ipNextHopIPv4Address (15), 4 bytes
    sourceIPv4PrefixLength (9), 1 bytes
    destinationIPv4PrefixLength (13), 1 bytes
    
    <-------OUTPUT OMITTED FROM EXAMPLE-------->
    

show flow tracking sampled

The show flow tracking sampled tracker command displays information about the status of a specific tracker and the status of a specified exporter within that tracker. If no tracker is specified in the command, then all information about all trackers is displayed.

Command Mode

EXEC

Command Syntax

show flow tracking sampled[ tracker tracker_name[ exporter exporter_name ]]

Parameters

  • tracker tracker_name the specific flow tracker.
  • exporter exporter_name the specific exporter within the tracker.

Examples

  • This command displays the status information of the tracker ftr1 and the exporter exp1.
    switch# show flow tracking sampled tracker ftr1 exporter exp1
    Flow tracking status
     Type: Sampled
     Running: yes
     Sample rate: 1024
     Tracker: ftr1
     Active interval: 30000ms
     Inactive timeout: 120000ms
     Groups: IPv4, IPv6
     Exporter: exp1
     VRF: default
     Local interface: Management1 (172.30.150.179)
     Export format: IPFIX version 10, MTU 1500
     DSCP: 48
     Template interval: 3600000ms
     Collectors:
     172.31.22.131 port 4739
     Active interfaces:
     Et1

shutdown (sampled flow tracking)

The shutdown command disables sampled flow tracking for the specific exporter.

The no shutdown command enables sampled flow tracking for the specific exporter.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

shutdown

no shutdown

default shutdown

Example

  • These commands enable sampled flow tracking for the specific exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# local interface ethernet1
    switch(config-ftr-sampled-tr-ftr1-exp-exp1)# no shutdown

template interval

The template interval command configures the interval at which templates are exported for a specific exporter. The default template interval is 3600000 milliseconds.

The no template interval and default template interval commands reset the interval rate to the default.

Command Mode

Sampled Flow Tracking configuration

Command Syntax

template interval interval

no template interval

default template interval

Parameters

  • interval the interval rate in milliseconds. The value ranges between 5000 and 3600000 milliseconds. The default rate is 3600000 milliseconds.

Example

  • This command configures the interval of 3400000 milliseconds for the exporter exp1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1
    switch(config-ftr-sampled-tr-ftr1)# exporter exp1
    switch(config-ftr-sampled-tr-exp-ftr1-exp1)# template interval 3400000 

tracker

The tracker command configures a sampled flow tracker for a device.

The no tracker and default tracker commands remove the sampled flow tracker from the running config.

Command Mode

Sampled Flow configuration

Command Syntax

tracker tracker_name

no tracker tracker_name

default tracker tracker_name

Parameters

  • tracker_name the flow tracker name.

Example

  • These commands configure the sampled flow tracker ftr1.
    switch(config)# flow tracking sampled
    switch(config-flow-tracking-sampled)# tracker ftr1