I have more than 60 to 80 systems running Ubuntu. Some of them are with version 8.04 and some of them are with latest version 10.10. Now we are in the process of upgrading all older Ubuntu version to a newer version. It is difficult to switch on every Ubuntu system and taking notes of older Ubuntu version and then upgrade. I have IP addresses of all these machines in a text a file. So I am looking for a simple bash script which will automate the task. I am expecting the output would look like this:
172.29.34.40 ubuntu 10.04
172.29.34.41 ubuntu 8.04
172.29.34.42 ubuntu 8.10
and so on.. Can anyone help me?