title: Writing Automated scripts to configure device
body: <p>My requirement is like this:</p>
  
  <p>I need to log in to a remote device (say Router/switch) and execute following commands.</p>
  
  <pre><code>telnet xx.xx.xx.xx
  //give password here
  sys
  interface g x/x/x
  shut
  desc free-port
  exit
  </code></pre>
  
  <p>There are Hundreds of devices for which I cannot waste time doing above damn thing 100 times. I need to write a automated script which does it. so My questions are as follows:</p>
  
  <ol>
  <li>I use Windows system, so What is the best scripting language to be used : Ruby / shell script / perl ? (I was formerly ROR Developer, so i know Ruby, Linux terminal. Now I am working in networking domain. )</li>
  <li>What I thought was : Put all Devices into an array and using <strong>for</strong> loop, call devices one by one and execute above said commands.</li>
  <li>I don't have knowledge of scripting, so please guide me further. I don't know where to start from.</li>
  </ol>