Hi Manivannan,
This thread has examples of using SSHLibrary to run commands and getting back the output from those commands:
The only thing I’d add to the info in that thread is if your manual step is to open the trace log with a text editor (e.g. vi or nano) and scroll through the text then you might be better off using other command lines to extract the detail you want.
- grep/egrep can be used to extract text from a log that matches a pattern
- tail will give you that last few lines of a log file (you can define the number of lines you want
Hopefully that will get you started,
Dave.