Results 1 to 2 of 2

Thread: Telnet Timeout

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Telnet Timeout

    I'm writing a script to go through and run commands on tons of Cisco switches, the command in question takes forever to finish running, we're talking 20 minutes, and I unfortunately I have to monitor it and log when the command finished processing. I'm using perl, particularly the waitfor() and print() functions of the Net::Telnet class. How can I disable the timeout once I get to the point that I would run the for-mentioned 20 minute command? Mind you I still want it to timeout initially so I know if I'm trying to connect to a bad hostname or am using the wrong credentials to authenticate.

  2. #2
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Is tons * 20 minutes greater than (early_ retirement_ age - current_age) * 2000 * (60 / 20)?
    I think that you should investigate a methodology that allows you to upload a script and then some time ( 20 minutes?) later check to see if the upload was successfully executed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •