Networker

Re: [Networker] Getting last start time for a group?

2009-03-16 12:40:35
Subject: Re: [Networker] Getting last start time for a group?
From: Len Philpot <Len.Philpot AT CLECO DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 16 Mar 2009 11:35:44 -0500
> George Sinclair 
>
> This is a simple question but maybe not an easy answer.
> 
> How can I obtain the time a given group last ran? I'd like to determine 
> this to be used by a script that will run each day.

There may be a way to query Networker directly, but if not it should be 
relatively painless to walk through your daemon* logs and extract the most 
recent group start entry. For example, I have a script that concatenates 
all my rolled-over logs into a large sequential one, and I sometimes use 
that for longer-term troubleshooting. I just delete the big log when I'm 
done. You probably don't need all of the logs combined for this, but maybe 
the last two or so (depending on when your script runs).

Or am I missing something? (entirely possible! :-)

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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