Users Guide

Table Of Contents
5–Fibre Channel Noninteractive Commands
-kr (Read Write Buffer Test)
Doc. No. TD-000947 Rev. 1
Janurary 29, 2021 Page 62 Copyright © 2021 Marvell
See “Running a Read/Write Buffer Test” on page 62 for command line examples
and test results for a read/write buffer test.
Running a Read/Write Buffer Test
The read/write buffer test runs on all devices or on the devices you select on the
adapter you select. This test sends the SCSI Write Buffer command to the target
devices and uses the SCSI Read Buffer command to read the returned data and
do a data comparison.
To run a read/write buffer test using the current parameters, issue the following command
:
qaucli -pr fc -kr <hba instance>|<hba wwpn>
To exclude a device or devices on the selected adapter port, issue the following command
:
qaucli -pr fc -kr <hba instance>|<hba wwpn> [-ex|-exclude
<target wwpn>] [<param name>|<param alias> <param value>]
The following examples run 500 read/write buffer tests with a test increment of 10,
a data pattern of FFh, and a data size of 8 bytes. The test stops if an error occurs.
qaucli -pr fc -kr <hba instance> DP FF DS 8 TC 500 TI 10 OE 1
qaucli -pr fc -kr <hba wwpn> DP FF DS 8 TC 500 TI 10 OE 1
To use the current value of a parameter, omit the parameter from the command
line. For example, the following command sets the data pattern to FFh and uses
the current values for the other parameters:
qaucli -pr fc -kr <hba instance> DP FF
The following example sets the data size to 16 bytes and has the test loop if an
error occurs; the other parameters use the current values:
qaucli -pr fc -kr <hba wwpn> DS 16 OE 2
<param alias> = One of the following parameter aliases:
DP
DS
TC
TI
OE
<param value> = Parameter or alias value (see Table 5-6 on page 64)
NOTE
All devices attached to the adapter must support the SCSI Read/Write Buffer
commands.