- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitoring a process
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
09-05-2005 08:27 PM
09-05-2005 08:27 PM
Monitoring a process
Is there any utility( command, script or tool) which I can use to monitor a particular unix process in HP-UX 11.11?
What I want to do is to keep track of a particular process and wants to find out how often is it in run mode and how often it went to sleep.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:42 PM
09-05-2005 08:42 PM
Re: Monitoring a process
tusc is free program to trace system call,
glance for the tuning
lsof for monitorin open file
DM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:47 PM
09-05-2005 08:47 PM
Re: Monitoring a process
"man ps" you'll see the filed names and probably you'll have to set UNIX95 variable on.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:52 PM
09-05-2005 08:52 PM
Re: Monitoring a process
#!/bin/ksh
# monitor.ksh
PID="9889"
STIME=120 # Sleep time in seconds
while [ 1 ]
do
ps -efl | grep $PID >> /tmp/monitor.log
sleep $STIME
done
# chmod u+x monitor.ksh
# ./monitor.ksh &
# tail -f /tmp/monitor.log
will give details.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 08:58 PM
09-05-2005 08:58 PM
Re: Monitoring a process
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=954081
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 10:43 PM
09-05-2005 10:43 PM
Re: Monitoring a process
you can try with Glance product and the extract command (see man extract) combination.
The metric ones that interests to you would have to be:
PROC_PROC_ID
PROC_RUN_TIME
PROC_SLEEP_WAIT_PCT
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2005 11:42 PM
09-05-2005 11:42 PM
Re: Monitoring a process
Bill Hassell, sysadmin