in reply to Replying to prompts in an automated script
You could use Net::Telnet (keep in mind Telnet - Security) within a script to connect to each server and execute the commands you need to.
If you need help installing modules see Installing Modules from the tutorials section of this site.
Martin