- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script to to find CPU and memory utilization.
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
08-11-2009 11:34 PM
08-11-2009 11:34 PM
Server-HP UX IA-11.23
Please help me to find a script to get CPU and memory usage of my server in every 1hr.
I just want to get the utilization value in every 1 Hr, no need to get the high utilization process.
Thanks in Advance!!!!
Jeevaraj Sivaraman
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009 11:42 PM
08-11-2009 11:42 PM
Re: Script to to find CPU and memory utilization.
what about enabling sar?
http://docs.hp.com/en/B3921-90010/sar.1M.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009 11:49 PM
08-11-2009 11:49 PM
Re: Script to to find CPU and memory utilization.
you could use glance, or gpm (gui)
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009 11:55 PM
08-11-2009 11:55 PM
Re: Script to to find CPU and memory utilization.
If you have OVO monitoring installed, then you can use the following ..
$ /opt/OV/bin/ovcodautil -dumpds SCOPE | grep -i GBL_CPU_UTIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 12:48 AM
08-12-2009 12:48 AM
Re: Script to to find CPU and memory utilization.
(example: sar -u 5 30)
OR
sar -Mu 5 100
(this will produce 100 data points 5 seconds apart.)
%idle This is the percentage of time that the CPU is not running processes.
%usr - user mode Many systems normally operate with 80% of the CPU time spent as user time, and 20% spent as system time.
%sys- system mode
%wio - idle with some process waiting for I/O
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 02:26 AM
08-12-2009 02:26 AM
Re: Script to to find CPU and memory utilization.
Thanks. it will help me to get the CPU usage , can you help me to find out the swap memory usage , I want this on percentage like swapinfo output.
Reg
Jeevaraj Sivaraman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 03:03 AM
08-12-2009 03:03 AM
SolutionPlease go thru that belwo script.
echo " *********** **************** " >> /tmp/swap.txt
echo "CUP and memory Utlization Report" >> /tmp/swap.txt
date >> /tmp/swap.txt
swapinfo -tam >> /tmp/swap.txt
Edit Crontab file with
* 1 * * * < Scrip Path >
Hope this will help you.
prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 04:05 AM
08-12-2009 04:05 AM
Re: Script to to find CPU and memory utilization.
Check this out : script : cpumme.sh to get cpu memory utilization over a time,
I have a latest script with swap,raw disk i/o, network usage details and ll upload soon.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1250075141947+28353475&threadId=1037077
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 04:05 AM
08-12-2009 04:05 AM
Re: Script to to find CPU and memory utilization.
Check this out : script : cpumem.sh to get cpu memory utilization over a time,
I have a latest script with swap,raw disk i/o, network usage details and ll upload soon.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1250075141947+28353475&threadId=1037077
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 04:43 AM
08-12-2009 04:43 AM
Re: Script to to find CPU and memory utilization.
Have you tried this:
http://www.hpux.ws/?p=6
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 05:51 AM
08-12-2009 05:51 AM
Re: Script to to find CPU and memory utilization.
swapinfo -tm example and explanation :
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 288 83 205 29% 0 - 1 /dev/vg00/lvol2
reserve - 141 -141
memory 102 41 61 40%
total 390 265 125 68% - 0 -
o dev line(s):
+ are the actual physical swap device(s)
o reserve line(s)
+ indicate how much of the swap device(s) has(have) been set aside for memory should it need to be swapped.
o memory line:
+ indicative of how much of pseudo-swap has been reserved
o total line:
+ the PCT USED value shown in the total line indicates how much swap space has been actually reserved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 11:34 PM
08-12-2009 11:34 PM
Re: Script to to find CPU and memory utilization.
Thanks fopr your repply.Iam closing this query.