So I have a couple of hundred DSL routers that I need to telnet too and change to DHCP. I have a simple perl script that I already plagiarized to change the DNS on these routers but that was the same command on every box. What I want to do now is run a script that will telnet to each ip (same username/pass for all) and then run the tftp command to upload the new DHCP based config for each router. PLEASE NOTE - I'm very new to Perl and learning so I would very much appreciate your time and patience :-)
The script I have refers to an ip.list txt file containing all the IPs to be connected to. Can I somehow add the name of the individual config files, or check for them against the ip and run the tftp command to upload it?
Hope this makes sense.
J.