Administrator Guide

38 Flow Vision Administrator’s Guide
53-1002999-01
Flow Generator examples
3
Changing a flow frame payload pattern
Assigning a frame payload pattern explicitly to a flow affects only that flow and overrides the
existing frame payload pattern for that flow. Changing a payload pattern can only be done to an
inactive flow. The following example sets the default payload pattern for the flow F2 to “a5a5a5”.
switch:admin> flow --control F2 -feature generator -pattern "a5a5a5"
Flow Generator examples
The following examples describe how to work with Flow Generator flows.
Creating a flow from a specific Source ID to a specific Destination ID
To create a flow between a specific source ID (SID) and a specific destination ID (DID), complete
the following steps:
1. Create two SIM-Ports.
2. Create an active flow from the SID to the DID.
FIGURE 9 A flow from a specific source ID to a specific destination ID
The following example creates the flow as shown in Figure 9. SIM-Port 1/1 is the source port and
SIM-Port 1/2 is the destination device. The flow --show flowCase1 -feature generator command
displays the SID frame count and then the DID frame count.
switch:admin> flow -–control –simport 1/1 -enable
switch:admin> flow -–control -simport 1/2 -enable
switch:admin> flow –-create flowcase1 –feature generator -ingrport 1/1 -srcdev 0x040100 -dstdev 0x050200
switch:admin> flow --show flowCase1 -feature generator
Name: flowcase1 Features: gen(Activated) noConfig: Off
Definition: IngrPort(1/1),SrcDev(040100),DstDev(050200)
Flow Generator (Activated):
-----------------------
| SrcDev | DstDev |
-----------------------
| 0x040100 | 0x050200 |
-----------------------
Number of frames generated from ingrport: 19.46M
switch:admin> flow --show -ctrlcfg
SimPort Information
-------|------|--------|-------------------------|--------------------|------------------
Slot | Port | PID | PWWN | SID Frame Count | DID Frame Count |
-------|------|--------|-------------------------|--------------------|------------------
1 | 2 | 050200 | 20:02:00:05:1e:e2:8e:00 | 0K | 19480K |