I would like to use a terminal session to ssh to switches and routers. I need to capture data while logged into switches to a file I can email for troubleshooting.
I use termial to log into Cisco switch, run the sh tech command, and then sent the output to cisco. Is there a way to run a script which will allow me to capture the sh tech output to a file. I am currently using the tcsh shell.
I am new to shell scripting so a good explaination would be greatly appreciated.
I just wanted to send a personal thanks to Juhanitali for posting his "Script" solution. Took me 30 seconds to do a google search and I found your simple but power suggestion & solution. Has saved me HOURS.
Thanks for the post and extremely simple, yet POWERFUL solution.