pcp
[Top] [All Lists]

Re: pmlc handshake timeout needed?

To: kenj <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: pmlc handshake timeout needed?
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Thu, 19 Nov 2009 10:03:02 +1100 (EST)
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <1215282402.515991258585256224.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Quick followup - you asked yesterday where the PIDs used here were
coming from (first arg to pmlc in the ps output earlier) ... they
are delivered via this shell function:

get_running_loggers()
{
    # Gets the list of pid+host pairs for all running pmlogger processes
    pminfo -f pmcd.pmlogger.pmcd_host \
        | perl -ne 'if (/^ +inst \[(\d+).*value "(.*)"/) { print "$1 $2\n" }'
}

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>