cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2266
Views
0
Helpful
4
Replies

Question about Putty !

Hi Friends,

This is a tricky requirement for Putty ( Telnet tool )

I am using Telnet for the remote connection with my devices such as routers and switches. In router i need to enable some debugs for 3 - 4 hrs and should save it in a text file with out fail but the problem here is after enabling the debug like 10 - 15 mins the log file is appending for date after 15 mins my putty session goes to inactive state so i need to manually restart the session.. ( How to make my putty session always active though no key input )

Can any one know how can i fix this issue. Your answers much appreciated.

Kulasekara raja. K

4 Replies 4

Leo Laohoo
Hall of Fame
Hall of Fame

1.  User a different application like HyperTerminal;

2.  Haven't tried this command but you can redirect to a TFTP server:  debug all | redirect tftp:///filename.txt

Edwin Summers
Level 3
Level 3

I haven't had that issue, though I use SSH for my connections.  Given that, I've had sessions stay open for over a day on my lab equipment when I've forgotten to close them.  Are you sure it is a PuTTY session and not a configured timeout on the vty of the device you're logging into?

I don't think this will resolve your issue, but you can look into the keepalive options under the "Connection" category in PuTTY.  However, I believe that is more for connections where there are intermediate devices that drop connections that are idle for certain lengths of time.

If possible, I'd go with leolaohoo's suggestion of redirection to the tftp server.  That way you're not dependent upon an application that's expecting interaction.

Good luck,

Ed

Hi Edwin,

I saw the option under connections in Putty "Sending of Null packets to keep the session active"

Default is "0" which means it is turned off. Is there anything me to change. ???

Kulasekara Raja. K

Edwin Summers
Level 3
Level 3

You could try turning it on (set for, say, five minutes). However, I'd verify the vty time-out setting first, then try leolaohoo's redirect suggestion first, as it's a bit more elegant and more likely to result in success.