Alterable scripting tool and method6311320Abstract A scripting tool for executing a script command having at least one parameter includes a display device, a processor, and a memory. The memory has stored therein instructions which when executed by the processor cause the processor to generate a user input control for a parameter of the script command based upon a definition file, and display the user input control upon the display device. The instructions of the memory when executed by the processor further cause the processor to receive user input via the user input control, and generate a parameter value based upon the user input. Moreover, the instructions when executed by the processor cause the processor to set the parameter of the script command equal to the parameter value, and execute the script command based upon the parameter. Claims What is claimed is: Description BACKGROUND OF THE INVENTION
Parameter Values Description
host_id 0-99 Host SCSI ID.
target_id 0-99 Target SCSI ID.
lun 0-31 Target Logical Unit Number.
width 8, 16, or 32 Data width in bits. Currently
not implemented.
period 0-999 Transfer period (ns).
Currently not implemented.
offset 0-999 REQ/ACK offset range.
Currently not implemented.
xfer_mode sync or async Transfer mode synchronous or
asynchronous. Currently not
implemented.
messages on or off Allow messages if on.
Disconnect on or off Allow disconnect if on.
port 0-99 Port number for SCSI hardware.
Currently not implemented.
block_size 512 Block size fixed at 512.
time_out 0-16383 Default time-out in seconds.
max_xfer_len_blk* 0-1792 Maximum data transfer length in
blocks. See note below.
comment 0-30 ASCII
characters
*The maximum value of 1792 (0 .times. 700) is valid for the Symbios Logic
8751 host adapter. For other host adapters this value must be
predetermined by the application user. This value can be determined either
by trial and error or maybe this value is defined the owner's manual for
the host adapter.
Reset Reset the system's SCSI bus. Note: This command will only work on a Windows NT.TM. host with the Symbios Logic 8751 host adapter and the special device driver developed specifically for use with the STARCOM application.
Parameter Values Description
Comment 0-30 ASCII
characters
A.3 Error Handling Recovery Specifies the action to be taken when an unexpected error occurs.
Parameter Values Description
action continue Continue with the next command.
file Terminate the test and run the test file
specified in the file field.
halt Halt execution on error.
file 1-50 character Run this test file on error if
string action is set to file.
comment 0-30 ASCII
characters
A.4 SCSI Commands The following commands are used to create and execute various SCSI Command Descriptor Blocks (CDB). FORMAT_UNIT The FORMAT UNIT command (op-code=0.times.04) formats the medium into initiator addressable logical blocks per the initiator defined options. In addition, the medium may be certified and control structures may be created for the management of the medium and defects.
Parameter Values Description
fast_format yes or no SYMBIOS vendor specific field.
format_data yes or no If yes there will be a DATA OUT
phase.
complete_list yes or no Indicates whether the defect list
is complete.
defect_list 0-7 Defect List Format.
interleave 0-65535 An interleave of zero specifies that
the target uses its default interleave.
An interleave of one specifies that
consecutive logical blocks be placed
in contiguous ascending order. All
other values are vendor specific.
data_size 0-16383 Length of data transfer
scsi_status 0-99 Expected completion status
(default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
comment 0-30 ASCII
characters
INQUIRY The INQUIRY command (op-code=0.times.12) requests that information regarding parameters of the target and its attached peripheral devices be sent to the initiator.
Parameter Values Description
page_code 0-255 Specifies which page of vital product
data information the target shall
return.
evpd off or on Enable vital product data bit. If
on specifies that the target shall
return the optional vital product data
specified by the page code field. If
off specifies that the target shall
return the standard INQUIRY data.
allocation_length 0-255 Length of data transfer.
data_direction compare Data transfer is compare data in
with I/O data buffer.
in Data transfer is in.
mask Data compare with mask (see
MASK_READ). Mask is currently
not implemented.
scsi_status 0-99 Expected completion status
(default = 0)
allocation_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
miscompare_type = or <= The first field determines if the
following value is equal to or less
than or equal to the number
of miscompares allowed.
miscompares 0-99 Number of data miscompares allowed
before an error is reported
(default = 0).
unexp_disconnect allow or no An error will be reported if this is
set to no and an unexpected
disconnect occurs.
parity_error allow or no A parity error will be reported if this
is set to no and one occurs.
comment 0-30 ASCII
characters
MODE_SELECT The MODE SELECT command (op-code=0.times.15) provides a means for the initiator to specify medium, logical unit, or peripheral device parameters to the target.
Parameter Values Description
page_format yes or no No indicates SCSI-1 parameters. Yes
indicates that the MODE SELECT
parameters are structured as pages.
save_parameters yes or no Yes indicates that pages shall be
saved by the target.
parm_list_length 0-16383 The length in bytes of the mode
parameter list that will be transferred
to the target.
scsi_status 0-99 Expected completion status
(default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
comment 0-30 ASCII
characters
MODE_SELECT_EXT The MODE_SELECT_EXT command (op-code=0.times.55) provides a means for the initiator to specify medium, logical unit, or peripheral device parameters to the target.
Parameter Values Description
page_format yes or no No indicates SCSI-1 parameters. Yes
indicates that the MODE SELECT
parameters are structured as pages.
save_parameters yes or no Yes indicates that pages shall be
saved by the target.
parm_list_length 0-16383 The length in bytes of the mode
parameter list that will be transferred
to the target.
scsi_status 0-99 Expected completion status
(default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
comment 0-30 ASCII
characters
MODE_SENSE The MODE SENSE command (op-code=0.times.1A) provides a means for a target to report parameters to the initiator.
Parameter Values Description
page_code 0-255 Specifies mode page to return. A
value of 3F indicates that all
mode pages implemented by
the target shall be returned.
disable_block_des yes or no No indicates that the target may
return zero or more block
descriptors. Yes indicates that the
target shall not return any block
descriptors.
page_control changeable Mask of changeable parameters
returned.
current Current mode parameters returned.
default Default mode parameters returned.
saved Saved mode parameters returned.
allocation_length 0-65535 Length of data transfer.
data_direction compare Data transfer is compare data
in with buffer.
in Data transfer is in.
mask Data compare with mask (see
MASK_READ). Mask is currently
not implemented.
scsi_status 0-99 Expected completion status
(default = 0)
allocation_exact yes or no An error will be reported if this is
set to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
miscompare_type = or <= The first field determines if the
following value is equal to or less
than or equal to the number
of miscompares allowed.
miscompares 0-99 Number of data miscompares
allowed before an error is reported
(default = 0).
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
parity_error allow or no A parity error will be reported if
this is set to no and one occurs.
comment 0-30 ASCII
characters
MODE_SENSE_EXT The MODE_SENSE_EXT command (op-code=0.times.5A) provides a means for a target to report parameters to the initiator.
Parameter Values Description
page_code 0-255 Specifes mode page to return. A
value of 3F indicates that all mode
pages implemented by the target shall
be returned.
disable_block_des yes or no No indicates that the target may
return zero or more block descriptors.
Yes indicates that the target shall
not return any block descriptors.
page_control changeable Mask of changeable parameters
returned.
current Current mode parameters returned.
default Default mode parameters returned.
saved Saved mode parameters returned.
allocation_length 1-65535 Length of data transfer.
data_direction compare Data transfer is compare data in
with buffer.
in Data transfer is in.
mask Data compare with mask (see
MASK_READ).
Mask is currently not implemented.
scsi_status 0-99 Expected completion status
(default = 0)
allocation_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
miscompare_type = or <= The first field determines if the
following value is equal to or less
than or equal to the number of
miscompares allowed.
miscompares 0-99 Number of data miscompares
allowed before an error is
reported (default = 0).
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
parity_error allow or no A parity error will be reported if this
is set to no and one occurs.
comment 0-30 ASCII
characters
PASS_THROUGH This command issues the Set Pass Through Mode (op-code=0.times.14). It will cause the next SCSI command to be passed directly to a disk attached to an array controller. The channel and device will default to the command line values unless they are set. If the target is a drive instead of an array then this command will be skipped instead of issued.
Parameter Values Description
channel 0-15 SDAC channel (default set on command
line or in the system configuration)
device 0-15 SDAC device (default set on command
line or in the system configuration)
direction in Data transfer on next command is in.
none No data transfer on next command
(default).
out Data transfer on next command is out.
allocation_length 0-16383 Length of data transfer of next
command. (default = 0)
comment 0-30 ASCII
characters
READ The READ command (op-code=0.times.08) requests that the target transfer data to the initiator. The most recent data value written in the addressed logical block shall be returned.
Parameter Values Description
address 0-65535 Logical block address to read from.
transfer_length 0-255 Length of data transfer in blocks (if
this is set to a larger size than the
I/O data buffer then a wrap to the
beginning of the buffer will occur
when the end is reached).
data_direction compare Data transfer is compare data in with
buffer.
in Data transfer is in.
mask Data compare with mask (see
MASK_READ). Mask is currently
not implemented.
scsi_status 0-99 Expected completion status
(default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes and actual bytes transferred
does not match the data size field
value. Currently not implemented.
miscompare_type = or <= The first field determines if the
following value is equal to or less
than or equal to the number of
miscompares allowed.
miscompares 0-99 Number of data miscompares allowed
before an error is reported
(default = 0).
unexp_disconnect allow or no An error will be reported if this is set
to no and an unexpected disconnect
occurs.
parity_error allow or no A parity error will be reported if this
is set to no and one occurs.
comment 0-30 ASCII
characters
READ_CAPACITY The READ CAPACITY command (op-code=0.times.25) provides a means for the initiator to request information regarding the capacity of the logical unit.
Parameter Values Description
scsi_status 0-99 Expected completion status (default = 0)
allocation_exact yes or no An error will be reported if this is set to
yes
and actual bytes transferred does not match
the data size field value. Currently not
implemented.
miscompare_type = or <= The first field determines if the following
value
is equal to or less than or equal to the
number
of miscompares allowed.
miscompares 0-99 Number of data miscompares allowed before
an error is reported (default = 0).
unexp_disconnect allow or no An error will be reported if this is set to
no and
an unexpected disconnect occurs.
parity_error allow or no A parity error will be reported if this is
set to no
and one occurs.
comment 0-30 ASCII
characters
READ_EXT The READ_EXT command (op-code=0.times.28) requests that the target transfer data to the initiator. The most recent data value written in the addressed logical block shall be returned. Larger logical block addresses and transfer lengths are allowed than the READ command.
Parameter Values Description
address 0-4294967295 Logical block address to read from.
transfer_length 0-1792 Length of data transfer in blocks (if this
is set
to a larger size than the I/O data buffer
then a
wrap to the beginning of the buffer will
occur
when the end is reached).
data_direction compare Data transfer is compare data in with
buffer.
in Data transfer is in.
mask Data compare with mask (see MASK_READ).
Mask is currently not implemented.
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set to
yes
and actual bytes transferred does not match
the data size field value. Currently not
implemented.
miscompare_type = or <= The first field determines if the following
value
is equal to or less than or equal to the
number
of miscompares allowed.
miscompares 0-99 Number of data miscompares allowed before
an error is reported (default = 0).
unexp_disconnect allow or no An error will be reported if this is set to
no and
an unexpected disconnect occurs.
parity_error allow or no A parity error will be reported if this is
set to no
and one occurs.
dpo on The target shall assign the logical blocks
accessed by this command the lowest
priority
for being fetched into or retained by the
cache.
off The priority shall be determined by the
retention priority fields in the cache
page.
fua on The target shall access the specified
logical
blocks from the media.
off The target may satisfy the command by
accessing the cache memory.
comment 0-30 ASCII
characters
READ_LONG The READ_LONG command (op-code=0.times.3E) requests that the target transfer data to the initiator. The data passed during the READ_LONG command is implementation specific, but shall include data bytes and the ECC bytes recorded on the medium. The most recent data written in the addressed logical block shall be returned. This command and the WRITE_LONG are provided to check the ECC capability of the device. Currently, this command is not supported by the Series 3 firmware on our disk array controllers. If you would like to issue this command to a SCSI-2 drive then use it in conjunction with the PASS_THROUGH command.
Parameter Values Description
address 0-2147483547 Logical block address to read from.
transfer_length 0-32767 Length of data transfer in blocks (if this
is set
to a larger size than the I/O data buffer
then a
wrap to the beginning of the buffer will
occur
when the end is reached).
data_direction compare Data transfer is compare data in with
buffer.
in Data transfer is in.
mask Data compare with mask (see MASK_READ).
Mask is currently not implemented.
corrct on Causes the data to be corrected by ECC
before being transferred to the initiator.
off Causes a logical block to be read without
any
correction made by the target.
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set to
yes
and actual bytes transferred does not match
the data size field value. Currently not
implemented.
miscompare_type = or <= The first field determines if the following
value
is equal to or less than or equal to the
number
of miscompares allowed.
miscompares 0-99 Number of data miscompares allowed before
an error is reported (default = 0).
unexp_disconnect allow or no An error will be reported if this is set to
no and
an unexpected disconnect occurs.
parity_error allow or no A parity error will be reported if this is
set to no
and one occurs.
comment 0-30 ASCII
characters
REQUEST_SENSE The REQUEST SENSE command (op-code=0.times.03) requests that the target transfer sense data to the initiator.
Parameter Values Description
allocation_length 0-255 Length of data transfer.
aenp on or off Asynchronous Event Notification Polling.
data_direction compare Data transfer is compare data in with
buffer.
in Data transfer is in.
mask Data compare with mask (see MASK_READ).
Mask is currently not implemented.
scsi_status 0-99 Expected completion status (default = 0)
allocation_exact yes or no An error will be reported if this is set to
yes
and actual bytes transferred does not match
the data size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set to
no and
an unexpected disconnect occurs.
miscompare_type = or <= The first field determines if the following
value
is equal to or less than or equal to the
number
of miscompares allowed.
miscompares 0-99 Number of data miscompares allowed before
an error is reported (default = 0).
parity_error allow or no A parity error will be reported if this is
set to no
and one occurs.
comment 0-30 ASCII
characters
SEND_CDB General purpose command to create and execute any SCSI CDB.
Parameter Values Description
name 0-30 ASCII Specify a name for the CDB (optional)
characters
cdb 0-12 hex bytes CDB where 2 characters specify each hex
byte
cdb_size 6, 10, or 12 CDB length in bytes (default = 6)
data_size 1-2147483647 Length of data transfer (if this is set to
a larger
size than the I/O data buffer then a wrap
to the
beginning of the buffer will occur when the
end
is reached).
data_type bytes or blocks Second data size field defines the
previous
number as in bytes or blocks.
data_direction compare Data transfer is compare data in with I/O
data
buffer.
in Data transfer is in.
mask Data compare with mask (see MASK_READ).
Mask is currently not implemented.
none No data transfer (default).
out Data transfer is out.
timeout 0-10000 Maximum time (seconds) to wait for SCSI
response
scsi_status 0-255 Expected completion status (default = 0 =
good)
data_size_exact yes or no An error will be reported if this is set to
yes
and actual bytes transferred does not match
the data_size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set to
no and
an unexpected disconnect occurs.
miscompare_type = or <= The first field determines if the following
value
is equal to or less than or equal to the
number
of miscompares allowed.
miscompares 0-10 Number of data miscompares allowed before
an error is reported (default = 0).
parity_error allow or no A parity error will be reported if this is
set to no
and one occurs.
comment 0-30 ASCII
characters
TEST_UNIT_READY The TEST UNIT READY command (op-code=0.times.00) provides a means to check if the logical unit is ready.
Parameter Values Description
scsi_status 0-99 Expected completion status
(default = 0)
unexp_disconnect allow or no An error will be reported if this
is set to no and an unexpected
disconnect occurs.
comment 0-30 ASCII
characters
VERIFY The VERIFY command (op-code=0.times.2F) requests that the target verify the data written on the medium.
Parameter Values Description
block_address 0-65535 Logical block address to verify.
parity_check yes or no Perform vendor unique parity check.
verification_len 0-255 The number of contiguous logical
blocks of data that shall be
verified.
scsi_status 0-99 Expected completion status
(default = 0)
unexp_disconnect allow or no An error will be reported if this is
set to no and an unexpected
disconnect occurs.
comment 0-30 ASCII
characters
WRITE The WRITE command (op-code=0.times.0A) requests that the target write the data transferred by the initiator to the medium.
Parameter Values Description
address 0-65535 Logical block address to write to.
transfer_length 0-255 The number of contiguous logical blocks of
data to transfer. (If this is set to a
larger size
than the I/O data buffer then a wrap to
the
beginning of the buffer will occur when
the end
is reached).
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes
and actual bytes transferred does not
match
the data size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and
an unexpected disconnect occurs.
comment 0-30 ASCII
characters
WRITE_EXT The WRITE_EXT command (op-code=0.times.2A) requests that the target write the data transferred by the initiator to the medium. Larger logical block addresses and transfer lengths are allowed than the WRITE command (6-byte).
Parameter Values Description
address 0-4294967295 Logical block address to write to.
transfer_length 0-1792 The number of contiguous logical blocks of
data to transfer. (If this is set to a
larger size
than the I/O data buffer then a wrap to
the
beginning of the buffer will occur when
the end
is reached).
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes
and actual bytes transferred does not
match
the data size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and
an unexpected disconnect occurs.
dpo on The target shall assign the logical blocks
accessed by this command the lowest
priority
for being fetched into or retained by the
cache.
This overrides any retention priority
specified
in the cache page.
off The priority shall be determined by the
retention priority fields in the cache
page.
fua on The target shall access the specified
logical
blocks from the media.
off The target may satisfy the command by
accessing the cache memory.
comment 0-30 ASCII
characters
WRITE_LONG The WRITE_LONG command (opcode=0.times.3F) requests that the target write the data transferred by the initiator to the medium. The data passed during the WRITE_LONG command is implementation specific, but shall include the data bytes and the ECC bytes. Currently, this command is not supported by the Series 3 firmware on our disk array controllers. If you would like to issue this command to a SCSI-2 drive then use it in conjunction with the PASS_THROUGH command.
Parameter Values Description
address 0-65535 Logical block address to write to.
transfer_length 0-255 The number of contiguous logical blocks of
data to transfer. (If this is set to a
larger size
than the I/O data buffer then a wrap to
the
beginning of the buffer will occur when
the end
is reached).
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes
and actual bytes transferred does not
match
the data size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and
an unexpected disconnect occurs.
comment 0-30 ASCII
characters
WRITE_VERIFY The WRITE AND VERIFY command (op-code=0.times.2E)requests that the target write the data transferred from the initiator to the medium and then verify that the data is correctly written. The data is only transferred once from the initiator to the target.
Parameter Values Description
block_address 0-65535 Logical block address to write to and
verify.
parity_check yes or no Perform vendor unique parity check.
transfer_length 0-1792 The number of contiguous logical blocks of
data that shall be transferred and
verified. (If
this is set to a larger size than the I/O
data
buffer then a wrap to the beginning of the
buffer will occur when the end is reached)
scsi_status 0-99 Expected completion status (default = 0)
data_size_exact yes or no An error will be reported if this is set
to yes
and actual bytes transferred does not
match
the data size field value. Currently not
implemented.
unexp_disconnect allow or no An error will be reported if this is set
to no and
an unexpected disconnect occurs.
comment 0-30 ASCII
characters
A.5 Fill I/O Data Buffer The following commands will fill the I/O data buffer with the specified data. All commands use the same I/O data buffer. FILL_PATTERN Fill buffer with a specified pattern.
pattern Parameter Values
offset 0-16383 Byte offset in data buffer to start fill at (default
is to start at offset 0 .fwdarw. leave field blank or
set
to 0)
data_size 1-262144 Number of bytes to fill (default is fill to end of
buffer .fwdarw. leave field blank or set to 0)
comment 0-30 ASCII
characters
FILL_RANDOM Fill data buffer with a random pattern.
Parameter Values Description
seed 0-16383 Seed used by random number generator
(default = 0)
offset 0-16383 Byte offset in data buffer to start fill at (default
is to start at offset 0 .fwdarw. leave field blank or
set
to 0)
data_size 1-262144 Number of bytes to fill (default is fill to end of
buffer .fwdarw. leave field blank or set to 0)
comment 0-30 ASCII
characters
FILL_SEQUENTIAL Fill buffer with a sequential pattern.
Parameter Values Description
sign + or - Specifies whether the increment value will be
a positive (increment) or negative
(decrement)
value.
increment 0-16383 Value to add to each successive entry
(default
= 1)
span 0-4 Number of bytes that fill value will span
(default = 1)
start 0-262144 Value to start fill with (default = 0)
offset 0-16383 Byte offset in data buffer to start fill at
(default
is to start at offset 0 .fwdarw. leave field
blank or set
to 0)
data_size 0-2147483647 Number of bytes to fill (default is fill to
end of
buffer .fwdarw. leave field blank or set to
0)
comment 0-30 ASCII
characters
4.2.6 File I/O Read or write a file. The file size is determined from the operating system for READ_FILE, however, it will be truncated if it is larger than the I/O data buffer. FILE_READ Read a file into the I/O data buffer.
file 1-30 ASCII File name with optional path (required)
characters
comment 0-30 ASCII
characters
FILE_WRITE Write data from the I/O data buffer to a file.
file 1-30 ASCII File name with optional path (required)
characters
file_size 1-65535 File size in bytes (required)
comment 0-30 ASCII
characters
A.7 Sdac Micro-Code and Drive Firmware Download Micro-code may be downloaded to a disk array using this command. It is implemented internally using the WRITE BUFFER command. DRIVE_FIRMWARE This command can be used to download drive firmware.
Parameter Values Description
file 1-30 ASCII Name of the firmware file. A path may be
characters included. (required)
type dac or drive Select "dac" if the firmware will be
downloaded
through a disk array. Select "drive" if the
firmware will be downloaded without the use
of a disk array. In other words, if your host
adapter is attached to a disk array then use
"dac".
channel 0-15 If type field is "dac" then this is the
channel the
drive is located on within the disk array.
Not
used if type field is "drive".
device 0-15 If type field is "dac" then this is the SCSI
ID of
the drive on the channel specified by the
channel field. Not used if type field is
"drive".
spin_up yes or no Currently not implemented.
delay 0-32767 The number of milliseconds to wait after
downloading the drive firmware. This
command will delay for this amount of time
before returning from execution.
comment 0-30 ASCII
characters
MICRO_DOWNLOAD This command can be used to download application code, bootware, and NVSRAM files over the SCSI bus to the disk array by using the Write Buffer command (op-code=0.times.3B). Note: Using the SCSI bus to download these files is much quicker than using the serial communications bus.
Parameter Values Description
file 1-30 ASCII Name of the file containing the data to be
characters downloaded. A path may be included.
(required)
save yes Sets the download Mode for the Write Buffer
command to a value of 101b ("Download
Microcode and Save Mode").
no Sets the download Mode for the Write Buffer
command to a value of 100b ("Download
Microcode").
comment 0-30 ASCII
characters
A.8 Time Delay DELAY Delay executes a wait period during which STARCOM is dormant. This command may be aborted while it is executing by pressing the <Esc> key. Currently, the <Esc> key will only work when the test is running in automated mode (am). If the DELAY command was executed using the Execute and Step method (<S> key) or the single Execute method (<X> key) then you cannot use the <Esc> key to abort the command.
Parameter Values Description
seconds 1-2147483647 Time to stop activity (required)
comment 0-30 ASCII
characters
A.9 ECHO ECHO ECHO will display/log a user defined message.
Parameter Values Description
verbose_level 0-3 Display message only if the verbose level
is this level or higher (default = 0)
message 1-70 ASCII Message to be displayed/logged
characters
comment 0-30 ASCII
characters
A.10 TEST CONTROL BRANCH Test execution of commands will jump to a specified LABEL command if this tests true. Comparison test is executed on bytes in the I/O data buffer. This command is very similar to the JUMP_BUF command.
Parameter Values Description
label 1-8 ASCII Branch to this LABEL (see LABEL
characters command)
operand 0-2147483647 The value which will be operated on with the
bytes in the buffer.
operation < Operation to be performed
<=
=
>
>=
AND
OR
offset 0-16383 Number of bytes into buffer.
length 1-4 Number of bytes in buffer.
comment 0-30 ASCII
characters
CALL Open another instance of the STARCOM application and run the commands specified in the indicated test file. The calling instance will not execute the next command in its test file until the called instance has completed execution and the STARCOM application has exited. Also, see the SPAWN command.
Parameter Values Description
file 1-30 characters Test file name with optional path (required)
test 0-50 ASCII This line will print with the word PASS or
characters FAIL in the log depending upon whether any
unexpected errors are reported. Currently not
implemented.
$0 0-33 characters Pass this value to the called test's
variable $0.
. . .
. . .
$f 0-33 characters Pass this value to the called test's
variable $F.
comment 0-30 ASCII
characters
HALT Stop execution of commands.
Parameter Values Description
comment 0-30 ASCII
characters
JUMP Test execution of commands will jump to the specified LABEL command.
Parameter Values Description
label 1-8 ASCII Branch to this LABEL (see LABEL command)
characters
comment 0-30 ASCII
characters
JUMP_BUF Test execution of commands will jump to a specified LABEL command if this tests true. Comparison test is executed on bytes in the I/O data buffer.
Parameter Values Description
label 1-8 ASCII Branch to this LABEL (see LABEL command)
characters
offset 0-262144 Offset in the I/O data buffer that
comparison
will begin at.
length 0-80 Beginning with the offset, the total number
of
bytes in the buffer that will be compared
with
the operand.
operation < Operation to be performed
<=
=
>
>=
AND
OR
operand 2-40 hex characters Up to 40 hex characters that will be
compared
with the buffer. The length of this pattern
must match the length specified. Also, there
must be an even number of characters in the
pattern.
comment 0-30 ASCII
characters
JUMP_NUM Test execution of commands will jump to a specified LABEL for a specified number of iterations.
Parameter Values Description
label 1-8 ASCII Branch to this LABEL (see LABEL command)
characters
iterations 0-8192 Number of iterations to jump.
current 0-8192 Current iteration number. Normally this will
not be changed by the user.
comment 0-30 ASCII
characters
JUMP_STS Test execution of commands will jump to a specified LABEL based on the last SCSI status.
Parameter Values Description
label 1-8 ASCII Branch to this LABEL (see LABEL command)
characters
operation < Operation to be performed
<=
=
>
>=
AND
OR
status 0-99 SCSI status. This value will be compared to
the last SCSI status received.
Comment 0-30 ASCII
characters
JUMP_VAR Test execution of commands will jump to a specified LABEL command if this tests true. Comparison test is executed on one of the 16 variables ($0-$1) available.
Parameter Values Description
label 1-8 characters Branch to this LABEL (see LABEL command)
variable $0 through $F One of the available variables.
type binary or integer The type of variable.
offset 0-4096 Number of bytes into variable (binary only).
length 0-4096 Number of bytes in variable (binary only).
operation < Operation to be performed
<=
=
>
>=
AND
OR
operand 2-30 hex characters Up to 30 hex characters that will be
compared
with the variable. The length of this
pattern
must match the length specified. Also, there
must be an even number of characters in the
pattern.
comment 0-30 ASCII
characters
LABEL Used as destination for BRANCH command and all of the JUMP commands.
Parameter Values Description
label 1-8 ASCII Label name.
characters
comment 0-30 ASCII
characters
MESSAGE_BOX Halt the execution of the test file and display a pop-up message box on the screen. The message box will display the message specified and will have a single OK button. The execution of the test file will restart after the OK button has been clicked. This command is useful for running manual tests and prompting the test operator to perform a task.
Parameter Values Description
message1 0-33 ASCII First line of text.
characters
message2 0-33 ASCII Second line of text.
characters
message3 0-33 ASCII Third line of text.
characters
SPAWN Open another instance of the STARCOM application and run the commands specified in the indicated test file. This command is similar to the CALL command. The difference is that the calling instance of STARCOM will not wait for the spawned instance of STARCOM to complete before the calling instance continues executing the next command in its test file. Also, see the CALL command.
Parameter Values Description
file 1-30 characters Test file name with optional path (required)
test 0-50 ASCII This line will print with the word PASS
characters or FAIL in the log depending upon whether
any unexpected errors are reported.
Currently not implemented.
$0 0-33 characters Pass this value to the called test's
variable $0.
. . .
. . .
$f 0-33 characters Pass this value to the called test's
variable $F.
comment 0-30 ASCII
characters
System Perform DOS prompt commands. Currently, the only DOS commands supported are copy, del, and rename.
Parameter Values Description
command 0-40 ASCII The DOS command and command line
characters parameters to be executed. For example,
copy starcom.hsc test.hsc.
pause yes or no If yes then a message box will be displayed on
the monitor stating that the execution of the
command has completed (or terminated).
The SYSTEM command will not return from
execution until the OK button of the message
box has been clicked. This is a way to pause
the execution of your test file. If you want to
use the pause option then you may want to
see the MESSAGE_BOX command.
overlay yes or no Currently not implemented.
comment 0-30 ASCII
characters
TESTING_OFF Skip the commands following this command until the TESTING_ON is encountered in the test file.
Parameter Values Description
comment 0-30 ASCII
characters
TESTING_ON Resume command execution if a previous TESTING_OFF command was encountered, otherwise, do nothing.
Parameter Values Description
comment 0-30 ASCII
characters
A.11 LOG CONTROL COMMANDS CONFIG_LOG_IT This command will insert the current system configuration parameters into the log. The values that will be put into the log are: Port ID, Host ID, Target ID, LUN, Width, Period, Offset, Transfer Mode, Messages, Disconnect, Block Size, and Time-out.
Parameter Values Description
comment 0-30 ASCII
characters
LOG_DEFAULTS This command will set the following fields to default values. In subsequent LOG_SET commands any field where a `*` character appears the default value will be used for logging test PASS and FAIL lines.
Parameter Values Description
raid_level 0, 1, 3, 5 Current raid level of SDAC.
mode degraded Current mode of SDAC.
formatting
optimum
reconstruction
configuration 0-4096 ASCII Any of the defined configuration
identifiers for
characters the SDAC.
test_name 0-12 ASCII The name of the test file with its
extension.
characters
test_number 0-999 The number of test cases within this test
category.
result_line_format 1992_standard or Changes logging format.
1995_standard
test_group DEST or HOST Used with 1995_standard.
LOG_SET This command will set the following fields to be used in logging any subsequent test PASS and FAIL lines.
Parameter Values Description
raid_level 0, 1, 3, 5 Current raid level of SDAC.
mode degraded Current mode of SDAC.
formatting
optimum
reconstruction
configuration 0-4096 char | ||||||
