Highlighted

Command to display Storage group and dev ID in single line

Command to display dev and its storage group in same line

Labels (1)
Tags (1)
3 Replies
dynamox
6 Thallium

Re: Command to display Storage group and dev ID in single line

use findstr/grep/awk/sed ..

0 Kudos
ash7861
1 Copper

Re: Command to display Storage group and dev ID in single line

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

0 Kudos
TannerR
1 Copper

Re: Command to display Storage group and dev ID in single line

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 <YOUR_ID> -type storage list dev $x | grep _SG | tr -d '\n')

echo "$x $y"

done

Thanks,

Tanner

0 Kudos