- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to check CPU MEM usage
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
тАО04-10-2011 11:57 PM
тАО04-10-2011 11:57 PM
How to check CPU MEM usage
how to make script to check list cpu usage, memory usage, hard disk usage in all my hp server once in every day ? i can do by crontab , but how to make the script ?
thank you
bangun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2011 12:12 AM
тАО04-11-2011 12:12 AM
Re: How to check CPU MEM usage
You could ask top(1) to send out one pass.
For memory (actually swap) usage, you could use "swapinfo -tam".
For disk usage you can use "bdf -l".
Is this detailed enough for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2011 12:25 AM
тАО04-11-2011 12:25 AM
Re: How to check CPU MEM usage
tks you for your feedback, i know that command. But i want to put it all command in one script and the output in one file ?
tks
bangun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2011 02:03 AM
тАО04-11-2011 02:03 AM
Re: How to check CPU MEM usage
You can have each of these commands append their output to that one file.
> $OUTFILE
top -f $OUTFILE -n 50
swapinfo -tam >> $OUTFILE
bdf -l >> $OUTFILE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2011 08:26 PM
тАО04-11-2011 08:26 PM
Re: How to check CPU MEM usage
in that man page it will give you sa1 commands you can put in a cron file to cause sar to collect data every hour on your system.