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
© Copyright IBM Corp. 2008, 2012
B-1
Содержание System Storage DS3000
Страница 10: ...x IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 12: ...xii IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 46: ...2 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 382: ...3 336 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 476: ...7 16 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 504: ...9 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 512: ...10 8 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 530: ...11 18 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 590: ...12 60 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 594: ...13 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 596: ...14 2 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 598: ...A 2 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 599: ...Appendix A Examples of information returned by the show commands A 3...
Страница 600: ...A 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 601: ...Appendix A Examples of information returned by the show commands A 5...
Страница 602: ...A 6 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 603: ...Appendix A Examples of information returned by the show commands A 7...
Страница 604: ...A 8 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 605: ...Appendix A Examples of information returned by the show commands A 9...
Страница 606: ...A 10 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 607: ...Appendix A Examples of information returned by the show commands A 11...
Страница 608: ...A 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 609: ...Appendix A Examples of information returned by the show commands A 13...
Страница 610: ...A 14 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 611: ...Appendix A Examples of information returned by the show commands A 15...
Страница 623: ...Appendix A Examples of information returned by the show commands A 27...
Страница 624: ...A 28 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 625: ...Appendix A Examples of information returned by the show commands A 29...
Страница 626: ...A 30 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 627: ...Appendix A Examples of information returned by the show commands A 31...
Страница 628: ...A 32 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 632: ...B 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 648: ...F 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 651: ......
Страница 652: ...Part Number 00W1466 Printed in USA GA32 0961 05 1P P N 00W1466...