- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cpu monitoring
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
11-21-2002 06:51 AM
11-21-2002 06:51 AM
cpu monitoring
does anyone have a script that monitors cpu utilizing on any process. Any help is greatly appreciated and points will be assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 07:10 AM
11-21-2002 07:10 AM
Re: cpu monitoring
rm /tmp/t;top -s 10 -d 1 -f /tmp/t;cat /tmp/t|grep
Change the
Only limitation is top only shows processes which are using a lot of cpu. Glance may be better. Anyone got a similar syntax for glance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 07:25 AM
11-21-2002 07:25 AM
Re: cpu monitoring
it will then ask for a process Id which you can enter. You can also run glance in the background if you wish - do a man on glance.
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 07:26 AM
11-21-2002 07:26 AM
Re: cpu monitoring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 08:16 AM
11-21-2002 08:16 AM
Re: cpu monitoring
$ UNIX95= ps -eo "pcpu comm" | grep
This will list the %CPU that the process used during the last scheduling interval. You can add other columns of information, see the ps(1) man page for more information.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 08:21 AM
11-21-2002 08:21 AM
Re: cpu monitoring
The best way is that , if u have perfview you can just scope the process and define it the the meaurseware agaent and it will record the data whenever the process is run . The system will store readings for all the usages of CPU , RAM , Memory , network and can be plotted .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 08:23 AM
11-21-2002 08:23 AM
Re: cpu monitoring
use top as it can redirect to a file then grep the PID you want;
rm /tmp/t;top -s 10 -d 1 -f /tmp/t;cat /tmp/t|grep
Change the
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 08:25 AM
11-21-2002 08:25 AM
Re: cpu monitoring
This is the second time today you have copied someones exact response. Are you trying to get free points or something? If you want points earn them yourself.
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 09:28 AM
11-21-2002 09:28 AM
Re: cpu monitoring
If you do not need a statistics file saved aside, you may consider running glance. Once you are in glance type s and specify PID you need to monitor.
You will have all information you need then.
In case you need it in a file, well I would go with top and some scripting around it as recommended by the other professionals.
... and jimmy ;)
Hope this helps.
0leg