Bash ExampleScripts

HelloWorld.sh

A basic example framework for a user script

Pass/Fail Criteria:

HelloWorld will always PASS

PM_L1.1_Enable.sh

PM_L1_Enable.sh

Test a device for ability to reach L1 state. Will leave the device in L1 state. When starting, will attempt to put the drive in L0 state before continuing.

Pass/Fail Criteria:

Pass if device enters L1 state and remains in L1 state upon exit

PM_L1.1_Verify.sh

HelloWorld_IO.sh

An example framework for a user script using SANBlaze Built-In IO tests

Pass/Fail Criteria:

HelloWorld_IO will fail if any of the underlying IO tests fail

PM_L1.2_Verify.sh

SBExpress_DataVerify_SDB_PowerFail.sh

Starts a SANBlaze Write Test with verify and stop on path loss to the device. When the drive comes back, verify all writes. Uses passtimer to set the time to do writes before cuttint power.

Pass/Fail Criteria:

SBExpress_DataVerify_SDB_PowerFail will fail if the device does not come online after the power failure, or if data corruption is detected.

PM_L0_Enable.sh

Disable all power substates on a device and test that it has reached L0.

Pass/Fail Criteria:

Pass if device enters L0 state and remains in L0 state upon exit

PM_L1.2_Enable.sh

HelloWorld_IO_WaitForWriteEntireDisk.sh

An example framework for a user script using SANBlaze Built-In IO tests

Pass/Fail Criteria:

HelloWorld_IO will fail if any of the underlying IO tests fail

PM_CLKREQ_L_Toggle.sh

Recover from L1 substates by toggling CLKREQ_L. Initial sec/pass value from web page is used to add delay in seconds between each state transition. Leave 0 for no delay.

Pass/Fail Criteria:

Pass if device enters L0 state