Quote:
Originally Posted by tdelliott
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.
|
script?
maybe
script logfile.log
ssh router.myhost
commands...
exit
exit (from script)
I have not used it much though.