Solved

log file

Posted on 2014-04-15
6
348 Views
Last Modified: 2014-10-14
My cat export.log file is about 17 pages and is scrolled up
in AIX box..
I want to copy all the contents in notepad
What steps you have
0
Comment
Question by:tonydba
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40002929
Your best option is using FTP to transfer the log file in "text" format to Windows where you can do with it whatever you want.

AIX runs the FTP server process by default, and Windows comes with an FTP command line client.

Alternatively you can install a GUI client for FTP, like WinSCP, and use this one to transfer the log.

If you have SSH on AIX and PuTTY on Windows you can install and use pscp or psftp which are part of the PuTTY suite.

If you're using PuTTY and really want to go with copy-and-paste adjust the number of scrollback lines for your PuTTY window to a size big enough to hold the whole file in the scrollback buffer, then copy and paste.

Why not view the file in AIX? Use

more filename.log

Now you can page backward and forward as you like, and you can search for strings. Once you're in "more" type "h" to see the relevant subcommands.
0
 

Author Comment

by:tonydba
ID: 40003029
not just to view copy the entire content in a notepad
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40003097
if yo transfer the log file from the aix server to windows as text, then you can open the text file with notepad
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 500 total points
ID: 40003264
Based on my experience with the author , I am posting a link to the site which has steps to do so

If you want to copy the file in windows and open up in notepad use this

http://www.compshack.com/linuxunix/ftp-file-windows-unix-server

If you are using a linux system then use this

http://aruljohn.com/info/filetransfer/

Note: I am not saying anything different than What experts woolmilkproc and omarfarid had suggested, just pointing you to the detailed steps
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40296588
Connect to your AIX machine using PuTTY and set #lines of scrollback to 20000 in the window configuration. cat the whole logfile, then choose 'Copy all to clipboard' and paste the log where you need it (in essence what WMP said above, only with the 'Copy all to Clipboard' added).
0
 

Author Closing Comment

by:tonydba
ID: 40381248
Yes the ftp helped to resolve.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now