Networker

[Networker] Check for a group completion in a script?

2006-07-13 00:33:54
Subject: [Networker] Check for a group completion in a script?
From: Manel Rodero <manel AT FIB.UPC DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 13 Jul 2006 11:32:58 +0200
Hello,

I need to do some operations tonight just after a group completion. I can't
use any notification nor email sent from the server because I need to check
for this group completion from a client.

I'll try to use 'nsradmin' and the attributes of the group. Now I have
something like this:

option hidden
show name;status;last start;last end
print type:NSR Group;name:LCFIB-Normal

and I execute the following command:

client$ nsradmin -i myquery
Hidden display option turned on

Display options:
        Dynamic: Off;
        Hidden: On;
        Resource ID: Off;
                        name: LCFIB-Normal;
                  last start: "Thu Jul 13 00:30:02 2006";
                    last end: "Thu Jul 13 03:43:19 2006";
                      status: idle;

Then I can grep, for example, last end and see if this time is before the
actual time or something like this. Must I continue in this line? I say this
because the status attribute doesn't seem to indicate that the group has
finished, isn'it?

Any other idea would be very appreciated.

Thank you very much.

--

o o o  Manel Rodero                   | LCFIB - UPC
o o o  Systems Manager                | Campus Nord - Modul B6
o o o  Laboratori de Calcul           | Jordi Girona, 1-3
U P C  Facultat Informatica Barcelona | 08034 Barcelona (Spain)
                                      |
       manel AT fib.upc DOT edu              | Tel: +00 34 93 401 6940
       http://www.fib.upc.edu/~manel  | Fax: +00 34 93 401 7040

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
wit 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>