14 sendfcpcmndseq (), Fcpc – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 30

Advertising
background image

Verification Script Engine Reference Manual

25

10.14 SendFCPCmndSeq ()

This function specifies more precise tuning for FCP-SCSI CMND sequences.


Format :

SendFCPCmndSeq( opcode = _ANY,

field_name = “” ,

field_value = 0,

seq_info = null )


Parameters:

opcode – This parameter specifies that only FCP CMND sequences containing SCSI CDB with
this opcode will be sent. ( The value_ANY means any FCP CMND sequences )

field_name – This parameter specifies that only FCP CMND sequences having a field with
field_name ( how it is shown in CATC trace) and value equal to field_value will

be sent.
( This field is valid only if the parameter ‘opcode’ is not equal to _ANY )



field_value – This parameter specifies that only FCP CMND sequences having a field with
field_name( how it is shown in CATC trace) and value equal to field_value will be
sent.
( This field is valid only if parameter ‘opcode’ is not equal to _ANY and parameter
‘field_name’ is not empty )

NOTE: For fields having size more than 32 bits use raw binary values
(like : ‘0011223344556677FF’) For more information about raw binary values please refer to
CATC CSL Manual.

seq_info – This list parameter specifies some sequence attributes.
See SendFCPSeq() function for details.



Example:

# - send any FCP CMND sequence.

SendFCPCmndSeq( );

# - send FCP CMND sequence where the field ‘Opcode’ has value 0x28 (READ(10))
# and the field ‘Logical Block Addr’ has value 0x00020249.

SendFCPCmndSeq( 0x28, “Logical Block Addr”, 0x00020249 );

const READ_10 = 0x28;


seq_info = [ 0x700100, 0x683456, 0x022D];

SendFCPCmndSeq ( READ_10, “Logical Block Addr”, 0x00020249, seq_info );




Advertising