Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show openflow statistics flows

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show openflow statistics flows
<flow-id>
<switch switch-name>

Description

Display statistics for OpenFlow flows.

Options

none

Display flow statistics for all flows for all OpenFlow virtual switches.

flow-id

(Optional) Display flow statistics only for the specified flow.

switch switch-name

(Optional) Display flow statistics only for the specified OpenFlow virtual switch.

Required Privilege Level

admin

Output Fields

Table 1 lists the output fields for the show openflow statistics flows command. Output fields are listed in the approximate order in which they appear.

Table 1: show openflow statistics flows Output Fields

Field Name

Field Description

Switch Name

User-configured identifier for the OpenFlow virtual switch on which the flow resides.

Table ID

Identifier for the flow table from which the flow originated.

Flow ID

OpenFlow flow entry identifier.

Duration(in sec)

Number of seconds the flow has been active.

Duration(in nsec)

Number of nanoseconds the flow has been active beyond the value of Duration(in sec).

Priority

Flow entry priority. Packets match higher priority entries before matching lower priority entries.

Idle timeout

Number of seconds after which the flow entry is removed from the flow table provided there are no matching packets.

Hard timeout

Number of seconds after which the flow entry is removed from the flow table regardless of the number of matching packets.

Number of packets

Number of packets that have matched the flow entry.

Number of bytes

Number of bytes that have matched the flow entry.

Match

Fields against which the incoming packet is compared.

Action

Set of actions applied to a packet when it matches the flow entry.

Sample Output

show openflow statistics flows

content_copy zoom_out_map
user@host> show openflow statistics flows
Switch Name: OFswitch1
Table ID: 1     Flow ID: 16842752
Duration(in sec): 58772          Duration(in nsec): 215702000
Priority: 32768   Idle timeout(in sec):0        Hard timeout(in sec): 0
Number of packets: 8745275026
Number of bytes:   524716501560
Match: IN_PORT,
Action: OUTPUT,

show openflow statistics flows (OpenFlow 1.3.1)

content_copy zoom_out_map
user@host> show openflow statistics flows
Switch Name: 100                                                               
Table ID: 1     Flow ID: 67174400            
Duration(in sec): 51539          Duration(in nsec): 3961483296 
Priority: 1000    Idle timeout(in sec):0        Hard timeout(in sec): 0      
Number of packets: 179965839            
Number of bytes:   14757198798          
Match: IN_PORT, DL_VLAN, DL_TYPE, IPv6_SRC, IPv6_DST,                          
Action: SET_FIELD[VLAN_ID], OUTPUT,  

show openflow statistics flows (Specific Flow)

content_copy zoom_out_map
user@host> show openflow statistics flows 16842752
Switch Name: OFswitch1
Table ID: 1     Flow ID: 16842752
Duration(in sec): 58803          Duration(in nsec): 4127548296
Priority: 32768   Idle timeout(in sec):0        Hard timeout(in sec): 0
Number of packets: 8749713419
Number of bytes:   524982805140
Match: IN_PORT,
Action: OUTPUT,

show openflow statistics flows (Specific Flow, OpenFlow 1.3.1)

content_copy zoom_out_map
user@host> show openflow statistics flows 67174400
Switch Name: 100                                                               
Table ID: 1     Flow ID: 67174400            
Duration(in sec): 51539          Duration(in nsec): 3961483296 
Priority: 1000    Idle timeout(in sec):0        Hard timeout(in sec): 0      
Number of packets: 179965839            
Number of bytes:   14757198798          
Match: IN_PORT, DL_VLAN, DL_TYPE, IPv6_SRC, IPv6_DST,                          
Action: SET_FIELD[VLAN_ID], OUTPUT,  

show openflow statistics flows switch

content_copy zoom_out_map
user@host> show openflow statistics flows switch OFswitch1
Switch Name: OFswitch1
Table ID: 1     Flow ID: 16842752
Duration(in sec): 58829          Duration(in nsec): 4124448296
Priority: 32768   Idle timeout(in sec):0        Hard timeout(in sec): 0
Number of packets: 8752672358
Number of bytes:   525160341480
Match: IN_PORT,
Action: OUTPUT,

show openflow statistics flows switch (OpenFlow 1.3.1)

content_copy zoom_out_map
user@host> show openflow statistics flows switch 100
Switch Name: 100                                                               
Table ID: 1     Flow ID: 67174400            
Duration(in sec): 51539          Duration(in nsec): 3961483296 
Priority: 1000    Idle timeout(in sec):0        Hard timeout(in sec): 0      
Number of packets: 179965839            
Number of bytes:   14757198798          
Match: IN_PORT, DL_VLAN, DL_TYPE, IPv6_SRC, IPv6_DST,                          
Action: SET_FIELD[VLAN_ID], OUTPUT,  

Release Information

Command introduced in Junos OS Release 13.3.

footer-navigation