Need help with awk and sed scripting

I need help with sed and awk scripts to search for Symmetrix ID=000090009902 and then grep its child disk devices associated to the dead paths and display them only, so that those dead devices can be removed.

test01:/#powermt display dev=all
Pseudo name=hdiskpower0
Symmetrix ID=000090009902
Logical device ID=51D1
state=dead; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 fscsi3 hdisk13 FA 14cA active dead 0 1
0 fscsi0 hdisk1 FA 3cA active dead 0 1
1 fscsi1 hdisk5 FA 14cA active dead 0 1
2 fscsi2 hdisk9 FA 3cA active dead 0 3
 
#!/usr/bin/ksh
#powermt display dev=all | grep -v "Symmetrix ID=000756425671" | grep -e "Symmetrix ID=000090009902" -e ID -e hdiskpower | sed s/name=//g | sed s/Pseudo//g
#powermt display dev=hdiskpower0 | grep -v ID | grep -v name | grep -v state | grep -v Path | sed s/-//g | awk '{print $3}'
# powermt check 
# rmdev �dRl hdiskpowerX
# rmdev �dRl hdiskX

Whats the expected o/p? I can see you used many different grep -v which is not there in the output of the command.

Out put am expecting is child disk devices associated to state "dead" and Symmetrix ID=000090009902. Script should check for Symmetrix ID=000090009902 and then list the disks which are in state dead, which will be removed by "powermt check" comand followed by "rmdev -dRl hdiskpowerX" and "rmdev -dRl hdiskn"
hdisk13
hdisk1
hdisk5
hdisk9

you mean something like this?

 
powermt display dev=all|awk '/Symmetrix/{print $2};/ dead /{print $3}'

How about an output in below pattern, where first coloumn is Symmetrix ID, 2nd coloumn are all hdiskpowers and 3rd coloumn are all hdisks, which are all associated to the Symmetrix ID=000090009902 and having state "dead"

                   Symmetrix ID=000090009902    hdiskpower0    hdisk13
                                                               hdisk1
                                                               hdisk5
                                                               hdisk9