Originally Posted by boby.kumar
Can anyone write the scripts for the same ?
Certainly people have the ability to write plenty of scripts on their own. What you should be doing here is attempting to write this script on your own first and when you get stuck, post your attempt in this thread indicating where you've run into problems.
You have a pretty good description of the tasks. My favorite saying is that "anything you can do on the command line, you can write in a script".
You should choose a scripting language. BASH is one of them, but there are others. As far as BASH goes, there are links in my signature to the BASH guides for beginners, advanced programmers, and also my own BASH blog which includes a number of tips for writing BASH scripts.
A further recommendation is that you consider asking a moderator to move this thread to the Non-Nix -> Programming forum, or the Linux -> Software forum, so as to get better exposure for your question. I personally recommend the Programming one, there are tons of script questions which come up on that forum.
Please do not write a duplicate thread, the correct thing to do is to request that your thread be moved by using the Report button on the screen. I know that sounds counter-intuitive, but that is how LQ works.
You don't have to request the thread be moved, just a minor suggestion.
The best thing to do is start your script and post what you have.