in reply to Re: Working With The Process Table (AIX)
in thread Working With The Process Table (AIX)

Tux,
Even if I could get Proc::ProcessTable to compile, it wouldn't provide access to the full command line arguments. I have read the source code and it is using the same library that the IBM "roll your own ps" does. pi_comm is truncated. Essentially, Proc::ProcessTable is using a struct that is no longer supported in 64 bit mode. The /usr/include/procinfo.h says "procinfo, userinfo, and uicredinfo structures represent obsolete interfaces. These would not compile correctly in 64-bit mode. I hacked away at the code to use the new structs but found out that pi_comm represents the truncated program name (not the full argument list).

By the way, my corporate firewall will not allow me to access your px script - the site is not on the approved list of allowable websites. If you are willing to email it to me, /msg me and I will give you my info.

Cheers - L~R

  • Comment on Re^2: Working With The Process Table (AIX)

Replies are listed 'Best First'.
Re^3: Working With The Process Table (AIX)
by rehsack (Sexton) on Aug 09, 2011 at 06:14 UTC
      rehsack,
      As I indicated elsewhere in this thread, that patch didn't work for me. I would be willing to work with you offline to try and resolve the issue (I was able to get it to compile myself after basically rewriting the guts to use getprocs64). I have been in touch with the author of the AIX nmon utility and have been informed that yes, to do what I want - requires reading kernel memory with escalated permissions. I will message you my email for further correspondence.

      Cheers - L~R

Re^3: Working With The Process Table (AIX)
by Anonymous Monk on Aug 05, 2011 at 14:22 UTC