Fellow Monks,
i am in need of your assistance. I want to write a script that will need to do multiple tasks, not all at once.
I am going to connect to a pdc and get it to dump a list of machines it has as memebers of the domain.
for each machine it has listed in the domain i am then going to do a ip address lookup and pipe the results to a text file.
From there i want to ping the machines to see if they are still alive. and pipe the results to a text file. (we have gone through about 200 old machine names as we recycle hardware from production to qa and also introduce new machines to production.)
So with all that in mind, would it make more sense and also be cleaner if i created a module with all the work that i wanted done and call on it from the script? i have scripts that will do everything that i want to do except for the pinging hosts. I will research and try to impliment Net::Ping. Any advice would be greatly appreciated. I have never created a module, so any advice on how to get it started would be great appreicated also. I will post final code once i figure out the best way to do this.
Thnx in advance
Ray