hciprocstatus returns status of processes that don’t exist

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf hciprocstatus returns status of processes that don’t exist

  • Creator
    Topic
  • #51137
    Troy Morton
    Participant

    QDX 5.4 Rev1

    AIX 5.3

    I just found something very interesting while creating a script that would automatically do things based on output from the hciprocstatus -p command.

    Look at this:

    Code:


    />hciprocstatus
    Process         State    Message
    ————— ——– ————————————————–
    troy2           dead     Normal exit at Thu Aug 20 08:37:34 2009
    troy3           dead     Normal exit at Fri Jul 31 10:27:52 2009
    troytest        dead     Normal exit at Fri Aug 21 09:06:23 2009
    L13Tvarian_troy dead     Exit time unavailable
    troy1           dead     Normal exit at Fri Aug 21 09:06:12 2009
    L1Ftds_troy     dead     Exit time unavailable
    hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
    />

    So, this is a list of all processes in the current site and their status.  Now lets try to get the status of a process not listed here.

    Code:


    />hciprocstatus -p bogusfoobar
    Process         State    Message
    ————— ——– ————————————————–
    bogusfoobar     dead     Exit time unavailable
    hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
    />

    Just to prove there is no process in my site called bogusfoobar, here is a listing of my /$HCISITE/exec/processes directory…

    Code:


    />echo $HCIROOT/$HCISITE
    /qdxtest/qdx5.4/integrator/troytest
    />
    />ls -al $HCIROOT/$HCISITE/exec/processes
    total 64
    drwxrwsr-x   8 hci      staff           512 Aug 21 09:20 .
    drwxrwsr-x   7 hci      staff           512 Jul 29 16:36 ..
    drwxrwsr-x   2 hci      staff           512 Aug 21 09:19 L13Tvarian_troy
    drwxrwsr-x   2 hci      staff           512 Aug 21 09:19 L1Ftds_troy
    drwxrwsr-x   2 hci      staff           512 Aug 21 09:06 troy1
    drwxrwsr-x   2 hci      staff           512 Aug 20 08:37 troy2
    drwxrwsr-x   2 hci      staff           512 Jul 31 10:27 troy3
    drwxrwsr-x   2 hci      staff           512 Aug 21 09:06 troytest
    hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
    />

Viewing 0 reply threads
  • Author
    Replies
    • #68909
      Tom Rioux
      Participant

      Troy,

      Just to confirm, I can do the same thing on 5.6.   It must  be something instrinsic to the way hciprocstatus is working.  I guess it figures if the process doesn’t exist, then it must be dead.

      Tom

Viewing 0 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
4,968
Forums
28
Topics
9,109
Replies
33,637
Topic Tags
248