Supported by the GlobalNOC at Indiana University

Viewing Flows

To view flows run the show openflow flows command on device.

SSH@brocade1.sdn-test#show openflow flows
Total Number of data packets sent to controller:               182304
Total Number of data bytes sent to controller  :             11667456

Total Number of Flows: 5
Total Number of Port based Flows: 4
Total Number of L2 Generic Flows: 0
Total Number of L3 Generic Flows: 0
Total Number of L2+L3 Generic Flows: 1
Total Number of Hardware entries for Generic flow: 5

Flow ID: 1 Priority: 32768 Status: Active
	Rule:
	   In Vlan:	 Untagged
	   Ether type:	 0x000088cc
	Action: FORWARD
	   Out Port: send to controller

Flow ID: 2 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/6
	   In Vlan:	 Tagged[103]
	Action: FORWARD
	   Out Port:  e15/2, Tagged, Vlan: 2
        Statistics:
	   Total Pkts: 14732514715
	   Total Bytes: 125226375048431

It is also possible to filter the results to specific interfaces (sorry can't do specific vlans) by appending the interface name to the end of that command like:

SSH@brocade1.sdn-test#show openflow flows ethernet 15/2

Total Number of Flows associated with the port: 3

Flow ID: 1 Priority: 32768 Status: Active
	Rule:
	   In Port:	generic
	   In Vlan:	 Untagged
	   Ether type:	 0x000088cc
	Action: FORWARD
	   Out Port: send to controller

Flow ID: 3 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/2
	   In Vlan:	 Tagged[2]
	Action: FORWARD
	   Out Port:  e15/6, Tagged, Vlan: 103
	Statistics:
	   Total Pkts: 14732515545
	   Total Bytes: 125226382150969

Flow ID: 5 Priority: 32768 Status: Active
	Rule:
           In Port:      e15/2
	   In Vlan:	 Tagged[1]
	Action: FORWARD
	   Out Port:  e15/4, Vlan: STRIPPED
	Statistics:
	   Total Pkts: 182367
	   Total Bytes: 12400956

Another thing to note is that the flow stats are included in the show openflow flows.

If you have only 1 specific rule that you are interested in seeing you can also specify the flow id in the command:

SSH@brocade1.sdn-test#show openflow flows flowid 5
Flow ID: 5 Priority: 32768 Status: Active
	Rule:
	   In Port:	 e15/2
	   In Vlan:	 Tagged[1]
	Action: FORWARD
	   Out Port:  e15/4, Vlan: STRIPPED
	Statistics:
	   Total Pkts: 182411
	   Total Bytes: 12403948

Your request has been completed.