Symmetrix
Posts
Unsolved
This post is more than 5 years old
3 Posts
1
1710
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
Responses(3)
No Events found!
Unsolved
This post is more than 5 years old
3 Posts
1
1710
Command to display dev and its storage group in same line
Top
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
September 26th, 2016 19:00
use findstr/grep/awk/sed ..
ashishhagarwal
2 Posts
0
September 29th, 2016 06:00
symaccess -sid 1234 list -devinfo should give you list of devs against masking views if that helps.
TannerR
15 Posts
0
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