Appendix B. Example Script Files - IBM System Storage DS3000 Programming Manual

Hide thumbs Also See for System Storage DS3000:
Table of Contents

Advertisement

Appendix B. Example script files

This appendix provides example scripts for configuring a storage subsystem. These examples show how
the script commands appear in a complete script file. Also, you can copy these scripts and modify them
to create a configuration unique to your storage subsystem.
You can create a script file in two ways:
v Using the save storageArray configuration command
v Writing a script
By using the save storageArray configuration command, you can create a file that you can use to copy
an existing configuration from one storage subsystem to other storage subsystems. You can also use this
file to restore an existing configuration that has become corrupted. You also can copy an existing file to
serve as a pattern from which you create a new script file by modifying portions of the original file. The
default file extension is .scr.
You can create a new script file by using a text editor, such as Microsoft Notepad. The maximum line
length is 256 characters. The command syntax must conform to the guidelines in the Chapter 1, "About
the Command Line Interface," on page 1-1 topic, and the Chapter 2, "About the Script Commands," on
page 2-1 topic. When you create a new script file, you can use any file name and extension that will run
on the host operating system
This example shows how to run a script file from the command line.
c:\...\smX\client>smcli 123.45.67.88 123.45.67.89
-f scriptfile.scr;
Configuration script example 1
This example creates a new volume by using the create volume command in the free space of a Array.
Show "Create RAID 5 Volume 7 on existing Array 1";
//Create volume on Array created by the create
volume drives command
//Note: For Arrays that use all available
capacity, the last volume on the group is created using
all remaining capacity by omitting the capacity=volume
creation parameter
create volume volumeGroup=1 RAIDLevel=5 userLabel="7"
owner=A segmentSize=16 cacheReadPrefetch=TRUE capacity=2GB;
show "Setting additional attributes for volume 7";
//Configuration settings that cannot be set during volume
creation
set volume["7"] cacheFlushModifier=10;
set volume["7"] cacheWithoutBatteryEnabled=false;
set volume["7"] mirrorEnabled=true;
set volume["7"] readCacheEnabled=true;
set volume["7"] writeCacheEnabled=true;
set volume["7"] mediaScanEnabled=false;
set volume["7"] redundancyCheckEnabled=false;
set volume["7"] modificationPriority=high;
This example shows blank lines between the lines beginning with Show, Create,//Note, and create. The
blank lines are included in this example only for clarity. Each command is actually written on one line in
the script file; however, the size of this page has caused the command text to wrap. You might want to
B-1
© Copyright IBM Corp. 2008, 2012

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the System Storage DS3000 and is the answer not in the manual?

This manual is also suitable for:

System storage ds4000System storage ds5000

Table of Contents

Save PDF