Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

4139

January 21st, 2015 06:00

How to know CG, Replication Set details of particular LUN in RP

Hi All,

I would like to know CG, Replication Set details of particular LUN in RP using CLI.

We have many CGs in RP, I would like to know, in which CG, Group and RP set a particular LUN is.

For example, we have a LUN 22 whose LUN WWN ID is 60,06,01,60,2D,F0,2D,00,B8,67,1D,62,8B,1F,E1,11

I would like to know, which CG, Group and RP set it belongs from CLI.

I was not able to find the details from RP CLI guide.

Experts...please help

1.1K Posts

January 21st, 2015 08:00

Hi there,

There is no specific command to show this. The best approach would be to redirect output to a text file for either the get_group_volumes or save_settings CLI command and then search for the LUN.

Regards,

Rich

2 Intern

 • 

715 Posts

January 21st, 2015 15:00

Hi, You can use a combination of Powershell and RPCLI to get this by manipulating the get_group_volumes output (as Rich says).

For example if you are searching for a LUN with WWN ID 60,06,01,60,41,b1,2c,00,04,bc,8e,1b,4c,df,e0,11

./plink.exe -ssh PRODRP -P 22 -l admin -pw PASS get_group_volumes > c:\emcfiles\ggv.txt ;gc c:\emcfiles\ggv.txt |select-string -Pattern '60,06,01,60,41,b1,2c,00,04,bc,

8e,1b,4c,df,e0,11' -Context 6,7

edit: above should be a single line command, forum sw is splitting it :/

Result;

22-01-2015 10-32-05 AM.jpg

So this will connect to your cluster using plink, execute the get_group_volumes and output to a txt file, use Powershell 'Get-Content' to open it, then pipe it through the Powershell 'Select-string' command and return the lines around the found pattern ( like grep -C -A operators).  The -Context switch returns the lines above and below the pattern found. (in this case 6 above & 8 below) So you can change as necessary.

You could filter/manipulate further.

Just change: PRODRP to your cluster name, PASS to your admin password. The -Pattern string is the WWN ID to search for. You can obviously change the output location of the txt files too.

I use this approach often, to get init states and other contextual data.

Hope this helps.

2 Intern

 • 

715 Posts

January 21st, 2015 15:00

No Events found!

Top