- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Redirecting output of "top" to a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 09:27 AM
10-23-2005 09:27 AM
How to redirect the output of "top" command to a file ?
Actually i tried with the command top > test1
but the output was not in a readable format.
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 09:50 AM
10-23-2005 09:50 AM
Re: Redirecting output of "top" to a file
Use top with -f option to collect the out put in a file. See the below link.
http://docs.hp.com/en/B2355-60105/top.1.html
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 09:54 AM
10-23-2005 09:54 AM
Solutionyou can combine -d and -f options to get a continuous output in a file.
syntax:-
#top -d 5 -f /tmp/top.out
The above command will give you 5 outputs of the top command.
Go through man page for a complete list of flags which can be used with top command.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 09:56 AM
10-23-2005 09:56 AM
Re: Redirecting output of "top" to a file
-f option will do this for you. There are many other parameters as well.
Man top for details.
#man -f topoutput
Will create topoutput file in current directry for the entries in first page.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 03:39 PM
10-23-2005 03:39 PM
Re: Redirecting output of "top" to a file
-f filename Output is appended to filename. When -f is used, top defaults to 1 for -d and 16 for -n.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 05:47 PM
10-23-2005 05:47 PM
Re: Redirecting output of "top" to a file
we usually use:
top -s5 -d6 -f top.out
that will capture the data for 30 seconds for every 5 seconds.
also, we recently started using "extract" - measureware utility that enabled use to collect much more information and plot great performance graphs.
if you need any further assistance, do let us know.
kind regards
yogeeraj