Hi, I'm trying to make a menu in AIX so an operator can move the tape from one LPAR to another.
What I need is to take the output from:
lsdev -l rmt0 -F parent
The output will be something like:
scsiX
So I need to take this output and put it in another lsdev:
lsdev -l scsiX -F parent
And so on till the output is like pciX.
Then I'll have to do "rmdev -l pciX -R".
I have no experience in UNIX scripting, and I don't know how to start, so I'll be thankful if can help me.
Thanks
What I need is to take the output from:
lsdev -l rmt0 -F parent
The output will be something like:
scsiX
So I need to take this output and put it in another lsdev:
lsdev -l scsiX -F parent
And so on till the output is like pciX.
Then I'll have to do "rmdev -l pciX -R".
I have no experience in UNIX scripting, and I don't know how to start, so I'll be thankful if can help me.
Thanks