Reference Guide
Brocade Fabric OS Command Reference 759
53-1004112-02
portCmd
To configure a TPerf source so it generates round-trip high and low priority traffic with a random PDU size from
2048 to 10112 bytes (1 MSS) and with a payload pattern determined by previous settings saved in memory:
switch: admin> portcmd --tperf 16 -source -high -low -random
TPerf has been configured successfully for 16
TPerf is generating traffic on 16 priority: high
TPerf is generating traffic on 16 priority: low
***************************************************************
Tunnel ID: 16
High Priority Medium Priority Low Priority
bytes tx 19800708 0 19168848
bytes rx 187200 0 183640
PDUs tx 4686 0 4598
PDUs rx 4685 0 4597
out of seq PDUs rx 0 0 0
flow control count 0 0 0
last rtt 5 0 5
****************************************************************
To configure a TPerf source to generate one-way low priority traffic with a random PDU size from 2048 to 4000
bytes and a payload pattern of ones.
switch:admin> portcmd --tperf 16 -source -low \
-size 4000 -random -unidirectional -pattern 2
TPerf has been configured successfully for 16
TPerf is generating traffic on 16 priority: low
****************************************************************
Tunnel ID: 16
High Priority Medium Priority Low Priority
bytes tx 0 0 19800708
bytes rx 0 0 0
PDUs tx 0 0 1434686
PDUs rx 0 0 0
out of seq PDUs rx 0 0 0
flow control count 0 0 0
last rtt N/A N/A N/A
*****************************************************************
To specify test data patterns for the source payload:
switch:admin> portcmd --tperf 16 -source -pattern random
switch:admin> portcmd --tperf 16 -source -pattern 4
switch:admin> portcmd --tperf 16 -source -pattern jitter
switch:admin> portcmd --tperf 16 -source -pattern 5
To discover the maximum MTU available on a switch:
switch:admin> portcmd --pmtu ge3.dp0 -s 192.168.0.30 -d 192.168.0.130
Path MTU detection from 192.168.0.30 to 192.168.0.130
Note: a response can take up to 32 seconds
Path MTU returned:1500