Displaying the OpenFlow flows
You can display the OpenFlow flows that are configured on the device and their statistics by using the following command:
device(config)# show openflow flows eth 1/1/2
The
show openflow flows command shows all the flows configured in the system flow table. If you specify the
interface, all the flows configured in the system for that interface are displayed.
device(config)# show openflow flows Flow ID: 1 Priority: 1 Status: Active Rule: In Port: e1/1/1 In Vlan: Tagged[100] Vlan Mask: 0xfff Vlan PCP: 3 Source Mac: 0000.0000.0001 Destination Mac: 0000.0000.0002 Source Mac Mask: ffff.ffff.ffff Destination Mac Mask: ffff.ffff.ffff Ether type: 0x00000800 Source IP: 1.1.1.0 Subnet IP: 255.255.255.0 Destination IP: 2.2.2.0 Subnet IP: 255.255.255.0 IP TOS: 8 IP Protocol: 17 IP Protocol Source Port: 10000 IP Protocol Destination Port: 80 Cookie: abcdef Cookie Mask: 0xfffff Timing Info: Idle Timeout : 500 secs Hard Timeout : 3000 secs Time Elasped(Since Flow Added) : 6 secs Time Elasped(Since Last Packet Hit) : 6 secs Instruction: Apply Action Action: FORWARD Out Port: e1/1/2, Tagged, Vlan: 10 Action: FORWARD Out Port: e1/1/3, Tagged, Vlan: 20 Statistics: Total Packets: 0 Total Bytes: 0 Flow ID: 10 Priority: 1 Status: Active Rule: In Port: e1/1/17 Ether type: 0x800 Destination IP: 177.1.1.0 Subnet IP: 255.255.255.0 Instructions: Apply-Actions Action: FORWARD Out Port: normal Statistics: Total Pkts: 0 Total Bytes: 0 Flow ID: 11 Priority: 1 Status: Active Rule: In Port: e1/1/17 Ether type: 0x800 Destination IP: 180.1.1.0 Subnet IP: 255.255.255.0 Instructions: Apply-Actions Action: FORWARD Out Port: e1/1/2 Out Port: normal Statistics: Total Pkts: 0 Total Bytes: 0 Flow ID: 12 Priority: 1 Status: Active Rule: In Port: e1/1/17 Ether type: 0x800 Destination IP: 188.1.1.0 Subnet IP: 255.255.255.0 Instructions: Apply-Actions Action: FORWARD Out Port: FLOOD Statistics: Total Pkts: 0 Total Bytes: 0 Flow ID: 13 Priority: 1 Status: Active Rule: In Port: e1/1/17 Ether type: 0x800 Destination IP: 199.1.1.0 Subnet IP: 255.255.255.0 Instructions: Apply-Actions Action: FORWARD Out Port: ALL Statistics: Total Pkts: 0 Total Bytes: 0