Networker

Re: [Networker] Starting a Group every hour but only from 6 a.m. to 6 p.m.

2008-08-11 15:34:53
Subject: Re: [Networker] Starting a Group every hour but only from 6 a.m. to 6 p.m.
From: Davina Treiber <Davina.Treiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 11 Aug 2008 20:23:43 +0100
Bruce Breidall wrote:
What would be the nsradmin equivalent to the following commands:

Savegrp -O -G DRINDEXES 1>/indexes/savegrp.log 2>&1
Savegrp -G ADMIN 1>/backups/savegrp.log 2>&1

There is no equivalent of these.

If you need to add a parameter to the savegrp command which cannot be supplied from the NSR group resource, (such as -O) then you need to run it directly.

You would not be able to redirect the stdin/stderr either, although I am not sure why you would want to do this.

The basic syntax for starting a group from nsradmin is:
                echo "
                .       type            : NSR group;
                        name            : $NWGRP
                update  Autostart       : Start now
                " | nsradmin -s $NWSERVER -i -

When you run a group in this way it will also pick up parameters from the NSR group resource such as schedule etc.


Also, can nsrclone be submitted through nsradmin, for the same reasons?
Forgive me for not researching this before asking the question.

No it can't as it's not a group.

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