This post is more than 5 years old
25 Posts
0
4260
August 16th, 2012 16:00
VMAX initiators and storage summary
I have to build a report with the hosts accessing the Vmax and the devices they are connected to(if they are still within a masking view) and their tiering. Using list view I get a report on the groups and the masking views in the Vmax. But I do not have a command that gives me all the initiator groups and the wwns. There is the show command but that gives me only for one initiator group. Does anyone have any ideas on how I can go about this.
My requirements are
Host --- devices ---- tiering
I have the tiering of the devices. But these hosts must belong to a masking view though.
Thanks in advance.
No Events found!


mdani1
56 Posts
2
August 16th, 2012 20:00
As per my understanding of your question I am dividing answer in two parts
A)Yes symcli has not given option to get direct output for listing the initiator groups with wwpn in them at one go so I use below to find in my environment
1) to see the list of initiator groups and wwpns :-
for i in `symaccess -sid 30 list -type init | grep IG` ; do echo "##################### $i ";symaccess -sid 30 show $i -type init ; done
( note : above comand is good if you have naming convention of IG_hostname or IG in the name and in case not then use the below )
for i in `symaccess -sid 30 list -type init` ; do echo "##################### $i ";symaccess -sid 30 show $i -type init ; done ==> first few will be dummy output and you can modify it by using cut or grep accordingly
B) For getting the details of host -> devs -> tier we can use the below small script as we dont have single comand
for i in `symaccess -sid 30 show MV_host view | awk '{print $1}' | grep -v ':' | grep -i [0-9]`; do echo $i################################; symdev -sid 30 show $i | grep -i bound ; done
Note: give the view name of your host and SID as per your env then you can get host- dev - pool output .
Let me know if this helps and solves your purpose. If you get one comand without using scripts post to us also.
ravi_paladugu
16 Posts
0
August 17th, 2012 05:00
Mrinal, thats a simple and easy way to interpret the data we want. This will be very helpful to many. I use my custom made scripts to get this kind of information. Thanks!
mdani1
56 Posts
0
August 17th, 2012 06:00
Thanks ravi. Yes best part working on symcli over SMC and new unisphere is small custome made scripts make work easier and faster. Hope this helped Naveen too.
Regards,
Mrinal Dani
Naveen_T
25 Posts
0
August 17th, 2012 10:00
Mrinal,Thank you very much for the help. These scripts, what do you use to run them, VB? Sorry I am a little new to scripting. I ve started using perl for some scripting.
Naveen_T
25 Posts
0
August 17th, 2012 10:00
I do not have any linux box I can run this from.
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
August 17th, 2012 10:00
these are bash command
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
2
August 17th, 2012 10:00
can you load Cygwin ?
Naveen_T
25 Posts
0
August 17th, 2012 13:00
Thanks Dynamox. Installed Cygwin and ran the commands.
@Mrinal : for the second set of commands I have to enter each masking view everytime right? Is there a way I can put in all the masking views that I have to give me their devices and tiering info using bash commands.
I used the "list view -v -detail command to give me an output with the masking view, its groups et al. And then I used a VB script to extract this data as an excel sheet that gives me these outputs.
But I am working on getting the tiering on the devices.
mdani1
56 Posts
1
August 17th, 2012 15:00
You can try nested for loop or some switch statement for that which will make view name as variable and run the similar for loop multiple times. Its possible . Easier and quicker as your working on the excel too put the output of
symaccess -sid 30 list view -v | grep Masking | awk '{print $5}'
in one coloum and make similar comands for all masking view by using very simple formula it will be easier for you then writing nested for loop and run those comand and get your output.