Call us now: 888 540-2010, 416 833-3501 10am – 6pm ET
Atola Disk Recycler
Multi-port wiper and tester for professional use
All Script Commands
Command | Description | Example |
---|---|---|
Ata | Execute a custom ATA command on the device. | // Perform STANDBY IMMEDIATE command |
AtaIn | Execute a custom ATA command and transfer data from the hard drive. | // Perform IDENTIFY DEVICE command. |
AtaOut | Execute a custom ATA command and transfer data to the hard drive. | bytes = new byte[512] |
BadDisk | Stops script execution with Failed status. | if (LastResult.Error) |
Capacity | Reads capacity of the device in bytes. | Capacity |
Checksum | Performs checksum calculation of the entire media or specified range. | Checksum MD5 1000 2000000 |
Compare | Compare sectors with the specified pattern. | Compare AA55 0 1000000 |
Contains | Indicates whether the soughtString occurs within this text. | res = SmartTable |
Date | Outputs current date and time into the report log. | Date "yyyy-MM-dd HH:mm:ss" |
DoD7Erase | Performs DoD 5220.22-M 7-pass wiping of the entire media or the interval defined by startLBA and endLBA parameters. | DoD7Erase 1000 2000 |
DoDErase | Performs DoD 5220.22-M 3-pass wiping of the entire media or for the interval defined by startLBA and endLBA parameters. | DoDErase FF00DD AA on |
Dump | Dumps a raw byte array as HEX codes. | ReadDCO |
GoodDisk | Stops script execution with Success status. | if (LastResult.OK) |
Identify | Runs IDENTIFY DEVICE command for ATA device. | Identify |
LastLBA | Reads the number of the last LBA of the device. | lastLbaRes = LastLBA |
LBAErase | Wipes all the device space or for the interval defined by startLBA and endLBA parameters writing LBA numbers in the beginning of every sector. | // Wipes first 200 sectors |
Lock | Executes SECURITY SET PASSWORD command with given parameters. | Lock SecurePassword123 false true |
Locked | Reads ID sector to verify if the deviced is locked by password. | res = Locked |
Model | Reads model of the hard drive. | m = Model |
NISTErase | Performs NIST 800-88 wiping of the entire media or the interval defined by startLBA and endLBA parameters. It includes linear overwrite + full verification of written data according to the requirements of the 'National Institute of Standards and Technology: Draft NIST Special Publication 800-88 Revision 1' document. | NISTErase 1000 2000 |
PatternErase | Performs wiping with specified pattern of the entire media or the interval defined by startLBA and endLBA parameters. | // Wipes sectors 0-200 with HEX pattern 55AA |
PowerCycle | Powers off and then powers on the hard drive. | Identify |
PowerOff | Powers off the hard drive. | PowerOff |
PowerOn | Powers on the hard drive. | PowerOff |
Print the value of a variable to the report with a custom prefix. | LastLba |
|
RandomNumber | Generates a random integer value bounded by parameter maxValue. | RandomNumber 1000 |
ReadDCO | Reads Raw Device Overlay Configuration sector of the device. | ReadDCO |
ReadMaxAddressDCO | Reads maximum LBA from Device Configuration Overlay. | ReadMaxAddressDCO |
ReadNativeMaxAddress | Reads native maximum LBA. | ReadNativeMaxAddress |
ReadSectors | Reads raw sector data from a range of sectors. Max allowed range is 1024 sectors. | ReadSectors 10 1000 |
Repair | Performs media recovery. Software bad sectors will be recovered; hardware bad sectors will be reallocated (remapped), provided that the hard drive has spare sectors left on the media. | // Remap all bad sectors in the LBA region 0 - 2 000 000 |
Report | Creates custom report based on the specified template file. Parameters are passed to the template like this: {1} - first parameter, {2} - second parameter and so on. | myVar1 = Model |
Reset | Performs hard disk reset. | Reset |
RestoreDCO | Restores factory Device Overlay Configuration (DCO). | hpaAddress = ReadNativeMaxAddress |
Revision | Reads firmware revision of the hard drive. | r = Revision |
Sas | Execute a custom SCSI command on SAS device | cdb = new byte[6] |
SasGList | Reads SCSI device GList and checks if result exceeds limit. |
|
SasIn | Execute a custom data-in SCSI command and transfer data from SAS device. | // Issue READ (10) SCSI command for LBA 1 |
SasOut | Execute a custom SCSI command and transfer data to SAS device. | // Issue WRITE (10) SCSI command for LBA 1 |
SasPList | Reads SCSI device primary defect list (P-List). |
|
SasReassign | Executes REASSIGN BLOCKS command on given LBA creating defective logical block. |
|
Scan | Performs media scan of the entire media, or of the specified region. | // Scan the entire media - no parameters are needed: |
SecurityErase | Performs long-lasting Security Erase command that wipes the entire media. | SecurityErase SecurePassword123 |
SecurityEraseSupported | Reads ID sector to verify if Security Erase command is supported by the device. | res = SecurityEraseSupported |
SecurityStatus | Reads ID sector to verify if the device is locked and which level it is locked with. | res = SecurityStatus |
Seek | Performs seek test making 1-sector reads. | // Perform random seek test within the first 600K sectors; |
Serial | Reads the serial number of the hard drive. | s = Serial |
SetCustomField | Sets a value to current custom field. Can be successfully used only from custom field Script Code accessed via Settings->Data. | LastLba |
SetExtendedResult | Define Extended result. This is useful when you need to deviate from standard Success/Failed result and want to add a specific comment about the hard drive, for example, to define its Grade. Extended result will be saved into the database and shown on the report. It also allows to specify an alternative port color via default 6-symbol hex code with leading sharp symbol. Example: #95E5F5. | Scan |
SetMaxAddress | Limits the hard drive's capacity to the specified Maximum LBA (Set Max Address) | // Caps disk size to 10000 sectors (5 Mbytes) by means of HPA |
SetReadTimeout | Sets timeout value used during any disk reading operation. Default read timeout is 20 seconds. | // Set timeout equal to 2 seconds |
SetWriteTimeout | Sets timeout value used during any disk writing operation. Default write timeout is 20 seconds. | // Set timeout equal to 3 seconds |
Sleep | Pause the script for specified number of seconds. | Sleep 10 |
SmartAttributeRaw | Reads raw SMART value by attribute ID. | res = SmartAttributeRaw 1 |
SmartAttributeThreshold | Reads threshold SMART value by attribute ID. | res = SmartAttributeThreshold 1 |
SmartAttributeValue | Reads normalized SMART value by attribute ID. | res = SmartAttributeValue 1 |
SmartAttributeWorst | Reads worst SMART value by attribute ID. | res = SmartAttributeWorst 1 |
SmartErrors | Returns SMART error log page as text. | res = SmartErrors |
SmartLog | Shows SMART log page information depending on specified logType parameter. | SmartLog selftest |
SmartStatus | Reads hard drive's SMART status. | SmartStatus |
SmartTable | Reads the entire SMART attribute table. | res = SmartTable |
SmartTest | Performs a SMART test. | res = SmartTest short |
SpinDown | Spins down the hard drive bringing it into standby mode. | SpinDown |
SpinUp | Spins up the hard drive from the standby mode. | SpinDown |
SwitchAutoBadDisk | Toggles automatic script termination on or off. | SwitchAutoBadDisk true |
SwitchAutolog | Toggles automatic logging on or off. | SwitchAutolog true |
SwitchReadCache | Toggles hard drive's read cache on or off. | res = SwitchWriteCache false |
SwitchSmart | Toggles SMART on or off. | res = SwitchSmart false |
SwitchWriteCache | Toggles hard drive's write cache on or off. | res = SwitchWriteCache true |
TextSearch | Returns @LastResult.Text if searched substring is matched in @text or @LastResult.Number if number is parsed in the matched substring. Returns @LastResult.Error if no substring is matched. | res = SmartTable |
Time | Returns the time in milliseconds since the moment the current script has started. | t = Time |
TransferRate | Performs transfer rate test executing read operations. The benchmark is performed for the inner, middle and outer tracks. For more precise results allow 30-60 seconds for testing. 20 seconds is considered sufficient for most applications. | // Measure read transfer rate for 20 seconds |
UnclipHpaDco | Removes max address restrictions from Host Protected Area (HPA) and Device Overlay Configuration (DCO). | UnclipHpaDco |
Unlock | Permanently unlocks device with given parameters. | Unlock SecurePassword123 false true |
VerifySectors | Verifies a sector range. Max allowed range is 1024 sectors. To verify the entire hard drive, use Scan command instead. | VerifySectors 0 1000 |
WaitReadyTime | Returns the time in milliseconds spent waiting for the hard drive to become ready after power on. | res = WaitReadyTime |
WriteDCO | Write Raw Device Configuration Overlay (DCO). | dco = ReadDCO |
WriteRandom | Writes random data to interval defined by startLBA and endLBA parameters. | WriteRandom 0 1000 |
WriteSectors | Fills a specified sector range with the predefined data (pattern). Max allowed range is 1024 sectors. To fill/wipe entire drive, use PatternErase command instead. | data = new byte[512] |
WriteTest | Performs write test making 1-sector writes. | // Perform random write test within the first 600K sectors; |
WriteTransferRate | Performs transfer rate test executing write operations. The benchmark is performed for the inner, middle and outer tracks. For more precise results allow 30-60 seconds for testing. 20 seconds is considered sufficient for most applications. Binary zeroes by default or specified pattern are used for writing. | // Measure write transfer rate for 40 seconds |