I am a beginner in shell scripting struggling with a script.
I have to write a script to change the IP address of computer remotely running on solaris or Linux ,which is to be added to a cluster.I am working on unix.
Presently the administrator runs a sanity check script on the computer remotely of course.If IP address i not as predefined then he has to change it manually.
Thanks a lot for the script.It worked after making some minor changes.
I have one more query.
I have a script which finds the subnet of the computer from the first three octets of the ip address.
And then obtains rest of the networking information like dns,gateway,route list,etc from ldapsearch.
At the moment this script only obtains the values and displays the values on screen.
How do I get the script to refelect the changes on the machine itself automatically