in reply to Working With The Process Table (AIX)

I'm not familiar with Aix, but googling for "Aix proc filesystem" shows it exists. Can't you just loop thru all the pid entries? Each pid has it's own directory named the numeric pid. For example: /proc/$pid/cmdline will give you the command line name of the $pid. All sorts of useful information is in there. It probably isn't real efficient to loop through all the pid directories, but neither is Proc::ProcessTable. :-)

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Working With The Process Table (AIX)

Replies are listed 'Best First'.
Re^2: Working With The Process Table (AIX)
by Limbic~Region (Chancellor) on Aug 05, 2011 at 15:10 UTC
    zentara,
    but googling for "Aix proc filesystem" shows it exists

    I referenced AIX's /proc file system in my original post. Not all /proc filesystems are created equal. AIX does not support the cmdline file. In fact, the only useful information I have found is in psinfo (described above) which has a partial command line argument.

    Cheers - L~R

      <meditation mode>

      There is no lsof .... minimal proc filesystem

      It seems you have been given a task, which the AIX operating system has been designed to prevent. What the rational behind their OS design? Security of processes? It seems they require you to know the pid, and only the launcher of the process will know it.


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        zentara,
        It is a local policy regarding lsof. AIX does ship with a very useful tool to interact with the process table - ps. I would rather not parse the output of ps but it may come to that. Early next week, I will be speaking with an internal IBM developer on how this information can be obtained (even if it means requiring setgrpid to read kernel memory) and weigh the cost of rolling my own or just parsing ps.

        Cheers - L~R