Hi,
I am very new to scripting. I need to create a script which does following.
Scenario:
- First get the format command output echo | format
- Insert the new disk to Solaris Server
- Get Zpool status
- format the new disk
( Here I need to select the new disk which have been inserted, I do not know how to do it) - Specify disk number (Based on disk in step4)
- Label the disk
- partition output
- modify
- Chose base(enter number)0?1
- Free Hog partition6?0
- Enter table name (remember quotes):" "
Label of the disk in step 4 - Ready to label disk. continue ? y
- quit format command
- Execution of mirror
- zpool attach rpool "Disk from Zpool status" New disk at step 4)
- Wait for resilvering
- Output reslivering is finished
- Create installboot
Please any advise and help is appreciated.
I am running on Sparc Solaris 10 x64 T4-1
Thanks,
Praveen