pranav_pune
2 Iron

How to list wind card entries in MaskingViews?

Jump to solution

Hello,

I am trying to list down the Masking Views on VMAX. I see a lot of wild card entries, How to list down all the wild card entries?

NBBNRCLD_BL27_V1_8* NBBNRCLD_BL27_V1FA-8E1          NBBNRCLD_BL27_V1_S*
NBBNRCLD_BL27_V2NBBNRCLD_BL27_V28E0             NBBNRCLD_BL27_V2_SG
NBBNRCLD_BL27_V2_8* NBBNRCLD_BL27_V2FA-8E1          NBBNRCLD_BL27_V2_S*
Labels (1)
0 Kudos
1 Solution

Accepted Solutions
SYMCLIGuy
2 Iron

Re: How to list wind card entries in MaskingViews?

Jump to solution

The reason for the * is because each field is limited to a certain number of columns in the output.  This is to help keep the full output width to <= 80 columns.

# symaccess list view

Symmetrix ID          : 00019570XXXX

Masking View Name  Initiator Group    Port Group          Storage Group
------------------- ------------------- ------------------- -------------------
licoj048_mv_test_t* licoj048            licoj048            licoj048

If you add the -v option to the symaccess list view command each view name will be listed out in full. The format of the output will be different, however, so as not to put a column limit on each field.

# symaccess list view -v

Symmetrix ID          : 00019570XXXX

Masking View Name     : licoj048_mv_test_test_test_test
Initiator Group Name  : licoj048
Port Group Name       : licoj048
Storage Group Name    : licoj048

Using the XML output format will also display the full masking view name.

# export SYMCLI_OUTPUT_MODE=XML

# symaccess list view

<?xml version="1.0" standalone="yes" ?>

<SymCLI_ML>

  <Symmetrix>

    <Symm_Info>

      <symid>00019570XXXX</symid>

    </Symm_Info>

    <Masking_View>

      <View_Info>

        <view_name>licoj048_mv_test_test_test_test</view_name>

        <init_grpname>licoj048</init_grpname>

        <port_grpname>licoj048</port_grpname>

        <stor_grpname>licoj048</stor_grpname>

      </View_Info>

    </Masking_View>

  </Symmetrix>

0 Kudos
3 Replies
SYMCLIGuy
2 Iron

Re: How to list wind card entries in MaskingViews?

Jump to solution

The reason for the * is because each field is limited to a certain number of columns in the output.  This is to help keep the full output width to <= 80 columns.

# symaccess list view

Symmetrix ID          : 00019570XXXX

Masking View Name  Initiator Group    Port Group          Storage Group
------------------- ------------------- ------------------- -------------------
licoj048_mv_test_t* licoj048            licoj048            licoj048

If you add the -v option to the symaccess list view command each view name will be listed out in full. The format of the output will be different, however, so as not to put a column limit on each field.

# symaccess list view -v

Symmetrix ID          : 00019570XXXX

Masking View Name     : licoj048_mv_test_test_test_test
Initiator Group Name  : licoj048
Port Group Name       : licoj048
Storage Group Name    : licoj048

Using the XML output format will also display the full masking view name.

# export SYMCLI_OUTPUT_MODE=XML

# symaccess list view

<?xml version="1.0" standalone="yes" ?>

<SymCLI_ML>

  <Symmetrix>

    <Symm_Info>

      <symid>00019570XXXX</symid>

    </Symm_Info>

    <Masking_View>

      <View_Info>

        <view_name>licoj048_mv_test_test_test_test</view_name>

        <init_grpname>licoj048</init_grpname>

        <port_grpname>licoj048</port_grpname>

        <stor_grpname>licoj048</stor_grpname>

      </View_Info>

    </Masking_View>

  </Symmetrix>

0 Kudos

Re: How to list wind card entries in MaskingViews?

Jump to solution

The output is just limited in width like SYMCLIGuy mentioned.

I like using this "symaccess list view -v |grep "View Name" |cut -c 25"   if all you need is a list of names..  or "symaccess list view |grep view_name |sed 's/<[^>]*>//g' "  if you'd like to parse the xml..

0 Kudos
Highlighted
Rasmmacias
2 Iron

Re: How to list wind card entries in MaskingViews?

Jump to solution

1, You have a problem with the size for the masking view:NBBNRCLD_BL27_V1_8* and NBBNRCLD_BL27_V2_8*, also you have the same problem in storage group: NBBNRCLD_BL27_V1_S* and NBBNRCLD_BL27_V2_S*. You can to rename thoses view and SG:

symaccess -sid xxx-type storage -name Host1 rename -new_name Host2

   Rename the Storage Gorup Host1 as Host2

symaccess -sid xxx view -name Host1_Allocation rename -new_name Host2_Allocation

   Rename name of view Host1_Allocation as Host2_Allocation

2. For see al view:

symaccess -sid XXX  list view

   List masking views Created for Array XXX with related groups details

symaccess -sid xxx show view MyView

   Shows the contents of view MyView Created on Array xxx

symaccess -sid xxx -f Total_views.txt list

   Lists all the Group(storage,port,initiator) information from the backup file "Total_views.txt".

symaccess -sid xxx show view MyView -detail

   This command is the best option to see both parent and child initiator groups( cascaded initiator group) and associated devices for a masking view.

symaccess -sid xxx show view Server_A_B_View -ig Server_B_IG

   Displays the content of view 'Server_A_B_View' with the WWN details of child-Initiator group 'Server_B_IG'.

0 Kudos