Commands and Parameters Applicable to vFlow Traffic


The vFlow feature includes several commands and keyword parameters to configure and monitor various vFlow actions. Some of the important commands and parameters are explained in this section.


  • To create a new vFlow object, use the command:


CLI (network-admin@switch-1) > vflow-create name <vflow-name> scope [local|fabric] {parameters}


  • To modify an existing vFlow object,


CLI (network-admin@switch-1) > vflow-modify name <vflow-name> {parameters}


  • To delete an existing vFlow object,


CLI (network-admin@switch-1) > vflow-delete name <vflow-name> 


  • To display existing vFloiw objects,


CLI (network-admin@switch-1) > vflow-show {parameters}


The key parameters required to create a vFlow object are categorized as:


  • Scope (2)
    • local OR
    • fabric


  • Tables (4)
    • <blank>
    • table-name Egress-Table-1-0
    • table-name System-L1-L4-Tun-1-0
    • table-name System-VCAP-table-1-0


  • Match  Conditions: Specify one or more match conditions:
    • bridge-domain name
    • vlan
    • vnet
    • in-port <port>
    • out-port <port>
    • ether-type <type>
    • src-mac <mac> src-mac-mask <mask>
    • dst-mac <mac> dst-mac-mask<mask>
    • src-ip <ip> src-ip-mask <mask>
    • dst-ip <ip> dst-ip-mask <mask>
    • src-port <port> proto <tcp|udp>
    • dst-port <port> proto <tcp|udp>
    • src-port <port> src-port-mask <mask>
    • dst-port <port> dst-port-mask <mask>
    • src-port <port> src-port-end <port>
    • dst-port <port> dst-port-end <port>
    • dscp-start <start value> dscp-end <end value>
    • tos-start <start value> tos-end <end value>
    • tos <tos>
    • vlan-prio <802.1p priority>
    • ttl <ttl>
    • proto <IP proto>
    • ingress-tunnel <tunnel>
    • udf-name1 <name> udf-data1 <data> udf-data1-mask <mask>
    • udf-name2 <name> udf-data2 <data> udf-data2-mask <mask>
    • udf-name3 <name> udf-data3 <data> udf-data3-mask <mask>


  • Special Actions
    • <blank>
    • bw-min <bw>
    • bw-max <bw>
    • burst-size <size>
    • precedence <IP precedence>
    • process-mirror
    • no-process-mirror
    • log-stats stats-interval <sec> dur <sec>
    • set-src <ip> set-src-port <port>
    • set-dst <ip> set-dst-port <port>
    • log-stats
    • no-log-stats
    • transient
    • no-transient
    • enable
    • no-enable
    • log-packets
    • no-log-packets


  • Specific Actions with Action Keyword
    • action none
    • action drop
    • action to-port action-to-ports-value <port>
    • action to-cpu
    • action trap
    • action copy-to-cpu
    • action copy-to-port
    • action check
    • action setvlan action-value <vlan>
    • action add-outer-vlan
    • action set-tpid
    • action to-port-set-vlan
    • action tunnel-pkt
    • action set-tunnel-id
    • action to-span
    • action cpu-rx
    • action cpu-rx-tx
    • action set-metadata
    • action set-dscp
    • action decap
    • action set-dmac
    • action to-next-hop-ip
    • action set-dmac-to-port
    • action to-ports-and-cpu
    • action set-vlan-pri
    • action tcp-seq-offset
    • action tcp-ack-offset
    • action  l3-to-cpu-switch
    • action set-smac
    • action drop-cancel-trap
    • action to-ecmp-group
    • action redirect-to-vrouter


  • Flow Class
    • flow-class meter
    • flow-class guaranteed_bw
    • flow-class lossless
    • flow-class class0
    • flow-class class1
    • flow-class class2
    • flow-class class3
    • flow-class class4
    • flow-class class5
    • flow-class class6
    • flow-class class7
    • flow-class class8
    • flow-cass control


  • Bandwidth parameters
    • bw-min <min>
    • bw-max <max>