Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am in begining stage in Perl Scripting, i would like ask one thing that normally i am using Telnet module of perl to execute certain commands on the Cisco devices. But now i have a requirement to telnet the multiple devices and executes these certain command. Commands were same to execute these commands. Meanwhile i have a script who telnet the device once and execute the command and then it telnet the other devices. Is there any way to telnet the devices simaltanously and execute these commands at once on all specified devices. If anybody has script as an example so kindly tell me. Regards.
  • Comment on Telnet Module can open multiple telnet session to multiple devices

Replies are listed 'Best First'.
Re: Telnet Module can open multiple telnet session to multiple devices
by marto (Cardinal) on Jun 07, 2010 at 12:44 UTC

    Are you sure you want to do this? Telnet isn't secure. Why not use something like Secure_Shell via Net::SSH or similar? I'm sure if you super search you'll find this topic has been addressed here before, or at least, enough to get you started.

Re: Telnet Module can open multiple telnet session to multiple devices
by VinsWorldcom (Prior) on Jun 07, 2010 at 14:20 UTC
      i wrote a perl program to telnet into cisco devices and it worked fine...after telneting i need to do another telnet session from that cisco device ,if u have any example can u just help on this..thanks in advance