- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- processes
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
06-16-2001 08:37 PM
06-16-2001 08:37 PM
Greetings for the day!
I want to know, in HP-UX whether it contains any directory which contains process status of currently running processes. Like /proc/###/
If not, can we configure our Unix box for doing above?.. and how?...
Cheers...
Satish.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2001 11:02 PM
06-16-2001 11:02 PM
SolutionFile utmp contains a record of all users logged onto the system. File
btmp contains bad login entries for each invalid logon attempt. File
wtmp contains a record of all logins and logouts.
if you want to trace a process from the start here is a nice program that i found that could help you to trace a process
Here is an example of monitoring the status of a process from beginning
to end. 'read_acct.c' is the name of the source file.
Note: This example was used to track a cron process, but you can
modify the 'grep' to extract other process names:
1a. Download the read_acct.c source file via anonymous ftp.
It is available via anonymous ftp from hppine34.uksr.hp.com
in the /pub/ directory.
Take a look at the header file usr/include/sys/acct.h and
the acct structure therein to see what fields are held in
each record. You may wish to modify the program to print
out some other fields of interest.
1b. Compile the read_acct executable from the read_acct.c
source file:
cc -o read_acct read_acct.c
2. Turn on accounting:
# touch /[filesystem_with_space]/pacct
# /usr/lib/acct/accton /[filesystem_with_space]/pacct
Note: The 'pacct' file stores all of the Accounting data,
and this file can grow quite large. It would be wise
to monitor the size of this file, and to store this
file on a NON-ROOT file system. The size of the file
will vary from system to system.
You will leave accounting ON for some period of time
in order to log the data that you are attempting to
capture.
3. Turn off accounting:
# /usr/lib/acct/accton
4. Run the read_acct program to interpret the pacct file:
# ./read_acct /[filesystem_with_space]/pacct | grep cron
read_acct pacct |grep cron > read_acct_1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2001 02:29 AM
06-17-2001 02:29 AM
Re: processes
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2001 07:23 PM
06-17-2001 07:23 PM
Re: processes
Is it /etc/utmp?... how to get info from it?.. is there any cmd like last for wtmp and lastb for btmp....
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2001 07:26 PM
06-17-2001 07:26 PM
Re: processes
Cheers...
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2001 11:04 PM
06-17-2001 11:04 PM
Re: processes
yep, you are rigth , the cmd who used the utmp
and the cmd last command used the wtmp