UNSOLVED

g_varma_rudhrar

updated

10 years ago

1

1831

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

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    927

    0

    Posted September 26th, 2016 19:00

    use findstr/grep/awk/sed ..

  • 927

    0

    Posted 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

    927

    0

    Posted 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