SVCTools Setup
SVCTools Setup
SVCTools Setup
Setup Steps:
1. Download the free perl script package from
http://www.activestate.com/Products/activeperl/
2. Install the perl script package on SVC Master Console
3. Download the SVCTools package from
http://www.alphaworks.ibm.com/tech/svctools/download
4. Unzip/Extract the SVCTools.zip file (for example extract to C:\SVCTools)
5. Create a IBM directory in C:\perl\lib
6. Copy the C:\SVCTools\lib\IBM\SVC.pm file to the C:\perl\lib\IBM directory
7. To temporarily add the C:\Program Files\PuTTY path to the windows PATH
environment variable. This can be accomplished by entering in “PATH=C:\Program
Files\PuTTY;%PATH%” at a command prompt which will be used for the script. To
permanently add the PuTTY path see Appendix A.
If the user needs to update files from more recent SVCTools package, the SVC.pm file
needs to be updated with the same name and location with the more current file. The
individual scripts can run as they are named.
At this point, the SVC Master Console can run the example scripts or user created scripts
that utilize the SVC.pm perl module.
The user can change to the directory where the scripts are and run them locally.
For example … get the online help for the balance.pl script in a command prompt:
C:\SVCTools\examples\balance>perl balance.pl -h
balance.pl Usage:
balance.pl MDiskGrp [-t VDisk,VDisk,...] [-m MDisk,MDisk,...]
[-n number] [-e] [-f] [-r [delay]] -c cluster | -i ip
[-k keyfile] [-u username] [-s application] [-v] [-z [retry delay]] [-h]
balance.pl MDiskGrp
[-t|--target VDisk01,Vdisk02,...]
[-m|--media MDisk01,MDisk02,...]
[-n|--number migrate_limit]
[-e|--execute]
[-f|--force]
[-r|--recursive [delay]]
[-c|--cluster hostname | -i|--ip address]
[-k|--key file]
[-s|--ssh application]
[-u|--username name]
[-v|--verbose]
[-z|--zRetryDelay [retry delay]]
[-h|--help]
Invoke this script with the name of the MDiskGrp you wish to
rebalance. Additional options can be specified to alter behaviour:
-e, --execute If this flag is set the script will execute the migrate
commands instead of just printing them to screen.
-r, --recursive Repeated passes are made by the script until an optimal
solution is reached. The script will wait for migrates
to finish and then run more. Optionally specify the.
delay between checks, applicable with -e.
-k, --key Specify the key file for use in making SSH connections.
-s, --ssh Specify the application used for making SSH connections.
-u, --username Specify the username for use in making SSH connections.
-v, --verbose If this flag is set the script will provide more detail
and depth in the output.
For more information, please consult the perldoc for this script.
Appendix A – How to permanently add the C:\Program Files\PuTTY path to the system
Click on the Variable value field and move to the beginning of the field.
Add “C:\Program Files\PuTTY;” before the first entry and click OK.
Click OK
Click OK.