Start a Conversation

Unsolved

This post is more than 5 years old

1687

September 26th, 2016 03:00

Command to display Storage group and dev ID in single line

Command to display dev and its storage group in same line

1 Rookie

 • 

20.4K Posts

September 26th, 2016 19:00

use findstr/grep/awk/sed ..

September 29th, 2016 06:00

symaccess -sid 1234 list -devinfo should give you list of devs against masking views if that helps.

15 Posts

October 14th, 2016 14:00

I have a loop that I use to get this info, if I need it. Note, this is ksh, and our naming standard is to end all storage groups with '_SG', so I grep for that. Make sure to replace it with something that fits your standard.

for x in $(cat devs)

do

y=$(symaccess -sid -type storage list dev $x | grep _SG | tr -d '\n')

echo "$x $y"

done

Thanks,

Tanner

No Events found!

Top