Start a Conversation

Unsolved

This post is more than 5 years old

677

February 22nd, 2013 08:00

Command to find out the hypers involved in a meta

Hi Guys,

Is there a command that display just the hypers involved in the formation of the meta. Symdev show dev command has the details , but is there any thing that display JUST the hypers of a meta dev ?

Thanks in Advance !

467 Posts

February 22nd, 2013 08:00

symdev -sid 1234 show 0B6D -output xml |grep dev_name

It's not pretty...   but you are just using symdev output in xml and showing only the devices which make it up...  You could clean it with this:

symdev -sid 1234 show 0B6D -output xml |grep dev_name |sed 's/<[^>]*>//g' | sed 's/ //g'

That will parge out hte xml tags and the spaces to give you a nice clean list...

February 22nd, 2013 09:00

Im not sure whether Im using it correctly

This is what I have got

# symdev -sid 4582 show 1426 -output xml |grep dev_name |sed 's/<[^>]*>//g' | sed 's/ //g'

1426

1426

1427

1426

0D33

But it should have been

1426

1427

467 Posts

February 22nd, 2013 10:00

You can get rid of the duplicates by adding a |uniq to the end...  i'm not sure about 0D33... iF you provide the outout from symdev -sid 4582 show 1426 -output xml i'll take a look

February 22nd, 2013 11:00

# symdev -sid 4582 show 1426 -output xml

 

   

      000192604582

   

   

     

        Not Visible

        1426

        RDF1+TDEV

        dr_d3_e2

        DEV051

        0

        N/A

        FBA

        Ready

        Ready

        FALSE

        Normal

        0x0001

        DEFAULT_PARTITION

        ACTIVE

        None

        FC_Pool_R5

     

     

        N/A

        N/A

     

     

        EMC

        SYMMETRIX

        5876

        N/A

        000192604582

        60000970000192604582533031343236

     

     

        N/A

        N/A

     

     

        False

        False

        False

        False

        RDF1_OR_RDF2_Capable

        False

        None

        N/A

        False

        False

        False

        False

        Enabled

        False

        False

        False

        False

        False

        Head

     

     

        512

        38496

        577440

        73912320

        36090

        36956160

     

     

       

         

            05E

            FibreChannel

            N/A

            3

            Ready

            0

            0

            1e6

            N/A

         

         

            07E

            FibreChannel

            N/A

            3

            Ready

            0

            0

            1e6

            N/A

         

         

            10E

            FibreChannel

            N/A

            3

            Ready

            0

            0

            1e6

            N/A

         

         

            12E

            FibreChannel

            N/A

            3

            Ready

            0

            0

            1e6

            N/A

         

       

       

          Native

          128

          15

          38496

          73912320

          36090

          36956160

       

     

     

       

          Not Visible

          05E

          FibreChannel

          N/A

          1

          Ready

          0

          0

          1e6

          N/A

       

       

          Not Visible

          07E

          FibreChannel

          N/A

          1

          Ready

          0

          0

          1e6

          N/A

       

       

          Not Visible

          10E

          FibreChannel

          N/A

          1

          Ready

          0

          0

          1e6

          N/A

       

       

          Not Visible

          12E

          FibreChannel

          N/A

          1

          Ready

          0

          0

          1e6

          N/A

       

     

     

        Striped

        960k

        36090

        2

       

          1426

          18045

         

            N/A

            N/A

            N/A

         

         

            Consistent

            0

            0

         

       

       

          1427

          18045

         

            N/A

            N/A

            N/A

         

         

            Consistent

            0

            0

         

       

       

          36090

       

       

          N/A

          N/A

       

       

          0

          0

       

     

     

       

          1

          Thin

          Ready

          0

       

       

          2

          R2 Remote

          Ready

          0

       

       

          3

          N/A

          N/A

          0

       

       

          4

          N/A

          N/A

          0

       

     

     

       

          Thin

          Ready

          N/A

          1

         

            N/A

            N/A

            N/A

            N/A

         

       

       

          R2 Remote

          Ready

          N/A

          2

         

            N/A

            N/A

            N/A

            N/A

         

       

     

     

       

          Consistent

          Enabled

          N/A

          Enabled

          Disabled

          Disabled

          Disabled

          0

          0

          False

          False

          False

          False

          False

          Disabled

          Normal

       

       

          Asynchronous

          Disabled

          N/A

          65535

          Disabled

          False

       

       

          Fibre

          Disabled

          Enabled

       

       

          Ready

          Ready

          Ready

          Ready

          Fri Nov 30 15:46:05 2012

       

       

          1426

          R1

          66

          Ready

       

       

          0D33

          000192604105

          60000970000192604105533030443333

          Write Disabled

       

       

         

            65

            64228

            121

            Active

            No

            No

            Enabled

            0

            00:00:15

            00:00:15

            33

            896

            00:00:22

            Fri Feb 22 13:59:10 2013

            True

            00:00:15

            33

            0

            0

            00:00:00

            0

            0

            0

         

       

     

   

 

#

467 Posts

February 22nd, 2013 17:00

Oh,  that's the R2...  What we need is a symcli command to list the R2.. then we can pipe that to grep -v and ignore it..  This is what comes to mind..

symdev -sid 4582 show 1426 -output xml |grep dev_name |sed 's/<[^>]*>//g' | sed 's/ //g' | grep -v `symrdf -sid 4582 list dev |grep -i 1426 |cut -c 6-9` |sort -u

It's a bit convulated.. but it works.. you could make a quich shell script or an alias to do it with only a few arguments passed like sid and lun id..

February 27th, 2013 06:00

How about this one

symdev -sid $sid show $i -output xml|sed -n "/ /,/<\/Meta_Device>/p" |grep dev_name |sed 's/<[^>]*>//g'

No Events found!

Top