- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get the individual CPU usage report on one ...
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
01-09-2003 07:23 AM
01-09-2003 07:23 AM
I want to gather the usage info of the CPUs of one HP UNIX server for several days.
I tried Perfview but it can only get the average usage info of the multiple CPUs and then I thought of GlancePlus but unfortunately it can only get current usage info of individual CPU.
So I am very eager to find one tool or method to solve this question.
Any idea will be appreciated.
albert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:26 AM
01-09-2003 07:26 AM
Re: How to get the individual CPU usage report on one multiple CPUs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:33 AM
01-09-2003 07:33 AM
Re: How to get the individual CPU usage report on one multiple CPUs
I said I want to get the usage info of every CPU individually.
Thanks.
albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:59 AM
01-09-2003 07:59 AM
Re: How to get the individual CPU usage report on one multiple CPUs
Use sar -M command to get per processor stats:
You will get a display similar to this:
00:00:00 cpu %usr %sys %wio %idle
00:20:00 0 16 3 2 79
1 15 6 2 77
2 17 5 2 76
3 17 4 2 77
system 17 4 2 77
Averages are included at the bottom of the report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 08:02 AM
01-09-2003 08:02 AM
Re: How to get the individual CPU usage report on one multiple CPUs
Top can show you this. However for real monitoring you'll want to use something like Glance or Measureware.
Both will track individual CPU stats. Perfiew can report on individual CPU or global CPU stats.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 08:06 AM
01-09-2003 08:06 AM
Re: How to get the individual CPU usage report on one multiple CPUs
Actually, there would be 2 methods - with Perfview C.03.58 (possibly earlier too) select the Class Compare template, then CPU, select all then Total Util. You'll also have the choice of getting just user more or system mode.
The other method would require using sar where the data is collected via cron (examples in man pages for sa2). Then you can run sar -M against the respective data files and retrieve each days data on a perprocessor basis.
Hope this helps,
keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 08:17 AM
01-09-2003 08:17 AM
Re: How to get the individual CPU usage report on one multiple CPUs
I know 'sar' can get the usage info of individual CPU but I think it is hard to get the statistics for a long time such as one day.
To Sean,
I do want to get statistics for one day so I think top and GlancePlus can not solve my question.
As for Perfview, I tried my best to look for the metric indicating individual CPU usage but I failed. But since you say that Perfview can do it I think you must have successed to do it with Perfview. So will you be kindly to give me some hints about it ?
Thanks again.
Al.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 08:55 AM
01-09-2003 08:55 AM
Re: How to get the individual CPU usage report on one multiple CPUs
Run top from cron evry minute (for example) and collect the output in a file.
* * * * * top -n1 -d1 >>/tmp/toplog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 09:52 AM
01-09-2003 09:52 AM
Re: How to get the individual CPU usage report on one multiple CPUs
The best command to get the invidual cpu usage is top.
You also can this command on crontab if you want to see the usage only on certain times.
you can point out the output to a file
man top command and crontab command.
You can also check on the timex command(i not yet tried)
Thanks & Regards
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 10:26 AM
01-09-2003 10:26 AM
SolutionBYCPU_CPU_SYS_MODE_UTIL
BYCPU_CPU_TOTAL_UTIL
BYCPU_CPU_USER_MODE_UTIL
BYCPU_CSWITCH_RATE
BYCPU_ID
BYCPU_INTERRUPT_RATE
BYCPU_STATE
However, they are not logged by default. To turn collection of them on, you need to add "cpu" to the "log... dev=" line in your /var/opt/perf/parm file. You can then use the extract command and perfview to view these metrics.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 12:13 PM
01-09-2003 12:13 PM
Re: How to get the individual CPU usage report on one multiple CPUs
Here's is a list of them:
BYCPU_CPU_SYS_MODE_UTIL
BYCPU_CPU_TOTAL_UTIL
BYCPU_CPU_USER_MODE_UTIL
BYCPU_CSWITCH_RATE
BYCPU_ID
BYCPU_INTERRUPT_RATE
BYCPU_STATE
However measureware doesn't log all metrics by default out of the box, so you may have to turn on these metrics via the parm file to have them logged.