- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: logging processes
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
Discussions
Discussions
Forums
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
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-25-2001 10:47 AM
тАО10-25-2001 10:47 AM
logging processes
As I understand it from the case notes, the customer is looking for a method to take a snapshot of the top ten or so processes at a settable interval. The following may meet their needs.
If I were collecting this data, I'd use the undocumented "-f" option of top(1), along with the "-d" flag. I'd set up a cron job to run every 5 minutes and execute this command:
/usr/bin/top -n 10 -f /path/filename
The "-n" flag specifies the number of processes you wish to see, sorted by CPU utilization. The "-f" flag specifies the pathname you want the results printed to, but also specifies that you want just a single snapshot. The file will not contain the cursor control characters you'd have if you redirected top's output to a file using ">". And if top finds the file already there (as it would, in this case), it will append to it. Thanks in advance-Peace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 10:55 AM
тАО10-25-2001 10:55 AM
Re: logging processes
If you have perfview then it is easy to get the report from measureware agent you can collect data.
Also set cron for sar regular interval.
GoodLuck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 10:58 AM
тАО10-25-2001 10:58 AM
Re: logging processes
For ad hoc, short periods, I don't see anything particularly bad about this response. For long-term serious performance analysis, I'd look at Glance/Measureware or somthing like it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 11:00 AM
тАО10-25-2001 11:00 AM
Re: logging processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 11:20 AM
тАО10-25-2001 11:20 AM
Re: logging processes
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 11:59 AM
тАО10-25-2001 11:59 AM
Re: logging processes
I've attached a Glance Adviser Syntax example. You can save it to a file in your current directory. Let's say we call it top5.syntax. Then you can run something like:
glance -adviser_only -syntax top5.syntax -j10
I hope this helps ... Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2001 02:13 PM
тАО10-25-2001 02:13 PM
Re: logging processes
The top command should do
fine ,except that i have
found top to be off-mark
on odd occasions.
Glance is a good alternative.
-raj