Obtaining Process information on AIX


 
Thread Tools Search this Thread
Top Forums Programming Obtaining Process information on AIX
# 1  
Old 01-05-2005
Obtaining Process information on AIX

I have written a program to collect some performance metrics on and AIX box, but I'm having difficultly getting the process information.

I'm lead to believe that I'm not getting the correct information because I'm trying to run the program on AIX 5.1 (5100-03), but I'm not convinced as the documentation indicates that I should be able to get hold of this information.

If anyone can compile and run the attached source file on any 5L version I would be very grateful. You'll need an ANSI C compiler (I use GCC) and when compiling you need to include the library libperfstat.a. In gcc, the compile syntax would be something like:

usr/local/bin/gcc /usr/AIXTestv4.c -L /lib libperfstat.a -o /usr/AIXTestv4

To run the program I'd use something like

./AIXTestv4

This will create a file called diagdata in the directory it is executed from. I'd like to see this file and please let me know which version of AIX you're running.

Many thanks

Stuart
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Obtaining File information based on String Search

Is there a single Command in Unix to get the following Information when searching for files containing one or more strings in a Unix Directory (including sub directories within it) : 1) Complete filename ( path and filename) 2) Owner of the file 3) Size of the file 4) Last Modified date... (3 Replies)
Discussion started by: pchegoor
3 Replies

2. Solaris

ZFS get process I/O information

Hi Guys Is it possible to display which process generates the most i/o on my zpool? With # zpool iostst 3 and iostat i just see the general i/o but not the i/o on the process level. thx in advance, Fry (0 Replies)
Discussion started by: fryzh
0 Replies

3. Programming

C++ application: how to access AIX process and cpu information?

Hi, may be this is an AIX noob question: my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (0 Replies)
Discussion started by: DarthVader77
0 Replies

4. Solaris

Need Information About Process

Hi All:- 1- i am working in unix system that is runnign some script 2- this script put the log file into specific folder 3- the log does not include the start time of the script and the end time What i need to know what is the duration time for each request Note:- I don't any thing... (3 Replies)
Discussion started by: dellsh
3 Replies

5. Programming

reading process information

Can any one tell me is there any problem in reading the /proc/#/status file for finding out the exact process name..??? (4 Replies)
Discussion started by: clintoo
4 Replies

6. UNIX for Dummies Questions & Answers

Process information

What sort of statistical information related to a running process can we retrieve using commands? For example, we can get the process id, memory usage and running time of a process using the commands ps and ipcs . Can we get any more information about a running process? Please list them. Also... (4 Replies)
Discussion started by: fermisoft
4 Replies

7. Shell Programming and Scripting

get process information remotely

Hello, We have a domain where instances attached to it are in multiple machines. Is there any way that I can get the process information of the domain of a secondary server from the primary. ssh authentication is enabled on the functional ID and if I scsu to that ID and do the ssh: $ssh machine2... (0 Replies)
Discussion started by: chiru_h
0 Replies

8. Shell Programming and Scripting

Report Process Information (Help me)

I need a script to record top 5 processes to a file. I need the timestamp, cpu and memory utilization along with the process ID. Thanks in advance! (1 Reply)
Discussion started by: jabcd
1 Replies

9. UNIX for Advanced & Expert Users

Obtaining A Process ID (PID)

Is there any way I can get UNIX to return the Process ID of a process when I actually issue the command to invoke the process? For example, if I was to launch an emacs process in batch mode, by issuing the UNIX command : % emacs file.txt& then UNIX would return the Process ID (PID).... (7 Replies)
Discussion started by: 1cuervo
7 Replies

10. UNIX for Advanced & Expert Users

Process Information

Hi, If we have a process p1 running and then p2 attempts to shutdown p1. Is there a means for p1 to know who has requested him to shutdown Thanks and regards, Reji (1 Reply)
Discussion started by: rejise
1 Replies
Login or Register to Ask a Question