- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Monitor Process in unix
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
07-25-2003 03:31 AM
07-25-2003 03:31 AM
Monitor Process in unix
I'm new to unix, someone please tell me how to track the process.
This should include the start time of the application , the file opened by the application and the end time(time when the application was closed).
regards
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 04:45 AM
07-25-2003 04:45 AM
Re: Monitor Process in unix
Glance allows you to monitor a process in realtime and show you what resources its using, what files is has opened, etc, and when it stops.
To view historical data on all processes and when they ended you need full auditing which is not easy to do and uses vast amounts of disk space. Easier to use glance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 04:50 AM
07-25-2003 04:50 AM
Re: Monitor Process in unix
Use galnce plus program that free for 60
days on applications CD.
All you want is there.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 04:51 AM
07-25-2003 04:51 AM
Re: Monitor Process in unix
Glance is best. The time command can give you elapsed time of a process - see "man time".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 08:19 AM
07-28-2003 08:19 AM
Re: Monitor Process in unix
It is available for download from
h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/ 1,1703,1433,00.html
===========================================================================================================================
% tusc -T "" -s exec,open,exit /bin/ls /
1059408821.278950 execve("/bin/ls", 0x7b040a28, 0x7b040a34) ................................................. = 0 [32-bit]
1059408821.279434 open("/usr/lib/dld.sl", O_RDONLY, 05000) .................................................. = 3
1059408821.280304 open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0) ................................ = 3
1059408821.280558 open("/usr/lib/libc.2", O_RDONLY, 0) ...................................................... = 3
1059408821.281251 open("/usr/lib/libdld.2", O_RDONLY, 0) .................................................... = 3
1059408821.281483 open("/usr/lib/libc.2", O_RDONLY, 0) ...................................................... = 3
1059408821.281642 open("/usr/lib/libcurses.1", O_RDONLY, 0) ................................................. = 3
1059408821.283770 open("/usr/lib/nls/loc/locales.2/en_US.iso88591", O_RDONLY, 0) ............................ = 3
1059408821.284330 open("/usr/lib/nls/en/US/iso88591/locale.inf", O_RDONLY, 0) ............................... ERR#2 ENOENT
1059408821.284542 open("/usr/lib/nls/american/iso88591/locale.inf", O_RDONLY, 056) .......................... ERR#2 ENOENT
1059408821.284862 open("/usr/lib/nls/msg/en_US.iso88591/ls.cat", O_RDONLY, 0177777) ......................... ERR#2 ENOENT
1059408821.284995 open("/usr/lib/nls/en/US/iso88591/ls.cat", O_RDONLY, 0177777) ............................. ERR#2 ENOENT
1059408821.286030 open("/", O_RDONLY, 032650) ............................................................... = 3
applications cdvEnvironment.tar etc lost+found sbin tmp
bin cifs fast-break mbox SD_CDROM usr
cdrom dev home net software var
cdvEnvironment dml lib opt stand
1059408821.286688 exit(0) ................................................................................... WIFEXITED(0)
%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 11:47 AM
07-28-2003 11:47 AM
Re: Monitor Process in unix
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2894,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 03:33 AM
07-29-2003 03:33 AM
Re: Monitor Process in unix
if you are executing your own application from a scripts & looking to log it tou can write to a log file:
sdate=`date +'%y-%m-%d'`
stime=`date +'%T'`
echo "started job $sdate $stime " > logfile
echo "running job myapp with $file " >>logfile
fdate=`date +'%y-%m-%d'`
ftime=`date +'%T'`
echo "finished job $fdate $ftime " >> logfile