- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to monitor a UNIX 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
02-08-2005 01:49 AM
02-08-2005 01:49 AM
I should monitor the PERL interpreter on my platform, in order to gather data on its usage: who call it, how many times it's called, ....
Is there any utility to do it?
something like "monitor process_image log_file"
thanks
Enrico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 01:54 AM
02-08-2005 01:54 AM
Re: How to monitor a UNIX process?
Do you have Glance? You can set up filters to select just the processes you're interested in. Or you can set up MeasureWare to run reports for you.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 01:57 AM
02-08-2005 01:57 AM
Re: How to monitor a UNIX process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:13 AM
02-08-2005 02:13 AM
Re: How to monitor a UNIX process?
on the simplest level you could use
ps -ef | grep -i perl | grep -v grep
on a script basis
or a the most complex something like:
http://ovweb.external.hp.com/ovnsmdps/pdf/os_spi_admin.pdf
Glance would be probably be the best suited, but has to be installed.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:21 AM
02-08-2005 02:21 AM
Re: How to monitor a UNIX process?
Or put a wrapper around the perl binary.
1. Basically rename the perl binary.
mv /usr/bin/perl /usr/bin/perl_
2. Create a script called perl in the same dir as the perl binary
!#/bin/sh
echo `who am i` >> /var/tmp/perlusage.log
/usr/bin/perl $*
3. and make it executable with
chmod a+x perl
4. Create the initial logfile
touch /var/tmp/perlusage.log
5. and make sure the log file does not fill up your /var/tmp....
Regards,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:22 AM
02-08-2005 02:22 AM
Solutionget and evaluation copy from: http://managementsoftware.hp.com/products/ovperf/tc_ovperf_0001.html
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:27 AM
02-08-2005 02:27 AM
Re: How to monitor a UNIX process?
The drawback is that this is kind of a hack which needs to be documented, but I think using an alias is less intrusive.
i.e. like in the following example - which is BAD[1] and does it wrong [2] :)
mv /usr/bin/perl /usr/bin/perl.bin
echo "time /usr/bin/perl $@ | tee -a /tmp/perl.log" > /usr/bin/perl
[1]
The output is messy as Your log contains the script output which YOU don't need, and Your users get to read the cpu-time info THEY don't need.
[2]
errr - YOU get script output, but not the cpu times and THEY get both.
But this means that the time command uses a different way of outputting it's information and if You find out how it's doing that, You can catch only the time output.
Maybe You can make something out it.
The regular way would be using some way of cpu-time accounting like on mainframes or compute clusters, but I've never seen such how such a thing is set up, even less on hp-ux.
Anybody?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 02:29 AM
02-08-2005 02:29 AM
Re: How to monitor a UNIX process?
If You only need to see who's calling it, go with a wrapper and trace the PPID's process name and terminal, this should be enough data.