If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Telnet Timeout

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-10, 20:52
mkstrobe mkstrobe is offline
Registered User
 
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.
Reply With Quote
  #2 (permalink)  
Old 07-19-10, 17:32
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 626
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.
Reply With Quote
Reply

Tags
disable, telnet, timeout

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On