Hello all. I am not sure if this is under the correct topic or not so please feel free to move if necessary. I was wondering if someone could point me in the direction of being able to use Perl Scripts to manage or Symmetrix arrays. We are currently using ECC 5.2 SP 5 and SE 6.4.3 in our environment for management. We are having some problems with ECC and are looking at a using SE more for day to day management using Perl scripts. We had heard that using Perl is possible. I am extremely new to Perl, but would like to learn if possible especially for the daily management of our arrays. Any help is appreciated. Thanks.
sure you can use perl to create scripts that can be used with solutions enabler. I would say start using SE for tasks that you used to do in ECC and get comfortable with the syntax. As you get more comfortable with SE you can start scripting things in perl to help you with your daily tasks like backing up VCM database, creating symconfigure files ..etc. I am myself in the process of learning perl so i can convert so of my shell scripts to perl for compatibility.
BTW a lot of new features (symrecover, symstar just to name some of them) are big (and complex) perl scripts ... However note that they are compiled, so you can't look at the source (at least I think you can't).
Dynamox, I have been using SE for about 2 years now for various taks, mainly mapping, masking, offsetting, and SRDF creation. I guess my problem is that I am not sure on how to apply Perl to SE. I don't really have any programming experience except for doing some simple batch files in Windows. I guess I am trying to fine a good avenue to learn scripting/programming for someone with zero programming experience. Can you recommend any easy to understand sources for learning scripting? I have gone to Cpan and such, but many of the articles there seem to be over my head. Thanks again.
Perl is very good at generating those symconfigures etc.
I'd also recommend the o'reilly books - if you know some programming the perl cookbook is great as you can steal/borrow the recipes for things you are trying to do.
I'd start small - look at the commands you are using and try and get script to take the hard work. Get perl installed on your PC and away you go.
For instance a simple counthex script to generate a list of devices. Starting at 0f for 100 devices and steps of 4.
$dev=hex 010; # store the decimal number $count=100; $skip=4; for (1..$count) { # convert it to hex and print it out print sprintf("%04X",$dev)."\n"; $dev += $skip; }
It's a small step from there to generate a command file with all the other text bits around it.
Even am trying to manage the Storage arrays ie EMC dmx, symmetrix using perl scripts.. currently we are using solutions enabler SE to manage the storage.. so here i want to use the perl script for the repetitive tasks, mapping, masking, to find the capacity, trending,reporting, for symconfiguration and etc.. i really new to this perl scripting.. and don't have any prior experience on this in fact any kind of programming languages.. Could any one please provide some sample scripts for the above..
dynamox
11 Legend
•
20419 Posts
•
87439 Points
1707
0
Posted April 17th, 2008 16:00