Saving The Output From A Telnet Session

“telnet “IP Address” -f “file location”      E.G.  telnet  192.168.1.1   -f   c:\router_cfg.txt

Telnet Session

 

 

 

 

 

 

 

Open a Command Window from within Windows and “tail” the session by using the argument -f with the telnet command.  This is a easy way to grab a Show Run, Show Version, and Capture Debugging messages from within the telnet session.   This is much easier than trying to copy and paste the output into Notepad from within the command window.  The scrollback within command.exe is not usually long enough for large Cisco router,firewall, or switch configurations.  This way you can simply open a command window, telnet to your device and get your Show commands and exit knowing that all the output will be stored in the text file you specified.

 

Comments

  1. That was indeed much helpful ! I did knew that I could capture the telnet output to file but I was not sure what the command format was . Yeah , it is much easier than copy pasting the whole thing to notepad . Thanks for sharing !

Speak Your Mind

*