none
How to test WRITE command with scsicompliance.exe? RRS feed

  • Question

  • Hi, guys

        I have ran the scsicompliance.exe successfully for the CDBs of READ direction like this:

    ./scsicompliance.exe /Device \\.\PHYSICALDRIVE1 /Operation Test /Scenario Common /CDB Read10 /Verbosity 4

    ……

    ===============================================================================
    Command                     Total       Pass    Warn    Fail
    READ (10)                       4          4       0       0
    SUMMARY                         4          4       0       0
    ===============================================================================
    Summary: Total=4, Passed=4, Failed=0, Blocked=0, Warned=0, Skipped=0

        But, if I test the Write CDB, there's no SCSI command sent  to the disk:

    PS C:\work\scsi> Get-WmiObject Win32_DiskDrive


    Partitions : 2
    DeviceID   : \\.\PHYSICALDRIVE0
    Model      : VMware, VMware Virtual S SCSI Disk Device
    Size       : 536864025600
    Caption    : VMware, VMware Virtual S SCSI Disk Device

    Partitions : 0
    DeviceID   : \\.\PHYSICALDRIVE1
    Model      : VMware, VMware Virtual S SCSI Disk Device
    Size       : 429491220480
    Caption    : VMware, VMware Virtual S SCSI Disk Device

    Partitions : 0
    DeviceID   : \\.\PHYSICALDRIVE2
    Model      : MY iSCSI LUN Device SCSI Disk Device
    Size       : 109951158965760
    Caption    : MY iSCSI LUN Device SCSI Disk Device

    PS C:\work\scsi> ./scsicompliance.exe /Device \\.\PHYSICALDRIVE2 /Operation Test /Scenario Common /CDB Write10 /Verbosity 4 Device string in use: $LocalPub:QSize=0($LogFile:file=scsicompliance.wtl,writemode=overwrite,CRC=true;$PlainLog:file=scsicompliance.txt,writemode=overwrite;$Console) WTTLogger_CPP_rs1_release_inmarket; Version: 2.7.3483.0 Machine: Build=9200.00 Platform=x86 OS=Windows Server 2012 R2 Standard Evaluation ServicePack="" Version=6.3 BuildLab="winblue_gdr" BuildDate=140221-1952 Language=English (US) (REDMOND) Config=n/a Starting SCSICompliance test 2.0.20100428 Operation Test Scenario Common Running Scenario... Attempting to validate if test device is safe. Test device has signature 0x0. DevicePath \\.\C Unable to locate system disk(s) Sending SCSI command to device. Read Capacity 10 Command: 25 00 00 00 00 00 00 00 00 00 DeviceIoControl SUCCEEDED. SCSI status: 0x00 (GOOD) Sense bytes: 0x00 Data bytes: 0x8 00 04 08 0C --------------------------------------------------------------- 000 09FFFFFF 00000200 00000000 00000000 ................ == DONE ============================================================== max lba from rc10 = 0x9ffffff sector size from rc10 = 512 bytes =============================================================================== Command Total Pass Warn Fail SUMMARY 0 0 0 0 =============================================================================== Summary: Total=0, Passed=0, Failed=0, Blocked=0, Warned=0, Skipped=0

        How can I test the Write CDB with scsicompliance.exe? Thanks!

    Monday, May 13, 2019 6:32 AM