I have an output of "powermt display dev=all" command (example only - there are much more hdiskpower stanzas):
How to get stanzas sorted by numbered "hdiskpowerN" to finally get output like below?
Code:
Pseudo name=hdiskpower3
Symmetrix ID=000292602332
Logical device ID=08EC
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk11 FA 12fA active alive 0 0
1 fscsi1 hdisk19 FA 5fA active alive 0 0
Pseudo name=hdiskpower2
Symmetrix ID=000292602332
Logical device ID=08EB
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk12 FA 12fA active alive 0 0
1 fscsi1 hdisk20 FA 5fA active alive 0 0
Pseudo name=hdiskpower1
Symmetrix ID=000292602332
Logical device ID=08EA
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk13 FA 12fA active alive 0 0
1 fscsi1 hdisk21 FA 5fA active alive 0 0
How to get stanzas sorted by numbered "hdiskpowerN" to finally get output like below?
Code:
Pseudo name=hdiskpower1
Symmetrix ID=000292602332
Logical device ID=08EC
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk13 FA 12fA active alive 0 0
1 fscsi1 hdisk21 FA 5fA active alive 0 0
Pseudo name=hdiskpower2
Symmetrix ID=000292602332
Logical device ID=08EB
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk12 FA 12fA active alive 0 0
1 fscsi1 hdisk20 FA 5fA active alive 0 0
Pseudo name=hdiskpower3
Symmetrix ID=000292602332
Logical device ID=08EA
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk11 FA 12fA active alive 0 0
1 fscsi1 hdisk19 FA 5fA active alive 0 0