brdtt12
July 28th, 2008, 02:34 PM
I work for a company that has multiple offsite computers that check into a server at our local office. They check in and update content using shell scripts that run at pre-specified times throughout the day.
One of these computers is currently not checking in. This means it is unable to connect to the internet. There has been no change with the network it is on, the only cause for this problem is when it was loaded before shipment it must have been set with the incorrect network settings.
Each computer is setup with a static ip and is not accessible from outside the network.
What I am looking for is a script I can use to log into the network setting(password required) and set a new static ip, subnet mask, gateway address, and dns numbers.
I have found various scripts that use 'expect' and 'send' but have not had any luck getting anything to work. Any help or direction would be greatly appreciated. Also if it matters I have Ubuntu 7.04 installed.
Thanks in advance.
One of these computers is currently not checking in. This means it is unable to connect to the internet. There has been no change with the network it is on, the only cause for this problem is when it was loaded before shipment it must have been set with the incorrect network settings.
Each computer is setup with a static ip and is not accessible from outside the network.
What I am looking for is a script I can use to log into the network setting(password required) and set a new static ip, subnet mask, gateway address, and dns numbers.
I have found various scripts that use 'expect' and 'send' but have not had any luck getting anything to work. Any help or direction would be greatly appreciated. Also if it matters I have Ubuntu 7.04 installed.
Thanks in advance.