beautypg.com

Running the dmatest, Using script files, Creating script files – Dell Emulex Family of Adapters User Manual

Page 507

background image

Offline and Online Adapter Management Utilities Version 10.2 User Manual

P010071-01A Rev. A

4. Offline Adapter Management Utility Command Line Interface

Using Script Files

507

To run the PCI loopback test, type (all on one line)

oslpcfg pciloopback n= r=

o=

The following example runs the PCI loopback test 100 times on all adapters in the

system and stops the testing if any errors occurs.

oslpcfg pciloopback n= r=100 o=1

Running the DMATest

This command runs the DMA test, which is a direct memory access test of the memory

on the adapter. You can run the test on a specific adapter in the system and specify the

number of times you want the test to repeat.

Notes:

DMATest does not support testing all installed adapters using n=all.

Do not use the DMA test on Emulex blade adapters.

To run the DMA test, type (all on one line)

oslpcfg dmatest

The following example runs the DMA test two times on adapter #1:

oslpcfg dmatest n=1 p=abcde c=1500 r=2

Using Script Files

Creating Script Files

You can group commands together and run them using a script file. You can also enter

comment lines, which begin with a semicolon. Each line follows the same command

syntax as those documented in this manual. Using the offline utility, you can

Run commands entered in a script file. Use the @ command to run the script file.

Run commands multiple times. Add the repeat command as the last line of the

script file.

Create a log of test results. Add the logfile command as the first line of the script

file.

To run a script file type:

oslpcfg @

The following example runs the script “script1.txt” that resides in the current directory

and executes all the commands in that script file.

oslpcfg @script1.txt

Note: To interrupt and stop any script, press on the keyboard.