Unsolved
This post is more than 5 years old
7 Posts
0
4435
May 30th, 2016 07:00
Get Volume details with their respective CG names
Hi,
I need to capture some sort of data that which volume belongs to which Consistency Group in RPA. I know we can go into each CG=>Replication Set and extract the data into CSV file but that will be one CSV for each CG.
Is there a way to get the list of all volumes of the RPA with their respective CGs under one file?
RPA: Gen5
RPA Code: 4.1.2.1 and 4.1.2.3 and 4.1.1.1
TX
BK
No Events found!
m_makadmeh
43 Posts
0
May 30th, 2016 22:00
Hi,
You can open putty, ssh to any RPA/Cluster IP and login as admin.
get_group_volumes
get_san_volumes
get_volume_states
you can filter and save the output in a file accordingly.
Good Luck
forshr
2 Intern
•
1.1K Posts
1
May 31st, 2016 00:00
Hi BK,
Use the plink utility to output the data as follows:
c:\>plink -ssh xx.xx.xx.xx (Site/Cluster Mgmt IP address) -l admin -pw password save_settings –xml > save_settings.xml
Regards,
Rich Forshaw
Consultant Corporate Systems Engineer - RecoverPoint & VPLEX (EMEA)
Data Protection and Availability Solutions
EMC Europe Limited
Mobile: +44 (0) 7730 781169
E-mail: richard.forshaw@emc.com
Twitter: @rw4shaw
EMC Europe Limited
Registered in England with Company No. 00990752 Registered office address: Level 1, Exchange House, Primrose Street, London C2A 2EG
The information contained in this e-mail message and any files transmitted with it are confidential. It is intended only for the addressee and others authorised to receive it. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are advised that you have received the e-mail in error; please delete it and notify the sender immediately. You should not retain the message or disclose its contents to anyone. Any disclosure, copying, distribution or action taken in reliance on the contents of the e-mail and its attachments is strictly prohibited.
B_Kamboj
7 Posts
0
May 31st, 2016 04:00
Hi Rich,
Above command is to save the output which I can also do it from Putty. I am looking for some command to get the volume and its associated CG names in one single output for all RPA cluster 2000+ volumes.
B_Kamboj
7 Posts
0
May 31st, 2016 04:00
Thanks Mohammad but these commands output in such a way which is difficult to filter or put in some organized way. We have approx 2000+ volumes and its difficult to work with these outputs.
Do you know any other way to get these details?
forshr
2 Intern
•
1.1K Posts
1
May 31st, 2016 05:00
What I advised is far better. Don’t use putty. Using the save_settings CLI command with plink does export the whole of the RP config but you can import it into Excel and then delete the info rows you don’t need. There is a section in the config that is specific to the CGs.
Rich Forshaw
Consultant Corporate Systems Engineer - RecoverPoint & VPLEX (EMEA)
Data Protection and Availability Solutions
EMC Europe Limited
Mobile: +44 (0) 7730 781169
E-mail: richard.forshaw@emc.com
Twitter: @rw4shaw
EMC Europe Limited
Registered in England with Company No. 00990752 Registered office address: Level 1, Exchange House, Primrose Street, London C2A 2EG
The information contained in this e-mail message and any files transmitted with it are confidential. It is intended only for the addressee and others authorised to receive it. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are advised that you have received the e-mail in error; please delete it and notify the sender immediately. You should not retain the message or disclose its contents to anyone. Any disclosure, copying, distribution or action taken in reliance on the contents of the e-mail and its attachments is strictly prohibited.
B_Kamboj
7 Posts
0
May 31st, 2016 06:00
Just did and got the output but surprising to me is that there are no volume names in that file. It represents them with UID and UID#.
forshr
2 Intern
•
1.1K Posts
1
May 31st, 2016 08:00
So if the LUN name is needed then you have to defer to the get_group_volumes or get_san_volumes CLI commands. The LUN name was removed from the save_settings command at 4.0 if my memory serves me correctly, which I admit is annoying.
Regards,
Rich Forshaw
Consultant Corporate Systems Engineer - RecoverPoint & VPLEX (EMEA)
Data Protection and Availability Solutions
EMC Europe Limited
Mobile: +44 (0) 7730 781169
E-mail: richard.forshaw@emc.com
Twitter: @rw4shaw
EMC Europe Limited
Registered in England with Company No. 00990752 Registered office address: Level 1, Exchange House, Primrose Street, London C2A 2EG
The information contained in this e-mail message and any files transmitted with it are confidential. It is intended only for the addressee and others authorised to receive it. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are advised that you have received the e-mail in error; please delete it and notify the sender immediately. You should not retain the message or disclose its contents to anyone. Any disclosure, copying, distribution or action taken in reliance on the contents of the e-mail and its attachments is strictly prohibited.
m_makadmeh
43 Posts
1
May 31st, 2016 08:00
Hello!
After you save the output in a file, upload it on UNIX machine and use grep ... awk ... to filter the output.
I will try to get it done and share the script with you when I go to the office tomorrow.
B_Kamboj
7 Posts
0
May 31st, 2016 09:00
Yea, it is achievable by combining and applying vlookup from multiple files but I was looking for some simple output like in VPLEX if you do "ll" on virtual volumes then you get very organized output and same can be exported to excel easily.
I will wait if someone has some magic way of doing it
, otherwise extracting Rset output from GUI is much easier for me, though I have to browse through all 90+ groups 
Idan
675 Posts
1
May 31st, 2016 13:00
I agree with Rich, get_group_volumes is the best bet here since it can run on all CGs, across clusters with the -n parameter while get_san_volumes is a cluster-wide command.
I would recommend to parse the output of "get_group_volumes -n -xml", you can wrap it in a script which will write to a CSV file with the appropriate volume type (replication or journal) as well as the appropriate volume details - such as device ID (vendor specific), array ID, size etc.
If you need something fast, you can grep the output XML file in the following manner:
# ssh admin@10.0.0.1 "get_group_volumes -n -xml" > group_volumes_xml.txt
# cat group_volumes_xml.txt | grep -e "GroupVolumesOutput key=" -e "
Hope that helps,
Idan Kentor
RecoverPoint Corporate Systems Engineering
m_makadmeh
43 Posts
0
June 15th, 2016 01:00
The below could be helpful (I used RedHat Linux OS to get the required information):
Login to any redhat server and execute the following:
#################################################################################################
ssh admin@10.0.0.1 "get_san_volumes cluster=Main_RP_Cluster" > get_san_volumes_Main.txt
ssh admin@10.0.0.1 "get_san_volumes cluster=DR_RP_Cluster" > get_san_volumes_DR.txt
###### you will be prompted for the RPA admin password ##################################################
grep -B2 RSet get_san_volumes_Main.txt | grep "Replication info" | awk '{print $3}' | sed 's/.$//; s/^.//' | sort | uniq > ListOfCGs.txt
for i in {0..1000}; do grep -B2 RSet get_san_volumes_Main.txt | grep -B2 RSet$i >> CGs_RSets_Main.txt; done
for i in {0..1000}; do grep -B2 RSet get_san_volumes_DR.txt | grep -B2 RSet$i >> CGs_RSets_DR.txt; done
for i in `cat ListOfCGs.txt`; do grep -B2 $i CGs_RSets_Main.txt >> CGs_RSets_Main_sorted1.txt; done
for i in `cat ListOfCGs.txt`; do grep -B2 $i CGs_RSets_DR.txt >> CGs_RSets_DR_sorted1.txt; done
tac CGs_RSets_Main_sorted1.txt > CGs_RSets_Main_sorted2.txt
tac CGs_RSets_DR_sorted1.txt > CGs_RSets_DR_sorted2.txt
#To List ALL CGs RSets in one file:
cat CGs_RSets_Main_sorted2.txt ##### copy & paste it to one column in excel
cat CGs_RSets_DR_sorted2.txt ##### copy & paste it to the next column in the same excel sheet
################################ (Optionally) List RSets Per CG:
for i in `cat ListOfCGs.txt`; do grep -A2 $i CGs_RSets_Main_sorted2.txt >> "$i"_RSets_Main.txt; done
for i in `cat ListOfCGs.txt`; do grep -A2 $i CGs_RSets_DR_sorted2.txt >> "$i"_RSets_DR.txt; done