PID Process Resources

Hi all.

I need to get detailed information about a PID.
I have an app called Reflection X and it shows many things like Total CPU percent, User CPU (Nice) percent, FS Reads, etc. [I attach an example image]

My question is how can I get all that information on console?
Is there an archive with the detailed information?
Or is there a command that can display the same information like the attached file?

Thanks in advanced.
Regards.

DASM

On other systems I'd suggest /proc/ but HPUX doesn't have that. ps may be your best bet...

you can use this command where you want to check PID
ls -li

@ashutoshverma: Which part of list -longinode shows the PID?

Reflection X is a X server for PC, the application you are looking at seems to be gpm ( glance in X GUI...)...
What do you mean by console? the standard HP? hp 7XX?
Hp consoles are not GUI, so you are left with using glance (text) rather than gpm
I dont know what it looks like on a new VT100 type console but on a hpterm (700/96) <ou will see something like a menubar on the bottom of the screen, the layout matches the corresponding keys (forgot how you call them - function keys ? 1 to 8 if my memory serves me...) of the HP keyboard...

Hi vbe,

That�s correct.
Reflection X is a X server but I�m not looking for glance.
It�s true that glance can display the same data, but one year ago one person got the information even with the same format, and he didn�t type the glance command.
I�m not looking for a GUI, I just need to have access to detailed information about a PID in a text file every certain time.
The option you suggest could work.
I�m going to do some tests and I will comment the results.

By the way, Corona688, the ps command doesn�t give all the information that I need.

Thank you all.
Regards.

DASM

maybe you were thinking of sar:

ant:/var/adm/sa $ sar -u -M  -f sa01 $   

HP-UX ant B.11.11 U 9000/800    09/01/12

16:51:49     cpu    %usr    %sys    %wio   %idle
16:53:00       0       1       1       1      96
               1      24       4       3      69
               2       2       7       3      88
               3       4      20       1      75
          system       8       8       2      82
16:53:24       0      37       8       2      52
               1      36       9       1      55
               2       5       9       1      85
               3       8      31       3      59
          system      22      14       2      63
16:54:24       0       6      17       3      73
               1      12      18       6      65
               2       5      14       3      78
               3       8      25       1      66
          system       8      18       3      71
16:55:24       0       3       5       2      90
               1       7       7       3      83
               2       2       9       2      87
               3       7      22       1      70
          system       5      11       2      82
16:56:24       0       1       1       0      98
               1       0       0       0      99
               2       0       9       0      91
etc...

But it will give you all info about the system, nothing about specific PID (I think...), I really cant see anything else than glance, or its openvue performance monitor, unless you have sysload...

glance text output:

B3692A GlancePlus C.02.15.00    17:56:00    pha1   9000/803    Current  Avg  High
--------------------------------------------------------------------------------
CPU  Util   SNA                                                |  3%    5%   83%
Disk Util   F                                                  |  2%    1%   11%
Mem  Util   S SU        UB           B                         | 50%   50%   50%
Swap Util   R   R                                              | 10%    9%   10%
--------------------------------------------------------------------------------
Resources PID: 18580, PatrolAgent     PPID:     1 euid:1050 User: patrol
--------------------------------------------------------------------------------
CPU Usage (sec) :     0.00 Log Reads :      0 Rem Log Rds/Wts:      0/      0
User/Nice/RT CPU:     0.00 Log Writes:      0 Rem Phy Rds/Wts:      0/      0
System CPU      :     0.00 Phy Reads :      0
Interrupt CPU   :     0.00 Phy Writes:      0 Total RSS/VSS  : 16.0mb/ 11.7mb
Cont Switch CPU :     0.00 FS Reads  :      0 Traps / Vfaults:      0/      2
Scheduler       :     HPUX FS Writes :      0 Faults Mem/Disk:      0/      0
Priority        :      154 VM Reads  :      0 Deactivations  :      0
Nice Value      :       30 VM Writes :      0 Forks & Vforks :      0
Dispatches      :        1 Sys Reads :      0 Signals Recd   :      0
Forced CSwitch  :        0 Sys Writes:      0 Mesg Sent/Recd :      0/      0
VoluntaryCSwitch:        1 Raw Reads :      0 Other Log Rd/Wt:      0/      0
Running CPU     :        0 Raw Writes:      0 Other Phy Rd/Wt:      0/      0
CPU Switches    :        0 Bytes Xfer:    0kb Proc Start Time
Wait Reason     :    SLEEP                       Mon May 31 10:25:45 2010
      C - cum/interval toggle   % - pct/absolute toggle             Page 1 of 1

Hi all,

I executed the glance command as vbe suggested, but I�ve found an inconvenient:
The command is:

$ glance -s -no_fkeys -iterations 2

and it displays the nex screen:
Attached file: glance01.png

That�s correct, but the problem is glance needs the PID Number to can display the info, like this:
Attached file: glance02.png

That works when I need the info of one PID.
But when there is a lot of process running and they are changing of PID the best [only I guess] solution is with a script.
Until now I cannot specify the PID in the command line:

$ glance -s 2376 -no_fkeys -iterations 2
$ glance -s2376 -no_fkeys -iterations 2

Any ideas?
Thanks

DASM

you could try

/opt/perf/bin/glance -j2 -iterations 10 -adviser_only -syntax /home/
vbe/glance.syntax

and put down in your syntax file what you request mine had only:

ant:/home/vbe $ more glance.syntax
print "global priority queue", gbl_pri_queue

for testing someonequestion on this forum...
Did you look at ps command ? Im thinking of the "extented" :

  XPG4 Synopsis
      ps [-aAcdefHjlPzx] [-C cmdlist] [-g grplist] [-G gidlist] [-n namelist]
           [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t
           termlist] [-u uidlist] [-U uidlist] [-Z pset_list]

e.g.

UNIX95= ps -efo vsz,ruser,pid,ppid,args | sort -rn | more

for virtual memory usage...